From patchwork Wed Jul 12 16:15:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13310668 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 292BDC04FDF for ; Wed, 12 Jul 2023 16:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233781AbjGLQRL (ORCPT ); Wed, 12 Jul 2023 12:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232071AbjGLQQ5 (ORCPT ); Wed, 12 Jul 2023 12:16:57 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B611BEC; Wed, 12 Jul 2023 09:16:35 -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 36CEiFDm013657; Wed, 12 Jul 2023 16:16:16 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=utbRg5+w7KN6683dzLvPala/54/8Nj9aQmvdmLrS7/xqyMTPBZGXeMbgHcMVtqnqNatw Li4Y/CvBjSerRydobowPf5nh2nFD6sRKPqRviN8ZAGpkICAHLvLYf9nGsS0Ifj6/ud+c k+o2r+QqhfVh+uplhI3EcV4sDGsf8EL1imalNFWY5fN/5VVDArimew9YI9c9ZqObAfi/ pdo0AqSEXcAxXF0VyPdMDI3h7AO0gMdj8XLUIPuSWvQ9vtFhAPiTwgdw66r2jSSeHHed pOa+1sFoGqXmmcPxSI0oZNuN0sDDorqdp8dlJWYhyUF8k8Mks3Q8XKZE2p8ReGPt9wn9 BQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rpydtym9s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:16 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36CEuuQo026909; Wed, 12 Jul 2023 16:16:15 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2174.outbound.protection.outlook.com [104.47.57.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rpx86ubjp-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQhJS1hJ1el1GXaPh6SNp+Ovsdoo4+NvzIWK9EwRANVirpG2UCFD9tJMKs89zL1u3pdu2+G+FpiZfGZ1NdGre90up8Kb9YL3kx2NNAzXamMxrOIn++4z4TCp0RezznPv+BGPCeyEyGFrnQkBz3xsTvAxCVG3m9vOxXv85uMoPKiR0MdRgGcGBNwqs5d0Xh0JIILHU3fNbHQlqVTuDI2cJpKk3bG2v3P+PMStjGoD98N0qYcH5aSAVWpi2jFg7RUPfPhH5L7BwfJtihlvrWU+NbpKoBRTn7LiT7R30IdMlsjuVFDec8/6RY2lRj/wgzga0jk0IWZgXKOgaKRz2ltboA== 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=KhMqsg8SqCjlk89ZnhhC0y+R3jwVf1RW7DodXbsBA9nKTH6/0P1TYITrcu0cyg8iVdGb+/ENqUXDYYnnfzlyilytyscpUz2NgN3t0o/haYp0n11sMSfDB1b1lEVLDdjq8425EHA5MeWSKSM0FwbqGKH8hUIYUcOoQRnd7+qHpqeaF18R+J0AGTQ/UAI3MkmtcKBIsMG1MgEhAW2OmMVDVqNU0LgLz6EC0QTwIQfJAjB2qbG/EYBBT6lzMt34MEsQTsocGwn0NXm9RI0w5xxFdMeI7bJdq9RWe1q4CovYvv/Ff92yuMXgp2fovRCxzoUJS85vrjVXSBhvSfi0q8QWwA== 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=sET9/FIpI3AddNWRBTk5kFUuwRqYvXYeV4GPgLNLY1CwTKc5Z+Sp7lNllQ64W8MH89N+z4C4KMZK9T1vH5R26eNf14T8G9wpW7kKhqwChoOJM4td8Z7S2MG/ji5npHMn9otWKkFG6rh6UMKa0xBLBhRhdSGrOL0MrTksnv6IPag= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by PH8PR10MB6501.namprd10.prod.outlook.com (2603:10b6:510:22b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.22; Wed, 12 Jul 2023 16:16:11 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8%3]) with mapi id 15.20.6565.028; Wed, 12 Jul 2023 16:16:11 +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 v6 06/14] loongarch/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 12 Jul 2023 12:15:37 -0400 Message-Id: <20230712161545.87870-7-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230712161545.87870-1-eric.devolder@oracle.com> References: <20230712161545.87870-1-eric.devolder@oracle.com> X-ClientProxiedBy: DM6PR11CA0027.namprd11.prod.outlook.com (2603:10b6:5:190::40) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|PH8PR10MB6501:EE_ X-MS-Office365-Filtering-Correlation-Id: 7da38af3-5854-4edf-dd42-08db82f34ec3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ippvU049XKQw7xyFMuW8RfSZEQ1uIh4GHykRG7G2Fwcim47QYKGncJVRKznL0eaE15ftUgIsq+BdVVYAsdvN2RgNLMGsqd1OJIOqASrluJMYbM/EUixCH47XGqBgKMCN8/4lkHpN6mRfXWfZdSSWbrnZthBI1OYGjfSnlqmloSZeVA4r5ZAEVQhl0nD5NDM0udB4/wxSPAIrP/DO7sc/0FVTi+smFKAx7sw0vBvXEnkTHzRdZLqEINA/Y6S/niC+MrxbSKKCBWfs2cMWHy5YuMhrN9YL4R3/fcatV0HJ2qiJyCvl3lzVlrW+TOl30iSgFRAYXZmUzqn79bm4LvdQBiTQWilwBoHBDLBcpHPnq7xgajfyEFctCyZjQMqgIbxgPLI8J9sfnVz9gJfir2jj3pEoqroCGpEQG2ZNIxjfdwyTeXK/7GPE0Sqg56S98SIxCruIZW+luBkNmD1RHiAfps9p9yEncJ8YmOXzbMO4zQGnQd2zQJdyGMwMHp9hYPe3wAtQVLQZVjwT+1wYz9E4O3gfEGjHmsk9XO8EiNeeb/0iQ+XWd1xf/sVpo3NBSOYB2S8/uAO6qfkrI/EHs8+8vLaEj6yct2TmlRBkMCVeOic= 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)(376002)(396003)(39860400002)(136003)(366004)(346002)(451199021)(38100700002)(478600001)(921005)(4326008)(86362001)(6666004)(66476007)(66556008)(66946007)(6486002)(6512007)(316002)(41300700001)(186003)(83380400001)(2616005)(2906002)(36756003)(8936002)(107886003)(8676002)(7406005)(7366002)(7416002)(5660300002)(26005)(6506007)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: w74Vmcug1+OcRrBQy0ubQ0coL2UDFPF+bdo+Eif4xfPY0gAUaGrxVRV9VCs+nVtS9BEE5k5lvWa91ujTUSre7aLuQsr0+CuwldxmRUvIePd2j5tUnMdbLB0xu5Klh9lLjvBlTMVfbvpQnE6MwPJk936NmcemTd4YPeoLGTD9CaU499puNZpx30wyJQHQ1Ih12Ihr27NbSZKMgAZvaEPti8UJjAs2ZHK/EEsEQ5OkrjTBFnthZLUoukt89FOOSILVXtbM/n6ZCHMXYQn1LF+4T2+iN993lN5ofqcOtlFImpn4a6lW1278Vlc0S/wCQOp9DDYQ3oZxqRjTAA6syeXug84Vt4NUDBhHgtI/ql+5Ixmh1tGDEE9UypT6FJ5DXwzZ1lfc571Zet/zcHGy70FgDdtHEuGkSBy1Gmqmiqk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zOz77NG8TfS2QBjvvUHZDEWao2939DP1d943xB20kHCtP5o4VwwGv9WcPFam4Mkj31sFvl4/NYaNSRUVoqEFt1kmuDxOzOrASF+VKQswFNZZ2bpwMDFuJLQpo3c7hgQSMmuUPIfEggY9APOXVMz8QUIUvbLRwkBI/h0RqnZTJONhltaRBqrvBNKjciqzCdBh7tkSSCsOn5+KseR2lDWJxxMe/2+CEUAcfV2vS8qu7v7YgG9oi4AS8ZVnQlO+vVILjrDXVqq+mo32DRtVz5cqeSBlQaLjN6/ioVtA0omecIvBGQLnA/J3gDbW/RwM/DPONen6GashHtWJii9hIMhTCzEA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7da38af3-5854-4edf-dd42-08db82f34ec3 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 16:16:11.4481 (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: BPk1EQ3Edh2K5BiArrxc2Z6MQOXmUxSTychAXvA5/GtW7G+nQC8wyJxSkAuthqzs0lVmIf8hxEshbsVVExqhomRq5jEMy2rKBhWFqo6TP/I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6501 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-12_11,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120146 X-Proofpoint-GUID: sEwnJ3ow-AHL7s022FOia7qaBuaSLQkV X-Proofpoint-ORIG-GUID: sEwnJ3ow-AHL7s022FOia7qaBuaSLQkV 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/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"