Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2880047pxb; Tue, 13 Apr 2021 12:31:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS8XRUYx2LFrLw+FvA8HPLuqbgDwCtRWxuDfKxykwF5Yr1SN0NnOdx7qRemyArm2tz3a/S X-Received: by 2002:a17:907:294f:: with SMTP id et15mr19149161ejc.14.1618342297215; Tue, 13 Apr 2021 12:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618342297; cv=none; d=google.com; s=arc-20160816; b=LHtCHMP6VVApleXnLfZho19Y5omNYq9ZNOlGxzOMHGcAgZ6cqn2+KcgMuOloRDSFVT wInFi2HfFJlUCGjVtY+E3VOvgfP0WoFeOnkwYaqRAC0lPhcnpNliKTQkgwepW0q97b0/ T21xkGtBLBwtDjDm+ejH2kTsz/1/HeUaDIE7qV0Kc4nmthZTvmz/8A/2IMSDlccrebIR XlVmLMQp7lWxcg/S8ts4H3u/vMeD4crI5/eImVVbax6de4xetP80qxrnqxdxfXMx+hTQ luJ32eWEkqJXau80ia3ium9V00Ntoz/bQfkx2w22kEbfB+VEa+tH25D91oVkhg/Qxgw5 j7uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pgTDR33Sl1/WzMAtIINFfKg6+GeEk3SdL+Jb3VbfzKU=; b=vTWaZzFimkOIk24Y5nw3c3denNKKBD+Zsai/+8Hhq83Y1+fRK14yumoipIBqlDl28m MQY8FSIVlNzO1WEE4jxD5JQWR/o7NH0xw/XbmR52tzqx4xr4PaQHsFtzj+3oLgMtnCu8 XgXPmNHEVsCErlP5WOSCDoTi7xfE7P7WztD7tPyNB5GH/9www8sXDhQb8yAnTgpxwnpk 7gV/h4SAZJ4+tdbNAFRZHvV2wgXFRmdGPe5KGx0d2394fXYe2jbNcYzypHUOnMV8vFtY Rgr2/6laC4wVCJQTiQIOcUw4Oyu/BEsmzgGAT7yqLbkKGZjH4GnnmmNX/gO9REQnWI1Z Wm7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs11si11972106ejc.421.2021.04.13.12.31.11; Tue, 13 Apr 2021 12:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhDMOB1 (ORCPT + 99 others); Tue, 13 Apr 2021 10:01:27 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:64576 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbhDMOBX (ORCPT ); Tue, 13 Apr 2021 10:01:23 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 2.0.5) id ff1bc5df57536676; Tue, 13 Apr 2021 16:01:01 +0200 Received: from kreacher.localnet (89-64-80-138.dynamic.chello.pl [89.64.80.138]) (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 v370.home.net.pl (Postfix) with ESMTPSA id 95DAD6692AB; Tue, 13 Apr 2021 16:01:00 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI , George Kennedy Cc: LKML , x86 Maintainers , Hans de Goede , Mike Rapoport , David Hildenbrand Subject: [PATCH] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade() Date: Tue, 13 Apr 2021 16:01:00 +0200 Message-ID: <11752259.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.80.138 X-CLIENT-HOSTNAME: 89-64-80-138.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrudekledgjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepkeelrdeigedrkedtrddufeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedtrddufeekpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepghgvohhrghgvrdhkvghnnhgvugihsehorhgrtghlvgdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopeigkeeisehkvghrnhgvlhdrohhrghdprhgtphhtthhopehhuggvghhovgguvgesrhgvughhrghtrdgtohhmpdhrtghp thhtoheprhhpphhtsehlihhnuhigrdhisghmrdgtohhmpdhrtghpthhtohepuggrvhhiugesrhgvughhrghtrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Commit 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") attempted to address an issue with reserving the memory occupied by ACPI tables, but it broke the initrd-based table override mechanism relied on by multiple users. To restore the initrd-based ACPI table override functionality, move the acpi_boot_table_init() invocation in setup_arch() on x86 after the acpi_table_upgrade() one. Fixes: 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") Reported-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Rafael J. Wysocki --- George, can you please check if this reintroduces the issue addressed by the above commit for you? --- arch/x86/kernel/setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Index: linux-pm/arch/x86/kernel/setup.c =================================================================== --- linux-pm.orig/arch/x86/kernel/setup.c +++ linux-pm/arch/x86/kernel/setup.c @@ -1045,9 +1045,6 @@ void __init setup_arch(char **cmdline_p) cleanup_highmap(); - /* Look for ACPI tables and reserve memory occupied by them. */ - acpi_boot_table_init(); - memblock_set_current_limit(ISA_END_ADDRESS); e820__memblock_setup(); @@ -1132,6 +1129,8 @@ void __init setup_arch(char **cmdline_p) reserve_initrd(); acpi_table_upgrade(); + /* Look for ACPI tables and reserve memory occupied by them. */ + acpi_boot_table_init(); vsmp_init();