From patchwork Mon Jun 12 17:28:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13277015 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 CA39ACA9EB7 for ; Mon, 12 Jun 2023 17:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237211AbjFLR3a (ORCPT ); Mon, 12 Jun 2023 13:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237477AbjFLR3N (ORCPT ); Mon, 12 Jun 2023 13:29:13 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABDB129; Mon, 12 Jun 2023 10:29:11 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35CHOCPT001643; Mon, 12 Jun 2023 17:28:49 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=Jsvc7WXA1UZuEH5OZyvF01K8rTNF1XUgRilOFiYSZDjV0lNhoobfXkih7gI+adNbvvUS 5KX+PxDxhU3GS3pjYe4TnBU+OZf31tMcRAGLzH9QYLXzG79Yza/t9E7oxwTU4YwKrZAW t6j4DisGS6cI4HsWT6STmOmxAy45i3nutgbvvE1xka2C0bX2Ck209sSO0dLVAuyTuarf hMlzORPuOgMbW1VF3ZRhqa5pG7s3V+cgDtQqud420K2w6eKbd/OOHI/DT1vVp+FtDuwv ieOWQmAVgRQPlBPTan7inwqbtroEsvqiKe6mnYowMbI/rLXdpqb688EsQixTv3IjS5yQ gw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4h2akgr6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:49 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35CH4MlC016344; Mon, 12 Jun 2023 17:28:48 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm32y0u-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmomHf+D6vw2LRh4/thkudSVsnzIGJ5NYPPWYAKBErdACMgoQgUMeNQOsZu+f29qYfJiCIgWeh4wskpaxv6uKZpL+OUZrB9X1hSiN/zHn1Zh8jiiEhtZ10CLJnRYZebBxNhASqMVTBN7YlgiuqhPsLE4gj4cEQjvzjKfwJ+etk52YJdCPXysHOJaLf3VHa/J3pcbv/2hwQBqzIKfqw8AY2YHeaCbMkxCO2kLQ49zYoW7UtIJvcH81HvFaXYC7Xh67sXrCKKPzzZOm5z+9rqWvujWOc/Nj30o8o0IwuPclN+ZRB8jPXONeqRHh648UF5DNsZjnoIuiJrjLheft2wspw== 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=jiMYnQ2bMxoXdB7AE2Jz0vOBqA0eM1CVsiD7rWaXwqik1+RUYKDWbpxQo3KOamE4WOpZteTN3B80RwIcYX2WUEDS8ZT40OI2ssIxk45v1703gNWAXPr13h8oIUGmTml3Ljya9Nty3ByHPh2EsERRlDHc6vD6y+BZPBTEApm0zSm7h63MkGKk0W+XEEjUAQ1ca+m5W3UB+EkfRpjTQmPSEOEB5vfISVtn3L12Eor6S1qU2aIiYi5moIS1Kxm4tVjtHGm8ISQ13vHbRTADBZpN8fM5qcO54aIoR/KO+uIIHX/1h5gtpktBF+woVKpglJ632Q4UGzhXsG+OoJ5WxfBqDw== 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=LVgg1acn3T1Sp6kJdAVczUOu2lfkruNcJ1ZkLeAYKsjS5u9AYjtKyEeVhmS0erqQDw6mu8CXS72FOIiaRv1BHulYkX9mItp3JsiG9hohH1q34qIIOEh50XhVTsgXr2MwNo8+6QSsyX6tpE/4mYAwJ3iSUR8d9rYrVCoZmCJbEYg= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by MW4PR10MB6509.namprd10.prod.outlook.com (2603:10b6:303:21b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Mon, 12 Jun 2023 17:28:44 +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.6477.028; Mon, 12 Jun 2023 17:28:44 +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, 86@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 v1 11/21] riscv/kexec: refactor for kernel/Kconfig.kexec Date: Mon, 12 Jun 2023 13:28:03 -0400 Message-Id: <20230612172805.681179-12-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230612172805.681179-1-eric.devolder@oracle.com> References: <20230612172805.681179-1-eric.devolder@oracle.com> X-ClientProxiedBy: BY3PR03CA0002.namprd03.prod.outlook.com (2603:10b6:a03:39a::7) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|MW4PR10MB6509:EE_ X-MS-Office365-Filtering-Correlation-Id: 97333584-713b-4059-d577-08db6b6a7926 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AByc0Rhp2Tjq2d/HSGB0hwTuzYLZ+30VABIX9G/lcwOvkwtFXEr/EaT+d/hLLIIzKcNwYlrXTcgtTqIJ/Tdd+YjxViI6kSlaogHCDGiInFYoRBuii0IrKcXr6A9UE4IBQFUSMNaxvgbLUC61QJGz074o/gudTVak5FcaW1fENeGD+lncj49EfwY6yo6+dZZzMmdb+hb2yAAqnjd4nTXu6eqkBb1TQnwS4jEENQrMtyxjECxE16NI6kxCkhaAr5wCQDBhFzMGjA39hBWLXK63JldIrOnM1fZiwQqeqbgroWV+TDb5Sbc0d80abzN36o2WflSBJRKd6vwRxdtFXlETPpfZG4zlO/6ByJbjTrIFNrJynk9B3cupePo7OKywzB8pYpfXlVmN2+Vcwx1WPVSCrTJwGBNu59x38FcmpHrbyz+quSaXbVwW38IF/YTz17UDGL8+xcMPPgf0igRriGANqrpQPTWcPA7i1zD9W9vKMTIbxako5kzqk+DTFG9e5LYW3scWScSLzbwewY03kMTo4a9+qMt+sHZh2ghQuhYXfE12qtf5Xss8FX3fSbbMIywdnZ8VFevJkIBeX/giLQ0FL0eCc5HUpNgZ39lb2E9ka8k= 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)(366004)(396003)(376002)(346002)(39860400002)(136003)(451199021)(66556008)(66476007)(66946007)(6666004)(107886003)(316002)(4326008)(478600001)(86362001)(36756003)(6512007)(6506007)(1076003)(26005)(83380400001)(186003)(5660300002)(8936002)(7366002)(7416002)(8676002)(2906002)(6486002)(7406005)(921005)(41300700001)(2616005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nqLPiXmVdfDlVI0IVugEvO2V9uLzW41/6F34nMXIGBNDQeVSTxI14Hl/C1nF+SEOEmo148KaxjQ4PJZ8gtm7OQWlZLoEc4k3LHEx38rJWYk9dnlQ2wRlZoJ0+SATHKk4tBC4R625fLMbr5YYbn9yvZkbpB0L//U8PtwTcQ6pcFipTaebHhUCqnk8BEaSDWauNKRRh7fU4UyqMI7dc0ANiPYvjaCsQSv3eFKVU7vc2V6QCo+GSaCF/u7gfRFsO5FRmrTne6fR5xqyP3F9WXjAV9o5e/0TuksY/hV9EXYm1Ey7YRUoh61ijiCrDBsF4XJNGo2QvlGNqeKPLTBCwQ8pdiHSWlUxJtIqg4OBtwbI93qj8B23wcmnY4o73Kk7Q/tKlIuiuXbtce+cMc3wEL51Qit+jNxjlW2twWmh2aJPZzi2fv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8YIiWBju6M2q1Ifni6eOiDWXo3fnr92voAujQaPXPdq25YRg+UgCc4nyaDuEvkLOmpx7ZNobjSgKH791a1WMbBdBux4Lv0iGnEqHxarndn5TZMfkjbdC7xpw88GCg86Vd84HnlknkfiQ85vnJR7VVlXv4lugEt6IGaaLHcZC6l/k4PGnzWF1c6Spfta1bq234VaU1M9PCEKTo9Fc8VHqdHIa9kpv4dAQYfCLCv4oAbi+dOG2BOGjyE3/Wj88cK3KlvK1IcQcRUgjeEFS8EIJQDiwAFUdUodhalf68yGu3MVBdtEmvUm/LcUTKAXFiPQg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97333584-713b-4059-d577-08db6b6a7926 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2023 17:28:44.7491 (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: QTvX7Zy3tHVNCr8/uzPA9ZQ3JS1fsvxHN2xWhUjAYJK7zOAEwE1tJ3JN47vUt+ToJ9PiMHNFSgu+w7bXHW31vGS6SKt7dsbXR1xaR0XW9Ik= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6509 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-12_12,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306120152 X-Proofpoint-ORIG-GUID: 8tbfFcKUB1tUEFr1Ez9tM5mBGFvsn4Wi X-Proofpoint-GUID: 8tbfFcKUB1tUEFr1Ez9tM5mBGFvsn4Wi 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_HAS_ and ARCH_SUPPORTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/riscv/Kconfig | 48 ++++++++++++++-------------------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 5966ad97c30c..bcaf49007237 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -585,48 +585,28 @@ config RISCV_BOOT_SPINWAIT If unsure what to do here, say N. -config KEXEC - bool "Kexec system call" - depends on MMU +config ARCH_HAS_KEXEC + def_bool MMU + +config ARCH_SUPPORTS_KEXEC + def_bool y + depends on KEXEC select HOTPLUG_CPU if 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. +config ARCH_HAS_KEXEC_FILE + def_bool 64BIT && MMU && CRYPTO && CRYPTO_SHA256 -config KEXEC_FILE - bool "kexec file based systmem call" - depends on 64BIT && MMU - select HAVE_IMA_KEXEC if IMA - select KEXEC_CORE +config ARCH_SUPPORTS_KEXEC_FILE + def_bool y + depends on KEXEC_FILE select KEXEC_ELF - help - This is new version of kexec system call. This system call is - file based and takes file descriptors as system call argument - for kernel and initramfs as opposed to list of segments as - accepted by previous system call. - - If you don't know what to do here, say Y. + select HAVE_IMA_KEXEC if IMA config ARCH_HAS_KEXEC_PURGATORY def_bool KEXEC_FILE - depends on CRYPTO=y - depends on CRYPTO_SHA256=y -config CRASH_DUMP - bool "Build kdump crash kernel" - help - Generate crash dump after being started by kexec. This should - be normally only set in special crash dump kernels which are - loaded in the main kernel with kexec-tools into a specially - reserved region and then later executed after a crash by - kdump/kexec. - - For more details see Documentation/admin-guide/kdump/kdump.rst +config ARCH_HAS_CRASH_DUMP + def_bool y config COMPAT bool "Kernel support for 32-bit U-mode"