[linux-next,v3,13/14] arm, crash: wrap crash dumping code into crash related ifdefs
Message ID | 20240124051254.67105-14-bhe@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp785880dyi; Tue, 23 Jan 2024 21:17:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaEpwP7MfpM5beQFXsfM37c9wqZ8YR6oXN0Ns71xegQzp/8Fn8rG8bke8x6W1q4fEKeqPJ X-Received: by 2002:ac8:5a41:0:b0:42a:5509:aa8b with SMTP id o1-20020ac85a41000000b0042a5509aa8bmr1128744qta.68.1706073422913; Tue, 23 Jan 2024 21:17:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706073422; cv=pass; d=google.com; s=arc-20160816; b=fZOYP8Ghuny/bIsnApa18LlpgbA4XddwUDJZoNxf/gzEmrOgVFCraWmkEZ3NP9aWti 5/+qWVPErQnsNM0H0qFjMyFLTFWxquKawMTKAWnHg4Tb0vBXPsEB95XQmP9Jvb7jb1VX Xv89wfOG/kzVq7Fy515twS4fej8xjnEOgnqJFx35B9otBWjItvvdfensoe2SuX9zhbI4 rQcD/zugtqUV1+AcL6BeiH4+/Yyg8rhain0d2PaOrvBlFhz+FO5K3X2e5zIc5NAmFEIp DkQUBk3sfXpZcC46myaC/MzJrha6Ed2XnjcWcfotpPjBXm/AyXHgxdmrDogRhvsy9PI5 whkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DIZYlTsptXiAI7dlXg4SxNVNXFZexCcZy74a3rSLM5Q=; fh=zRw2lYWZmEZ+xk8Dyhrd0rqHIpogjnUXaVblO2ikfrI=; b=u+paVv5ksx9dBPDpdMjKNqIcwdSEQLmnMIL08+Lc1vKxHjYlJRcFeGVRU57jcg5OLj oHz0/Fp3k8NIb6dNLXBeO3oiFcN/kpnU+S+S8s2pIcXp2QenoDRHWQ6HYl8XCNzXV+hA 9sRGJIVmKw9dCB6C+XMBFBBIfKbloqWIFyiPp2MFnk3qRE4vbaFb5uq0sTeIlpBnKLxJ nW04ndXjEz8QyYfa59kMJ+CCk+snIu5EidIWR6q3pOUTxmN5Dz6whGzFZv3a/1BBP3gr cal1771//QFZrLyE4SvdTeEg/4Wr3WJ3I3dkBrViBKA7Vo/BpTuWBEt0gEmc8IVCZ0wo 3Xvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fpw1LwqO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o1-20020a05622a008100b0042a44f71dfdsi4923974qtw.512.2024.01.23.21.17.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 21:17:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fpw1LwqO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36462-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B3B341C20E25 for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 05:17:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 039581799A; Wed, 24 Jan 2024 05:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fpw1LwqO" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E20DA1775C for <linux-kernel@vger.kernel.org>; Wed, 24 Jan 2024 05:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706073280; cv=none; b=uRtw52mI85vXyaIsYb2EqRxmUr6HJNThDQl3F71E4Q7MoqD7v2kLrSWKUNQiqsgMbxGAKysvCrZbVALy3yHg+5bgD2lnQDJUMuOVSqviRbwDDoKziQCGTImmCa0siSEFZSSF5wRRrG0JufAQHpKZsGVLGBbL4z5Du/BHCXKRKCE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706073280; c=relaxed/simple; bh=k6IRigT5ShOUPzBco13SjuMG/jHBS6L0oyGW6iX8LiM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-type; b=ooyq7iz/9y0f+YdI5EO/Dnc1Yg+9lXYsQhvjL0fy4sPWBWyXoALGG0T8yNfIDwWEAKttEjqIwxqrb+1J+l2m3huU6U15xlR0FuYPLlkdunjhAl4YaqcGr/kZb0yjkxPEBDMmALa2kkzd4UHtrWV9ecmsJm6k3tMs8qDwxl4eVbE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=fpw1LwqO; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706073278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DIZYlTsptXiAI7dlXg4SxNVNXFZexCcZy74a3rSLM5Q=; b=fpw1LwqOlJurgFB7MzF1w7EK49COv4KnLkAwtKuHp01dTeEg9KiSCs4aBQNrjd8Qkyk72t 1LG7Cn1fOCc1iYbymIx8Ch5V0Ul7IuNa/iIf76Ic16cHR53TjdFbED6LFQMDfsxbguUjVF WnhXZro5ny3lftfpLtmeYGAjZ50fHds= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-460-vrDbGUhWNFqeQwQpMZG3Sw-1; Wed, 24 Jan 2024 00:14:34 -0500 X-MC-Unique: vrDbGUhWNFqeQwQpMZG3Sw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 83719837224; Wed, 24 Jan 2024 05:14:33 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEA7C1C060AF; Wed, 24 Jan 2024 05:14:27 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, akpm@linux-foundation.org, ebiederm@xmission.com, hbathini@linux.ibm.com, piliu@redhat.com, viro@zeniv.linux.org.uk, Baoquan He <bhe@redhat.com> Subject: [PATCH linux-next v3 13/14] arm, crash: wrap crash dumping code into crash related ifdefs Date: Wed, 24 Jan 2024 13:12:53 +0800 Message-ID: <20240124051254.67105-14-bhe@redhat.com> In-Reply-To: <20240124051254.67105-1-bhe@redhat.com> References: <20240124051254.67105-1-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788947645661921858 X-GMAIL-MSGID: 1788947645661921858 |
Series |
Split crash out from kexec and clean up related config items
|
|
Commit Message
Baoquan He
Jan. 24, 2024, 5:12 a.m. UTC
Now crash codes under kernel/ folder has been split out from kexec
code, crash dumping can be separated from kexec reboot in config
items on arm with some adjustments.
Here use CONFIG_CRASH_RESERVE ifdef to replace CONFIG_KEXEC ifdef.
Signed-off-by: Baoquan He <bhe@redhat.com>
---
v2->v3:
- Fix the lkp reported issue by using CONFIG_CRASH_RESERVE ifdef,
giving up the earlier IS_ENABLED(CONFIG_CRASH_RESERVE) checking
in v2.
arch/arm/kernel/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index ff2299ce1ad7..7b33b157fca0 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -979,7 +979,7 @@ static int __init init_machine_late(void) } late_initcall(init_machine_late); -#ifdef CONFIG_KEXEC +#ifdef CONFIG_CRASH_RESERVE /* * The crash region must be aligned to 128MB to avoid * zImage relocating below the reserved region. @@ -1066,7 +1066,7 @@ static void __init reserve_crashkernel(void) } #else static inline void reserve_crashkernel(void) {} -#endif /* CONFIG_KEXEC */ +#endif /* CONFIG_CRASH_RESERVE*/ void __init hyp_mode_check(void) {