From patchwork Wed Jul 5 14:20:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13302228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CD22EB64DA for ; Wed, 5 Jul 2023 14:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbjGEOXG (ORCPT ); Wed, 5 Jul 2023 10:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232516AbjGEOWh (ORCPT ); Wed, 5 Jul 2023 10:22:37 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E256B1BF4; Wed, 5 Jul 2023 07:21:15 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 365EDkhH027786; Wed, 5 Jul 2023 14:20:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=HEjxbCekDzod+atU2kn1FYexmGAjLI57PU3T0wASxHE=; b=rddnSNbikAjI4t9Eh3h1hNHcyOuMIXheNVEkbuju6o3F+F3rG4bsJdjo3Q8OQbq/eRQw tKGy7vGJ0L4qJ+e/kYQC9tTTbxBkiDepD3QDocQRG7lg07NJCvy8FOtFlTOMsV9lNdnA uQ9O+AU5HLWKAVbNCqQmNWKC57vuGQ4Jmrn/RQ5Lgj2tVB5kGt8BnL3Xtz2+kIZ5FtUC pj5nbKBPmqmIaaFaCky5FEaiThn/n1ul/x+y9SwcqF2kU2PF7woNkpU5bIQgkuNV9a+n LIEzpk0VZXEbk3fP4Jj8XZXWlKn1SoXCp5V98ljiSM1oRIPSQSq5dQv0YaSViSXgzaU1 +w== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjbrtehta-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:20:56 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 365DMtKk007264; Wed, 5 Jul 2023 14:20:56 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rjakbnwk5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:20:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BAyJ6us/r9HLOx6Kpth5QrNhD60R1xAQjNzdvixdBAEb3fsZ8zQdrgHICnhk+p0uHhZJsO8EduABq7xCkcK1z//H2xxZL2g2xsZVLZmgT/UueIBeKH7oIuK3ZyDxiLc55Vz/bhSVK/a9bg291scvH6v7CPIwEhaWQ5wnyRwNm4yUm0PIBq7BEhRDGZPQIyXrqxJVBp8tMRm7J0laNUIK5q63Jfh8F5eTdityhxh7SrFPTpX3LOojBeWtLjt+OWYnP7YU5B4nKAey3ZUAmRbINEpcLC3Bg4vx2OHjL2fmfT3GgGHUy6fNzQdVpWTOKpzoBu9k/x1IrhUKNfkotOoMJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HEjxbCekDzod+atU2kn1FYexmGAjLI57PU3T0wASxHE=; b=A1fc+gOtnRldUuep2FJtN/0QI8zD5qvZmPnErS7NvUU80k4io55GzxdUbtNg9I7u0eHqko7CETFuz8/1ffZHk/3vZWF3v81g5DviUJ60bSyTicu2bXhceRkSg8bpYJf05TtcXXdF7cKYCt6H9DTQK4x96Le+wZf8fJvDwScqz1HPr2t74SmDp0avht23dcf6hGNDjb64R30y/XgD32KEaAJVwSAUeSexWeFb/9He+jQZxLD610uY6Davg6ugX9VrQXunaxk1IzWQbrvWOsXwIeUYzqnwM0AmXRTT+3A5JtIX/GfyUHjArD8YqgmsHC7ZaPUyS7z5FajO6Wq7G7fgCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HEjxbCekDzod+atU2kn1FYexmGAjLI57PU3T0wASxHE=; b=iOZ01s4w/Jsg6wgNlNsqW/8HldjlqlCCDoqcxlf/dGhYEIZkqnXid7sGbHDRLGbaPAhzHlsh163vr4o2qxNCxHUDsdJiW+AN19fITIN3LZ7O5p2TSJ4QsGZrZ2yGr7NKEhcM5JXptD6vYXccXolIF9FE/pRZmlVzLsvwsmTz0Qk= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by SA2PR10MB4732.namprd10.prod.outlook.com (2603:10b6:806:fa::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 14:20:52 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048%5]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 14:20:52 +0000 From: Eric DeVolder To: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, chenhuacai@kernel.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: kernel@xen0n.name, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, peterz@infradead.org, frederic@kernel.org, akpm@linux-foundation.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, linus.walleij@linaro.org, sebastian.reichel@collabora.com, rppt@kernel.org, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, ziy@nvidia.com, masahiroy@kernel.org, ndesaulniers@google.com, mhiramat@kernel.org, ojeda@kernel.org, thunder.leizhen@huawei.com, xin3.li@intel.com, tj@kernel.org, gregkh@linuxfoundation.org, tsi@tuyoix.net, bhe@redhat.com, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, eric.devolder@oracle.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Subject: [PATCH v4 10/13] powerpc/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 5 Jul 2023 10:20:01 -0400 Message-Id: <20230705142004.3605799-11-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230705142004.3605799-1-eric.devolder@oracle.com> References: <20230705142004.3605799-1-eric.devolder@oracle.com> X-ClientProxiedBy: LO4P123CA0303.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::20) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|SA2PR10MB4732:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ed7b373-e8bc-4eb3-c0f8-08db7d6309d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cLgRFC+4kK+EkBAO1g18Rtyis+9eFQWhJXAYU69lMchaSDd6Yo5B0+V2yMFZFfomwa2DYeXqFAzHR2HUGnvu7dvUe9TX0SbMDcphkkSx8V16BjwMHs/gPXW3cU0iPyQw+NClDT/rlSD/OelZ+7H8+2xdnpFlpygMXrGwVXLW/+fjDXeHVGBCj4l0+iRm7TTxs0OmgrSW418AIZbpeY72Yv3uQOrfqMgSswJzy5Na1eJ208PoxQCmKdYU7j3xe2kGS7QYZGKEIA2YLsfxncu2+Qav5NM1I/31o1cIVvDLm6JJ9/S8baxg7l92cPXZix6bUbfs1hxEOsEJcVlfpr/ZWdJBVQQBoiW4+6Q8ToOhKsEaPylFOGH94P3QBrV2fzkiA5f7roVfV0VKakSgVNjAMr+kPw/kOt+U5OV/9EkGFyEdmdi61JJoCg8egeBngr6ahfsCaxIDEE4897cVTyBGa1nU+Azj8SrBFhX4pRHTTfZI2BciD5OpUhcD+WMH2yRMb8WzAxW75TSnwAMlMmQORjaRSLq2vXo4fjPJDOf5ssbtOt/5Jt1uNEYJbj+aHhbDQ+Dqzum3AgCP57WNkokZgKvHpWlF2Dtl/sK+TAfi1S8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(366004)(376002)(39860400002)(396003)(346002)(451199021)(8936002)(8676002)(2906002)(2616005)(5660300002)(6506007)(7416002)(7406005)(26005)(1076003)(7366002)(186003)(66946007)(41300700001)(107886003)(921005)(6666004)(6486002)(4326008)(66556008)(66476007)(36756003)(316002)(83380400001)(478600001)(6512007)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: alQZShCErjba8x0NgAe2V0Tdpj/uVpkVyQ2iP3+QQPz6PYVoJsk697oHUNdcBSyi68b4nk6cAvDjsfKWY1A8T2Xpv3dlmlX4YeeujnVRcktDGwzYuX/jX4UxSJrFvbN8/fUv0cq8UgejADE48/xlV0jSUDKaLZVMDJWDWQX3YFOYZLjFVllOC4XNQodjiPkTobtjzFDV5piaUrbwc5OlDBmnKF7n74I9CIC5jhm5NK7sycGOnPibdshu8IJJFhjpMSWx/TbL50VouJzLYCvNQfXc9klXaRiEgtqxwxPbA2/oR+ihZfauftYPHE7v4iNpO99PyBPQjcPsCDtMTOsrmX2kXfKVDTna3vpylApxDwZ2cofy1b0B5Q6t/Kc3/CoDbXd32A/KT7X6P8njuB3DNN30bbcHVBgc70ew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hBStud/6RDOnHjDxqU8Xso5qn4VbYssnSwkB1nIks9g7fmcHmc6HM7HoKZelHyMbq7vQtvcTdo41T8u1m2hY3kkgaO6qHjXN9L5CH5lRLIi9meXuvsPm9qY1cNZfa4jND263Fjbxbgwe2Ap3O8/h7vU+FfLF+hVvLMqCpOTNx5pJ6tgqcmeJXF8rYnijNoZ/8wSQJ+kaVyM+A1F4DVZQsDhNnbHetvNVfZxZfXTf/NWLtilud4Umj4+AOXkeQLdOHaywIztdS3nbtR2nk6GJW6byl1RO0OBjyjb8rVSVf+ap4z5pjcnbtr6ZNp1pdIcUq0u+HuwwY3Af1wDAYBr7NNw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ed7b373-e8bc-4eb3-c0f8-08db7d6309d0 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 14:20:52.4500 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fTyPIQfqeKTUMVeyxiEwH/KluFfYd7RqdPvZgYbEs6hpsydxfJo08THU6L/q6oPjHsbuT12UoL1jCYpkHAIpxBFr+gQqNcATmRx4H1JqqfM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4732 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-05_06,2023-07-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050129 X-Proofpoint-GUID: q87khbQVAcsjnGuuQLhSKApEW6HLr4mb X-Proofpoint-ORIG-GUID: q87khbQVAcsjnGuuQLhSKApEW6HLr4mb Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Reviewed-by: Sourabh Jain --- arch/powerpc/Kconfig | 55 ++++++++++++++------------------------------ 1 file changed, 17 insertions(+), 38 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 0b1172cbeccb..1695a71777f0 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -589,41 +589,21 @@ config PPC64_SUPPORTS_MEMORY_FAILURE default "y" if PPC_POWERNV select ARCH_SUPPORTS_MEMORY_FAILURE -config KEXEC - bool "kexec system call" - depends on PPC_BOOK3S || PPC_E500 || (44x && !SMP) - select KEXEC_CORE - help - kexec is a system call that implements the ability to shutdown your - current kernel, and to start another kernel. It is like a reboot - but it is independent of the system firmware. And like a reboot - you can start any kernel with it, not just Linux. - - The name comes from the similarity to the exec system call. - - It is an ongoing process to be certain the hardware in a machine - is properly shutdown, so do not be surprised if this code does not - initially work for you. As of this writing the exact hardware - interface is strongly in flux, so no good recommendation can be - made. - -config KEXEC_FILE - bool "kexec file based system call" - select KEXEC_CORE - select HAVE_IMA_KEXEC if IMA - select KEXEC_ELF - depends on PPC64 - depends on CRYPTO=y - depends on CRYPTO_SHA256=y - help - This is a new version of the kexec system call. This call is - file based and takes in file descriptors as system call arguments - for kernel and initramfs as opposed to a list of segments as is the - case for the older kexec call. +config ARCH_SUPPORTS_KEXEC + def_bool PPC_BOOK3S || PPC_E500 || (44x && !SMP) + +config ARCH_SUPPORTS_KEXEC_FILE + def_bool PPC64 && CRYPTO=y && CRYPTO_SHA256=y config ARCH_HAS_KEXEC_PURGATORY def_bool KEXEC_FILE +config ARCH_SELECTS_KEXEC_FILE + def_bool y + depends on KEXEC_FILE + select KEXEC_ELF + select HAVE_IMA_KEXEC if IMA + config PPC64_BIG_ENDIAN_ELF_ABI_V2 # Option is available to BFD, but LLD does not support ELFv1 so this is # always true there. @@ -683,14 +663,13 @@ config RELOCATABLE_TEST loaded at, which tends to be non-zero and therefore test the relocation code. -config CRASH_DUMP - bool "Build a dump capture kernel" - depends on PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP) +config ARCH_SUPPORTS_CRASH_DUMP + def_bool PPC64 || PPC_BOOK3S_32 || PPC_85xx || (44x && !SMP) + +config ARCH_SELECTS_CRASH_DUMP + def_bool y + depends on CRASH_DUMP select RELOCATABLE if PPC64 || 44x || PPC_85xx - help - Build a kernel suitable for use as a dump capture kernel. - The same kernel binary can be used as production kernel and dump - capture kernel. config FA_DUMP bool "Firmware-assisted dump"