Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1970003lqb; Mon, 27 May 2024 03:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWTpwZCXfekgXxlDfO2+Skz8KAIYKX9y/cb6g7CVHTXY4Wr1JUUwvFbR9YA8RGg2jWZTM2ytWVxgAFYxbssRaCzc4+D0LqpgnnXMz75A== X-Google-Smtp-Source: AGHT+IGiFYoFnqLJDAXo1GdSlUKfDO+hhgox0P8H6u6QhNdBzzgzrIF4s5Jr0h3eXL9T62j28FGM X-Received: by 2002:a05:620a:2949:b0:792:c683:1f48 with SMTP id af79cd13be357-794ab0ad310mr1197753285a.36.1716807173153; Mon, 27 May 2024 03:52:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716807173; cv=pass; d=google.com; s=arc-20160816; b=q/29Ukj7reQ9b0fsYcuHVC2zeAGOOpMm3frUD2kFq4oklure3TB4EzFeenHYb4EM3/ cWgycrwOXhANIXRtIMMA8OBKj7JPvT5/t/6tHx3tctzEqw5AFLAX730+dPX8lloBNQD4 IXJVngokpJo5akdIgRLp+nNmDLIMosrvMjLWmyJfvCeOTB0mjXCye6TKyHAu/Lkr8MgL b/0WjZSkQsfAgiF5RuMj34EJlY/fHvtgBCLqDY2fOe5jA+qVK/4LdVLvMGVxx/1uCZ7J Gi/TOMxakzhFYgHtUR+v2FD6Asxrqm3LiCPS21KyC/VU8Jmks8H2LLPb5FrWRgLYwYlp GOpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=m6Nh7U7GZV/H8xx3OHSR4oltBVkX9bRZbGBjVh21FkQ=; fh=JKSYDsBv/htdQDtwt1u2Aaq1gXTAA/pS6lkvMgF0eJ0=; b=XKYqJEhFokAcY84Z3QKV1vdS97tKwwRID6eVUAQB6S9clRYF2bYkpa/vIt/7nqhkTv aaytE/4J/CZZ2mQFoaiORMyD0vu+qgat9our7rffhl1VGmU5WlhLrEkUjqJ9CWDnxkkd CUSOQ99yy5jpYoSC/uz4J38kqsjMLUIeMKsBq0vcb5kQY8Muv0LJjKyUqPKv9OcunB+R lgQCtUaE2uwgUtXngvDs9AO5NpMzrqPEfsMOdiI6jKY3rRBdOZ2S4jCEsmus4FU33tOX XQBwWOEwEUApl9VCujCA9+imdXxTjkT5cHnrdLhZ5nY+HmdtQsVEh1wR5X7NYqRAJluJ 8mxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VOzR9u1W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd60594si768468885a.753.2024.05.27.03.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 03:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VOzR9u1W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 693D61C21686 for ; Mon, 27 May 2024 10:52:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 390F313B7A3; Mon, 27 May 2024 10:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VOzR9u1W" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5C40A26AFA; Mon, 27 May 2024 10:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716807154; cv=none; b=ek6Kq/rH9rwTRphxxZQo+dcqpbaeXonJNGCS0i6BUcOU9DpOx64bHgfo0FecLMYuOOajDBnkm8BfPzf+S/7W6OmYQROTPRamm4vkJyKVPVNWulYcgF1niTPM9mlNCCA3PNeWMzW5396WxlF8xvQYAkeQ5OEUE6sLwwGmNQOqWiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716807154; c=relaxed/simple; bh=5/ZLDV8Iyzas1ubq92DLJv9DNZaEGKWqIJPqjORoDqw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hos3VSMZCVPzPwmTte5yMe2SB+H8D9j1nBZTzF9M7C/aJgTCqcjrEb/EsChkBkQ++L0bMPZzDOp0pVpj12Qjw9Vxp7m9TLee+m5UUFAF4caM2NeHdZfLmM/X2uAfmwq/WdExObsMl2QlGvoaLRUz6oldY6HGHPf5sGWTUUSFmcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VOzR9u1W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA37FC32781; Mon, 27 May 2024 10:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716807153; bh=5/ZLDV8Iyzas1ubq92DLJv9DNZaEGKWqIJPqjORoDqw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VOzR9u1WOXecn/8ojc6gcvkP2Bd6HM8IMvEqbJaHEiqz49dAM5MINItVPXATIjclD USXxeXxl2xsv5eVeY0TpwQi75c2yFw1O9WH/K5BVfNrKHgzox/Wouz+NWN+MnNDZxB uS4u26frYlKc+sLELcTbiFU0VJNIAkjcC8eawUSYWfAG8Q8gzCJmdc0kJrOfQCLOMT +eGQSQteZPBUWLPjhQ2+nqmMX68mt0U62ZodmV2WK8pBixKDJHiuhRbPacrshW4cPZ W/gwb4J+eKhxONVtBRHflqKA1uQg3ZGut4HaGA1gOnit5dPDR28L6JnIw+Uy+ZTq8G 5LMYZhsEc/oMg== Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-2501408eb85so604fac.0; Mon, 27 May 2024 03:52:33 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWcUAPWtUHkTNzq9BI5QFFrftvrhvOJv6enfYwHVhpZmzuUYKww1ZudsA5xNIbLCp/RZaEzcZUZD6JZdCd9tOn+yxsf3K2pWlFElgj6Uo3cRRG6bgPJZEU8BWooWHfFcEb82JCw+go0YQ== X-Gm-Message-State: AOJu0YyNJoYcvXttNEn1b//TyMF0T4Ff2uk3d4FLxsxsVunHoOMS48Lu 6LPQ/vStyyebCSkWIrM0o2IBHtRgYhKCm3s1RaIuMi6E+OZrwUA/yXZuA7w9Bt45UU8oJjLKRiL nyP7qXCdLRF4ampocqUSOlI84+y8= X-Received: by 2002:a05:6870:7012:b0:24f:bd2f:28d0 with SMTP id 586e51a60fabf-24fbd311cc0mr7298472fac.0.1716807153145; Mon, 27 May 2024 03:52:33 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240524094149.189329-1-chunjie.zhu@cloud.com> In-Reply-To: <20240524094149.189329-1-chunjie.zhu@cloud.com> From: "Rafael J. Wysocki" Date: Mon, 27 May 2024 12:52:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fix kdump kernel cannot find ACPI RSDP To: Chunjie Zhu Cc: "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 24, 2024 at 11:43=E2=80=AFAM Chunjie Zhu wrote: > > kexec/kdump must pass acpi_rsdp (physical address of ACPI RSDP table) to = the > crash kernel, especially in EFI case, otherwise, the crash kernel fails t= o > locate ACPI RSDP table. Consequently, ACPI init runs into error, and APIC > mmio read page fault happens, finally crash kernel gets stuck. Fair enough. So has this ever worked before? Presumably it has, in which case it has regressed and so it would be prudent to say when it broke and why and explain why the proposed change is the right one to make. > Signed-off-by: Chunjie Zhu > --- > drivers/acpi/osl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c > index f725813d0cce..39474468dba1 100644 > --- a/drivers/acpi/osl.c > +++ b/drivers/acpi/osl.c > @@ -174,7 +174,7 @@ void acpi_os_vprintf(const char *fmt, va_list args) > #endif > } > > -#ifdef CONFIG_KEXEC > +#ifdef CONFIG_KEXEC_CORE > static unsigned long acpi_rsdp; > static int __init setup_acpi_rsdp(char *arg) > { > @@ -187,7 +187,7 @@ acpi_physical_address __init acpi_os_get_root_pointer= (void) > { > acpi_physical_address pa; > > -#ifdef CONFIG_KEXEC > +#ifdef CONFIG_KEXEC_CORE > /* > * We may have been provided with an RSDP on the command line, > * but if a malicious user has done so they may be pointing us > -- > 2.34.1 >