From patchwork Mon Jun 12 17:27:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 13277011 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 5E5E6C88CBB for ; Mon, 12 Jun 2023 17:30:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235581AbjFLR3W (ORCPT ); Mon, 12 Jun 2023 13:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237484AbjFLR3O (ORCPT ); Mon, 12 Jun 2023 13:29:14 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE5AFB; Mon, 12 Jun 2023 10:29:13 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35CHNr7h031990; Mon, 12 Jun 2023 17:28:46 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=6wmzWSL2YBGepZ1aB0tX53kN5FDgi2nMW+NTRmgqeYw=; b=pIg5xnTj/zs3yFVnD3EGUKzSDD1uLeuZjwcn4Ug5KFtHf4JzKMtHWHVoEkpX5RBmfpse oeRjnZoLX8AynLo++CaC5tE5jZEjW/wj3d23W+sZIh7sGDraUWoRuEAYP3/2XdOASvjS wkT0JF0sgQBtQXybH81IscH+QSJj9Aic5suLTon3KAjEzu11tGfesNOR3FV8pC1vtugs wnc4xwCj+DkXKSs0THiYC1KY7fc65ozjIXRgYpEuhzNt0njX6zljo3K6/s81Rd0qqeVx BRinlMQb1ClYUtkKX0sTxsVplonJfVMsfEuoC4As/zP+R6R5iTk8lnUbKHAgw0WN1aVs lw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4h7d3fdd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:46 +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 35CGJxdk016254; Mon, 12 Jun 2023 17:28:45 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 3r4fm32y8j-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CeH8H6c07VUQtYsHnup+93DaRP6SiWDOZFhOlV3q3AkTXaxswrFIl6wQ6S+L6+9ryHcd22OvPcWfQAVjJwibAWqCZqAnIcepI0IKICUJp4oJaZDGqdFk01pzALKuIsgxy5xJqpm/ARTb9JM3SIBRBCZgpUyXry2XeW6fMWqt9Iu30cSYH/moaHHlZYCiryk1juegK9u93Rn6ZTOq8nxoCZ8YglgC7zQKuiwRVbEtXkSZ+6aSRsT8yj8iQqpxhU944ZPyNNCgLEN5P6C9i079rYOUVkZnLga1lKTbp4pKPyqsfTfvhvRcXyBzrlxwUlDuewr4U4KQ+11r8o5dwEhsZQ== 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=6wmzWSL2YBGepZ1aB0tX53kN5FDgi2nMW+NTRmgqeYw=; b=DoG/nkt9DnHT8ftSeb5R8BzuwuQPde2LT1jP6QNzZxKUBK479bWWHFv0ZxxwRj0JBjZmum+03q/jJYYlcb+edE564213UJQ+Ygut9IjvWAhN87h6KT4l+PjpZUiDo6Sf954ASdx5X4CTK+OwLfBwT5TwcdB3lBR/U/B9xJqfMj3Tz/2chdYkX6n6XP8/pzv9QCpW+CRwL0RjtbSSKwbwfUqLFky/EL0m2KezvrRIRBwqUmPiBodT6UC6fieOMg3uJf3RczNsIo9Nvu1zWoDQfvMX5ABrSkeQ9TTs7OGwSXCcqUYQdE2tqRISBFULor1xVn8IFZjlqtgKywMO2bIs5g== 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=6wmzWSL2YBGepZ1aB0tX53kN5FDgi2nMW+NTRmgqeYw=; b=y+/F6mv32cm4uq01SYNSB92PfhtkY3Zq6QTubIZ/ySYzFd+Mfe8nc503uooBI3ycEzQHtoTv6hImv8TjJumMIYirVRrcW/gNEQsZXgZ3Lx86bpp1O7H1tchnbYS3ewr/PUANulpJFBdMJlSuw23KEkaV0oFMrBxfJa6vPuDYy74= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by DS0PR10MB6975.namprd10.prod.outlook.com (2603:10b6:8:146::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Mon, 12 Jun 2023 17:28:31 +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:31 +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 06/21] loongarch/kexec: refactor for kernel/Kconfig.kexec Date: Mon, 12 Jun 2023 13:27:58 -0400 Message-Id: <20230612172805.681179-7-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: SJ0PR05CA0142.namprd05.prod.outlook.com (2603:10b6:a03:33d::27) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|DS0PR10MB6975:EE_ X-MS-Office365-Filtering-Correlation-Id: 26ed774f-9d01-4307-a847-08db6b6a713c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bqAexMbSZWVHvzOUMexaeZTL+T+bGjpdfZ8zjH1v2LeZ97Jw2JSDTdkRcd62CVIVSy0RG6k9+u2w3/Y4AqbhOLq5w3euWhaEBvhygrwZZZP2KfPFWZL2losDLdHrmIQa7+qXi1rZ+69EnUsPxURv2wcQBja3G3kd2WcYtAf6/YedBIAG5sV8WDP2QZwVYhpxqekLiw6GE/tKRNaYUIZt/ApJ9YWCr2ksmH/wp6aYAfm+rVkUULaZgO8EgFFODtu0Z845XRQJagFT7CqKdr14I17ZYK3B8FlKquzEphyVDdnRXgiyi21eoODdDiXxqycn7LLiSpxv09DVPHqqoq1QrStZNMjb4DrTZDXNMxR2ilXjk2zGJjp8bVII89YMKkrbEkPqdwCg5SIWlOk9xeK+MbYuVSvmvB7q5vw45ZMLPd1QxnWw9qyoWO9Ec3uHTZgpAql63nJR5LFSnz5h/CJaZkAuY6bfZAWLvkWA+LE+Emvlk5IfvmCZ8GgD3TLl75KeTSvveg5V3+Jl1GvvNggvRlg8icZOtJh1xJepU+fhXOiUSzBurzjwPR+OgC463yHkHGb+PfFltB3c3dCem89ySzd4n498p6N18xges9kHMgQ= 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)(376002)(39860400002)(366004)(346002)(396003)(451199021)(6486002)(316002)(41300700001)(2616005)(83380400001)(86362001)(186003)(6512007)(6506007)(1076003)(7366002)(7406005)(7416002)(26005)(2906002)(107886003)(921005)(38100700002)(36756003)(5660300002)(8936002)(8676002)(66476007)(66556008)(66946007)(478600001)(4326008)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d6UlT7OvGVIZgxcq4dKA4QMO6O8NAD7LJEp5tGJgv1UcPLrCnKEyUHL33cBzDvasG/BZeYldy+DL+yXn3kI9DKN7I9VwlrG3hebMhKwtO2tay1Gfqer50YauF/ab7aKWnrq3XHWQeVoHRTEcXXc+UdYtP9eeMocx1w+RIhFBFf0sRQWnQZHS4iuvuAkHc3iqfcjwbRUDNNGoMNfzbyTU54nzh/Z4gF3A69mcHlHsdYuLKM8uuGt7U28zYkQ+jvWDa/x8oMqWYNFNl+tYNt/ngHyCutMPN3/M7Js50QhK3EU8L64XeQzYn0wGQKI1IJTw9fW2fzkx5rmaGBktjylhZKjda74ruD8vC66dWw/gh6hP5uDuMY4WC3fQn8t6IlGkrS50JcxOEKunWEQ38cZ9LWYL9IrMP66qvR/N9k9x59Eu5LM6t+nez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Z9C9rVWiOXpdrQnvYjl4mO3llPL9YgvCiR7wNl3YJBzzDFkA1XuOrjbFlVFmRKNnw6psnFVuUN7tRWAn21nYr4MRRHhZvDb3DB9GV+tyKd+2HefmKC81Q3FtoqlcgiXEtvXL9GIsqRiiG70pt46pbSAESlqbLjp7jrHVHZijZGI8DYOXZ4VxugCAhlEUMVvMBAln0sp45MGfVrjGhHA3tR6mUCtScc3niRNe2NlHVmhbLc73qIoDqSmA2zBJDCOlU9EsimOKgYHJGHVbeTNszoB7WoEOMjCpq0+qnZIVEiGRcPhdE6Ii7m30H3Q== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26ed774f-9d01-4307-a847-08db6b6a713c 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:31.5303 (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: hnWL7uXocX7xZBvo0rr5x95/GnpyVYIxZ6k+UFiYFySzh2a07M97tCYo75hGN7hufE6uNuyrvQNsI+nSDAyEh2W7S/hIaqahHT7kyXKoeJM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6975 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: vug2UuI7eBp8UwB6sQJVj8MWnqE1LP-l X-Proofpoint-GUID: vug2UuI7eBp8UwB6sQJVj8MWnqE1LP-l 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/loongarch/Kconfig | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index d38b066fc931..e836d3310060 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -481,28 +481,16 @@ config ARCH_STRICT_ALIGN to run kernel only on systems with h/w unaligned access support in order to optimise for performance. -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_HAS_KEXEC + def_bool y - The name comes from the similarity to the exec system call. +config ARCH_HAS_CRASH_DUMP + def_bool y -config CRASH_DUMP - bool "Build kdump crash kernel" +config ARCH_SUPPORTS_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"