Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp403496pxj; Thu, 20 May 2021 12:01:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyQr0qNPx8hSIMyil1rNyIfnhKJ609CJ1QzmQJ9ssrnXp2VLrR6byDOYgVQ1dcxZ1Dty6o X-Received: by 2002:a02:9621:: with SMTP id c30mr8089741jai.113.1621537294972; Thu, 20 May 2021 12:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537294; cv=none; d=google.com; s=arc-20160816; b=BXdpIgKXFXjZ6hseaN5BlAnsX2LEEed/L5c3jY8KJk1V4hb4jGRJrogV39HJTSDjYB HUGsMhSnm+TVmlsk4E6xNyG8rxKOAW7h5bjxGrCakMYhlSEQCpcWsHs+k81456JaiT56 LIdme2k04PzpjIP5R6QlTzmebOkqCV+LYCwnePAVEO/jvZ5+VqIObC7HGXvemx1rHA/R dZmAI4NhZxfkdPDe0b9q2MbvxmPDYZlSq3hUsNUnpBjmEU4YHKlfawhtEXoO8FIvP1pe FNg6Tt4XgkEzsfLyKmvyWO4LYsMkxsrRLqvGpU++CbV4M5Z3BqyhHuM4fbLqoBYC2YkX SP8Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RyjreMTnW0Q82atpAWoWCz31XSi3B4htucN6TcHEyU8=; b=RF8IWcRO5xYHp0tK4TsXbR7UC7JXKy9dbp0VIFCl9DmfjATzsAxkB8d5gOsZESLUZr R/c4Av02EfUca+9n6nKl5aQJRxNzs903xKOPB6Qa64u/SWC4aSYmzIlofgo5NOPnGbV6 zW+unFZC9U/JeWDM98bUYFNi5NaDYPgT+xKEV0BhmUmfAmZ+iZJwB9cdfYf6Re4yXD/O 9ah60YpoKTQpJPoS2zBAJXbGTJPFiwV3EFrgK4G5w44CVZyl+4AGcF7Pzmibsqq2h4Ws uXM27Td4yiMIXe/KdfwSLCZHVocRF39z2mMy3r5Sa2XWmTQCgXjrA8ZffBLKmYx+e7P7 +3vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fMe5TllR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b27si2936628jaq.105.2021.05.20.12.01.21; Thu, 20 May 2021 12:01:34 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fMe5TllR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235769AbhETK1j (ORCPT + 99 others); Thu, 20 May 2021 06:27:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:47686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236463AbhETKPQ (ORCPT ); Thu, 20 May 2021 06:15:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7FC961990; Thu, 20 May 2021 09:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503930; bh=jXe+eICHR2kqfTF2x8QphGEPcMJeJCsAvRutRnGo/y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fMe5TllR2JsfaIo0KSWBRVGspX3L+i+aAgcDfGCDfetbK/l7JWhUMY+2ZtkaA/Fz0 zCdfEjTgJj7pj7aDHjQMMJEia7l8W58prpu1w4H4kCZhgOHvNmdlYK0dmS1RQIff9F hmXKmqQJYiRd4Qb0hUiChwspB4hrtIEykrNPNBDg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , "Rafael J. Wysocki" , George Kennedy Subject: [PATCH 4.14 003/323] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade() Date: Thu, 20 May 2021 11:18:15 +0200 Message-Id: <20210520092120.243381122@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki commit 6998a8800d73116187aad542391ce3b2dd0f9e30 upstream. 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 Cc: George Kennedy Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1129,9 +1129,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(); @@ -1214,6 +1211,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();