From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9039EC433B4 for ; Mon, 3 May 2021 19:00:07 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3B8F611C0 for ; Mon, 3 May 2021 19:00:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3B8F611C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2G391ZtElciagyDfbllpfxwJxC+SQkgAkskIVGzSuso=; b=B3W8T7HA3ac4nCwhrOEwFkRbT RFgfhNFaETuocDRqhRnVFsdQM4AoHMYLrpEK+wMTod80tNkx7mGo5Eve3wgFGJRHXAuZ/JD0Sczad nB9ItPtyTNmOreajsni8xtjgGBq1hTg9x5l34uf9QyNqzjZBfOnDnJxk8ieKIkeO3UTRtbMtFTqen gZOoK5tWolTOwoIPg6hR555cmFIm7kTgxqQrpGBIIJsEN+m29JTg3QY/YK9SroFfJCX9NgX9TAyxc hsIXUTCWtONbwOG3jJSK6jg0NrSQWQgZccsbvL3xgMzjz/z50CHSINjB1KE6QcjiN23GdhggVBK92 8I0Pbygmw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lddlR-00EfPI-LE; Mon, 03 May 2021 18:57:53 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lddlL-00EfNd-7p; Mon, 03 May 2021 18:57:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0HZn1b/NllrSUo45LuH01UtxPX9ehqqF1ea2ZEfeMuA=; b=SaKxS/R14//tnJdhL+CVlCT9++ 9f0Z7SoBvCS2hZLr7dDydMMYHVJvNVknO83kLB2Vp1ahaNq3Hvho9ocDxYBExZMqhj8gOYc/YW2S0 mAJOw7U0GYS1Yo2k3fEtp+rbtfpzP4r0qCLqTzKO7bgO2ilaknibDRNW0qvSZF/xZloWvNTO2P1Am Hu3urC29+47E9kFSWfyYUXRPYZXXgVtV+F55biCissBt5RLem6hjvN0A9Imsort2vX9RHYE9bpmLP 0WobyM+sruFgymmIj83Ct8GTWF6mTiVgmCrMU3+QVsR1xa3l7TGMqbirUFlCIWnuicjQO8i4wzc0Y n73RlRvw==; Received: from mail-pf1-f172.google.com ([209.85.210.172]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lddlI-003Q27-Gi; Mon, 03 May 2021 18:57:45 +0000 Received: by mail-pf1-f172.google.com with SMTP id 10so4921374pfl.1; Mon, 03 May 2021 11:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0HZn1b/NllrSUo45LuH01UtxPX9ehqqF1ea2ZEfeMuA=; b=qZl/8lOpf9GkfdX5ZCRLlnDvgtLNzG2Ee+zYziKkwruWJqZdYJ+aiDTM9y2jktBU1d Aa4OvHOGqSWNGFYHmyFtODzafgU7UXq/UxmzD62FoMa83QErT7Ks7plfWoBdCUJ1ESRg dy3Lt0ovT1SLAAy0d+RikNDSaQxUHtE0JVwXNfX2WzNl4WQsrWDZ9TjSLVu7N0cc8YnI e53pCOeld7me5waGM3cQXgVr01imKaF0dO/C+WTNOuQsLcDoLaJGMP7y9AfB6xEZKaG2 SeylMAoScR95L6bmzzbBhjTpB+7EToFgPaVKRAVswPjyk3ENC7KH5tepklFSelIr8IzG ozaA== X-Gm-Message-State: AOAM532cvADYsXFzHfHA6D0g4AieTefHSl+7egUcK8/NuT3T44fQ+8tN OLWZyLxP60sP3QCnXl7Jlug= X-Google-Smtp-Source: ABdhPJzMJvWZyUc0hPGx8XVcVIFLVZ8FaOutbfwAM1AjBYFT6tswp6DYVktB0QpPV8U8xIhDUakawQ== X-Received: by 2002:a62:1b88:0:b029:1fb:d3d0:343a with SMTP id b130-20020a621b880000b02901fbd3d0343amr20258867pfb.76.1620068263711; Mon, 03 May 2021 11:57:43 -0700 (PDT) Received: from localhost ([2601:647:5b00:1161:a4cc:eef9:fbc0:2781]) by smtp.gmail.com with ESMTPSA id s22sm327245pgk.28.2021.05.03.11.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 11:57:43 -0700 (PDT) Date: Mon, 3 May 2021 11:57:42 -0700 From: Moritz Fischer To: Marc Zyngier Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Ard Biesheuvel , Mark Rutland , James Morse , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Eric Biederman , Bhupesh Sharma , AKASHI Takahiro , kernel-team@android.com Subject: Re: [PATCH 2/2] ACPI: arm64: Reserve the ACPI tables in memblock Message-ID: References: <20210429133533.1750721-1-maz@kernel.org> <20210429133533.1750721-3-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210429133533.1750721-3-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210503_115744_577810_7A7385BD X-CRM114-Status: GOOD ( 21.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Marc, On Thu, Apr 29, 2021 at 02:35:33PM +0100, Marc Zyngier wrote: > Just like the EFI reservations, ACPI tables can be stamped over > by kexec_file_load(), and the secondary kernel will be unable to > recover from such corruption. > > It looks like our x86 friends have been there before, and have > recently added some infratructure that does what we need since > 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI > tables"), though it appears to exist for different reasons. > > Let's call into acpi_reserve_initial_tables() early so that > our tables are protected from the big bad kexec. > Feel free to add (and/or): Tested-by: Moritz Fischer Reported-by: Moritz Fischer > Signed-off-by: Marc Zyngier > --- > arch/arm64/kernel/acpi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c > index cada0b816c8a..5b5406c92ee4 100644 > --- a/arch/arm64/kernel/acpi.c > +++ b/arch/arm64/kernel/acpi.c > @@ -233,6 +233,7 @@ void __init acpi_boot_table_init(void) > if (earlycon_acpi_spcr_enable) > early_init_dt_scan_chosen_stdout(); > } else { > + acpi_reserve_initial_tables(); > acpi_parse_spcr(earlycon_acpi_spcr_enable, true); > if (IS_ENABLED(CONFIG_ACPI_BGRT)) > acpi_table_parse(ACPI_SIG_BGRT, acpi_parse_bgrt); > -- > 2.29.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Thanks, Moritz _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel