From patchwork Wed Jul 5 14:20:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13302255 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 C36CFC001DF for ; Wed, 5 Jul 2023 14:24:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232408AbjGEOYS (ORCPT ); Wed, 5 Jul 2023 10:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbjGEOYA (ORCPT ); Wed, 5 Jul 2023 10:24:00 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA422D42; Wed, 5 Jul 2023 07:22:28 -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 365EDlor027894; Wed, 5 Jul 2023 14:21:06 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=lLLr02cj5c8feELZdrJYwQK7c370tKHnYUPlQb3fw5DyVriQVL5D2Vv6EgX7DSu4MrlC IavA6/E9CUGmJkS/UpEWd52sL6I+EnLB89b2thromRwa9OKgSDf9m5td6UnHRO8PGy9S acztoOFQMjnWVfaN+wdWfXGf+VotAgNArxEV4Gcir5GLPI3gw/7CX0eHjhwmdxzcdM6/ lxjCu37SwLtoOEAU4ewfhOGt3b64kq6WW8HuTyK/G/wxxR9fQgdvLbiid8MhCtB63kDi TQb0+CuaF8qbZbJWQljXNvq+ikv+4RkgdGRyd3/fo7Nsoc492tXF9F4G+582CWkzlj2S gg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjbrtehtt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:21:06 +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 365DMsPB007181; Wed, 5 Jul 2023 14:21:06 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rjakbnwpn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:21:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXllrLj2p3TUJLfXuFfsYtPcIW6EXJ8IDJN4Gx+lh81ioII+b3qeXGVMtarJ+MK/LEwSuJwp3hGM9QMFONyWbQ/SHibYzssZtEZ7+AoHmOL61IgJ37QZM46oUY2+4CQ8JEBRka2H2BtUCG5FDqljbVgTcSYAD46OgvVp+7u+oT00t6Aq7M0lEYRGWImfLnxumjupJoxNbczKgTzCg6Z7f/g7y+AxyqCiL82lqCyJGtRLpbvOCj1M1Q4hUMnyA7GcTY8BXai/W1vjGfrufGx6stpn6Y34aP7Rq4MVWvuFCe9hrp+Yc46bN7lWrGFLlfVPG9YdaIQkaMEleDlhm+Iuaw== 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=CT3n7Oj6ToKkKOwie3pqv7WaVXzqn5hmF3JEWJrIeE9t50SvrVOK4CdVnS4TFJr9JHKd0ZqXlI6iLmRy8SROeXeiwILG3y8jOpqHs5GDjRszqB33pxWDdyXHgsXMkIt9hBhoPMg5vxSzxiEEWOF8OWYx1pDjHokP+l7dS5BVCveonCgD7aYdjrUWHZUzxlfSLzzXQvFEqTua2Cx6/UBqIn/8CnBj8J69MJxoUoJvxsNsCNZUF+u4rcjOt1zNMZr8+R9qkQkhPMUNqnt0M0AJmBFZvvGTaGnGxj3qgv+aV9KHvd9OisvK2qvdgcD+ZzvgNcqDMHQbH+av5HSMPA7TMg== 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=U7Bfjao6js41pzjvV/fdDtfo/4wPmOQYD6C+hwpMGDKdyn5ECEIgIRk+kOv/TDmq9XWtWFYSUZoh75PMDfWzPB+w/aRSQGxCG/FUmJs4o3/xD+SMEayHq/82BFgwOfhCRr3emSHk9qrFT9d7W37p2RnUGvSws6zYlylObDVcRKs= 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:59 +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:59 +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 11/13] riscv/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 5 Jul 2023 10:20:02 -0400 Message-Id: <20230705142004.3605799-12-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: LO4P265CA0103.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c3::6) 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: 8967f4de-09d0-4565-3cc3-08db7d630da9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KXq9dO6KNF52tCeyv9H+900sxUL4WERVTSV5eUv9xb2e7kHv58w6VRHnqUeR6s8U5GA18niSQSIrmEYdf2qTex7lKGn98nMf0iwT9nepl9M7SeFm8/q6R6lGIYMMs9Y2PnM8Bg7skjmp9uFtzx5QCuPvecqvyoO0sNJtAq8hCXMFMe9O6px6V2VM3OQ+x4TbV5+koGMligSp76QCEtgUTCcETbjHXunYYL/kVx+FGHtfhdD8f9I/O/yWDKINnhKridb2t22Qa4MiRbsnjgfS5d48Yv0MJDExVmrfHtabn3TKz9ebOZH/7lJ6G5hOm5aHicROgKcQDGhmmkvQe/OMBht3WqBSILzT73NmHD7yUeMN88VmGl0X7knm5ciR/u8O0xpLWSA3FVmsLA0VIHlbozie4HNUE3f/HYhHvXuKo3f3HcS2wTJcq/DeBy4dnAmuwSfySWhSW3U55ccTy5aAgcdV/77w4sOBVydOA6Ee5iQosm4u+/mDMMPiYb1s1QNnVOSZ1lkD6ARfl+uxKABbzDDfgdqXMICYjpvEQgzVa6kHG0bE6rITLLVwVrvybGFmGhnUasGSjXzsJymrUFgc2V3ISfEypk9Kj2W/IE3XYtE= 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: rafcaWuR/KmNsKarO4X1px/cLNPUYaSn6dJ7Z6fRvwHTs14dNrCAXgKkycQDDUBDmxcFZbbf7Hacavf0wOLngQjfrbmiN5ISDLnRjQ9rvMIzakeFPW0q/1sVYoMu173fS4VjKytVc5bdTD2saOaMGY2vInoE5Ut0N2R3B9qDfjYj3Aug3Nmx+Ai45Gw1W97PtSkHBNHgEdn8p2ij0CUzlh7a2f+g1cl0jT5ZnOeFOLQUx2H7mplXvcfJUkdoWbMarNQ+Cu/xTS0t1N6sL/UaGT/1RXf4L71662x8bPeYmyIyL0oMI2B/CyIpAoMPC4WLb+jt1B7ax/zGCM3lmMkAEky5xwZDDfsDmnWueQ0H148BC8AV2+useU029H39NqioYJP9Y1yfvoYQAS9ozofeAxaYtXy/Nm9c1ZUNOfym57hZb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JMNasrtus+qHguI5VpmxJ3Q2Tti4swfDSDnMTrN9wX9E3JAwDP8H6H/7McTr4omOT2P0stE1BNWP2MWGzxq0Kzr7YciEL2tJUTrkizFUuhS6bmLJV8yAxQUL+K1Q6+bGwEID/kXo0L4U8hvcZXUQ2pp+V67lTbROuDHlKNrMUb8D0knf7AHn9lVim3Ys9uBnSt+FOOPqcjghCJN1e/NYeO7mtSEgwZHBX0nz0yIO5ES+cSyaPrr6VUyuttQzPJ+wY3euR+lV6rff+RC2teTnsSDUbY13Ks3jFUNulfaiKQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8967f4de-09d0-4565-3cc3-08db7d630da9 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:58.9730 (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: Uh7dExaLGoAeaB4EdGGlYh0AUpcPhMy1pTZVdSpi01K/YVDsfuo3jiHKZPvOXISc5AMeNpdPvGI+jZe1jP5fiS8rAm458v/W3l1evN5z4+c= 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: N9TcgseTwKHoJrT6QnMKAynJnMLWR974 X-Proofpoint-ORIG-GUID: N9TcgseTwKHoJrT6QnMKAynJnMLWR974 Precedence: bulk List-ID: X-Mailing-List: linux-sh@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 --- arch/riscv/Kconfig | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b49793cf34eb..8a3af850597a 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -647,48 +647,30 @@ config RISCV_BOOT_SPINWAIT If unsure what to do here, say N. -config KEXEC - bool "Kexec system call" - depends on MMU +config ARCH_SUPPORTS_KEXEC + def_bool MMU + +config ARCH_SELECTS_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_SUPPORTS_KEXEC_FILE + def_bool 64BIT && MMU -config KEXEC_FILE - bool "kexec file based systmem call" - depends on 64BIT && MMU +config ARCH_SELECTS_KEXEC_FILE + def_bool y + depends on KEXEC_FILE select HAVE_IMA_KEXEC if IMA - select KEXEC_CORE 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. 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_SUPPORTS_CRASH_DUMP + def_bool y config COMPAT bool "Kernel support for 32-bit U-mode"