From patchwork Wed Jul 5 14:19:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13302221 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 AE6D5C001E0 for ; Wed, 5 Jul 2023 14:21:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232191AbjGEOVC (ORCPT ); Wed, 5 Jul 2023 10:21:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbjGEOU4 (ORCPT ); Wed, 5 Jul 2023 10:20:56 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F1B91727; Wed, 5 Jul 2023 07:20:55 -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 365EDkHO027778; Wed, 5 Jul 2023 14:20:40 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=/bG9LRz5xZPxVT+ts8yoyGN4FP/5afbOMvV2iqrx55s=; b=iUuSKbCnEqDZldJmuFnd9zX3sKMIKDkjFlePUEV5DJAwVLswUB8Rvc+MgnM5RBxjRjsG NU9vua98/YITvS813FtchOVdyI+IC/k3IVXjyysGOSG5ajRyXpAVoLCghJdFxjX9vmbW rH+QVpRkXTrfcYWsySM6VqtGGu8KxMio2DEawTvM8nFAkagYDysOpC3+A2H0QFSnMub/ hzx4Xhf7u2KyrIiVR2z/K/HKg9CWAwrunUOl2EvmGDy/eSiykdMd6ry0guDIwvXAPzhv mkLPfTTWYMZWKQR71stzoXe5ZigT44k4+YdWxclM2CxuCaRGKMEQtGMxGZWxN/6qJIhd Cg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjbrtehsp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:20:40 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 365DMsGB033370; Wed, 5 Jul 2023 14:20:39 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2041.outbound.protection.outlook.com [104.47.74.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rjak5wker-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:20:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZzBW0PJ0zriGU0K9djeuq1VZcZfhcMu8eY/WtlCXITSx4k3aaKXB24fdjnN9BHsWV4jxlyzpFasUpMxgh5KB58M3uQKDsAo0QwV8Cwno7+k0+zunfdnb8DxQ1Zd4TcJbc7vMUkbsrlxN+lLc1A2f1QX/pkFYyQrMW8QnGt9tppNqMoVK1SFUaU6iQzURpFRcg/721eTDB4VOq6SrKTVEHoILUrurfK98O1Gws3nENB74d+rqUVmcLLlarE1Ze8PwlHZLyyYn1unQvnsPf+r7tiY+Ob5YKXFKqyWsiweZL7BU77a6BadqynstBTI/w0p5Wp6JmWcnErcD5kXUs7feMA== 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=/bG9LRz5xZPxVT+ts8yoyGN4FP/5afbOMvV2iqrx55s=; b=kEEda+dqSWxfA9CVxpA22wBGONEcuYy1QvIsGPfyVaZ0poO3jCoaokuxOo/H5+w4U5YdRiceTys10o61fYEYbyHZ0xs8ZHGaLX605S30gvNU8+qsOnRUhc6l2i+wV1Gilu4C4AaW/nNunRouAKWYGBj0z3T3R1FFrBpKmTMuwTu59oR52mTR9n84f2W+aWJpExJtdbyrKIbSbXtEa+4sAcy1iuCpLwE5lUs7gjBvvXfobArLw3rAqi6vbK5Bw1a/IbyAKjsxhlSnDWJSu9PNDMTpFvw0DNPs2HcMAsJIOuHwOSUm6dwGvdRD5JEWhpM8lBK9qlimjUsuPEuHILSlbg== 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=/bG9LRz5xZPxVT+ts8yoyGN4FP/5afbOMvV2iqrx55s=; b=r1VjKNgkrtV45rMY2HWGbgYTlxpuUaa1NjOUGFOw+FNrQDIvQ+2AQu1z4DIe8E4KJLTnPwIJ4BjCWe8jXAGI+tVT1235Cn+p+yaTC6ZR4kLwaamvEkW8g1S5djXeW2FBgjtU3LYQ5HHcnT0TQEN/fH+2qcIiQBWtBOEW3cwQScE= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by BL3PR10MB6258.namprd10.prod.outlook.com (2603:10b6:208:38d::10) 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:33 +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:33 +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 06/13] loongarch/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 5 Jul 2023 10:19:57 -0400 Message-Id: <20230705142004.3605799-7-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: SJ0PR03CA0221.namprd03.prod.outlook.com (2603:10b6:a03:39f::16) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|BL3PR10MB6258:EE_ X-MS-Office365-Filtering-Correlation-Id: 417212c1-a380-46d9-32b4-08db7d62fe91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bLTSR8buQvQbtxFGRj5eavcwEAW4Lc+gGX+v0skHTaE+4mtcFwo6Za+10/Mls5I+cNjtKPO+pRMFmMHTegEzWhVTL9aXjc3oOhru2gKZSaJxvigzcjELANSICoe4vsiI3pgsN6SgLjgNlO+U4hZYPL8Ikwea9/cWXwLk5fg5FoR9ByA+RwZ07EyHrnWw2Jei0yLP1utHroBOi69DuClrw4TqcRKHG7gBdgxCDv2jF73Kw11mL+T3dhyL77jinbPokU1BmIP705E9f8N0HpMqKqRG5VKy/2ks/OSsXYvNmlOUpOhLWDxC4B/Suw9p+KTdGA5FjJ+PIN23srfxBo+dDm72CBGirBktkbPZocA1Tm5oRYcaQInAOSG7wfnAsp/ExjevFgJE9qytHj9blY33Q/XeDkKunNC2i45U8wU2eCHsXCkUWGCCEIL1vczNdqz8ot6y2oMe15Zghz7n0pKj/DaD4qSy4dUw0C1wml4Q1DQC8ZAfrnUF7Kyr3ndFGpDOK/U8wx+97jwW32AFhL9lDm8lHjXVCDhtwk4Cdwh/040EpNZ13iWzmvuNRypcaiaMk+366GLKlKm+0IwVMkPo9SopLdQ4DTTPOKoq7UkPQ2s= 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)(39860400002)(136003)(346002)(366004)(376002)(396003)(451199021)(2616005)(2906002)(83380400001)(38100700002)(36756003)(86362001)(921005)(107886003)(7366002)(7406005)(5660300002)(1076003)(6506007)(7416002)(41300700001)(6486002)(8676002)(4326008)(8936002)(316002)(6666004)(66556008)(66476007)(6512007)(66946007)(478600001)(26005)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5sI9GHCJIb6Dt56qRrOL6cgmWdsX6auZ28NgD8dS4z63Ozdg0Cggy6qpe5SH5q61v0xW/GZVjjquetPcGOoXtlvECQx+mGNUriKCQjnkclat2jaeq6ohYCCaJjeT/c5UHwB2umwNriA0aR4ghybYxnAP0M/JLZa2IXgfFsfAYIlqWpek4CAkJ15IzvsgaKGdIdskBHNryCdsDmbkOVBlCAVq+re/N2ZHrgPupOJ0oRBa51xHsaNyfycQiqpscYDv4jH8KHlCunR5fBZ+35s0jpQ/hW7aw6nrEY8KowYFpuUv6c9mwEjNXufcL0LzHTKGYpETmeXNOoiel96F52kRaXpga6B4mxSbCn/dbodIl3a7b8fPqjCAVXy15F8Q3d7tlQ8ryryB67itqqlDakFtUOc5jzfVhyEqF6PDZHji0EFvkNoMnfqyLKxI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flWohEE4cbBF077LlsSef6t3xLfvkTS3T71PfyqNJvpJ+lWb1XIDOIVYbGtS7troV4kcA2/j2mHPnkZVW1iC/FS7zX8iftvH5W60umNj07gPLfZdJFF1ylOjHh4IfY/VZcfUh2xH/kYGs0u7aLdXYkcoaJTOhVFD9dsSwd4mfLHddHH50tePHYuUJrs0jBdqXbpMDd+ki0+kgSKyGNjhHkf2LNVC5ojAxeWXuwrMicEuDqbgrwMd6qHTMR4w6M/W7FBbUECRjmew4VtaDmCyYs1M/qvOShBOTppDd9TlG0StZkRb4PpQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 417212c1-a380-46d9-32b4-08db7d62fe91 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:33.6495 (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: FpNUxhppnihpr7dxj2fcD/5I8P3hkmofB3AsWaY8CUHx2+ZqztJZX8KUaFydPFpvYvJ3U9kzP8TOCfveTzKyZDvWWD5aB+Cgm6Ko5GKUwk4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6258 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 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 phishscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050129 X-Proofpoint-GUID: tUwX7-408poYigQJN3nrruNbhEVCbu2d X-Proofpoint-ORIG-GUID: tUwX7-408poYigQJN3nrruNbhEVCbu2d 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 --- arch/loongarch/Kconfig | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index e55511af4c77..397203e18800 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -537,28 +537,16 @@ config CPU_HAS_PREFETCH bool default y -config KEXEC - bool "Kexec system call" - 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. +config ARCH_SUPPORTS_KEXEC + def_bool y - The name comes from the similarity to the exec system call. +config ARCH_SUPPORTS_CRASH_DUMP + def_bool y -config CRASH_DUMP - bool "Build kdump crash kernel" +config ARCH_SELECTS_CRASH_DUMP + def_bool y + depends on CRASH_DUMP select RELOCATABLE - 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 RELOCATABLE bool "Relocatable kernel"