Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2560807pxb; Mon, 19 Apr 2021 08:26:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/UTUKElU+YiFIFMBigZybpFJBWfLu0W21rsSWG2ji0K1GARznHzrjLrae3C+oLnolKYiq X-Received: by 2002:a17:907:75d5:: with SMTP id jl21mr22763955ejc.408.1618846006095; Mon, 19 Apr 2021 08:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618846006; cv=none; d=google.com; s=arc-20160816; b=D0CSyE8fPahOMDhlpXqPfVPu1IUiRmzbKTX/SpOXZhDJFZpRm/b+d3rNpR5K2xyyDx PSaE3cvSRLH/qdj2Bw/xW74FjRVPlkvkigZvnxG97ASf4PB+LvOpWSwcNHtS6uXJE8IU jbMe/Ce7OgecGxKR306rvVchZTYPFFfOvxV/WYKW3B+/Us5F987gR2Y4r96oCQk8nHw0 JZGX0SIgPpalhoSR2t7WLjBXrf4RS5bP69aIn5EEvLl4Vf39zVXiN+0YIfqyZgc10/M1 a9Et8QD+a5HTBo0tCwWcHUFoo5fDaVPIA6mLJquhkCGmjPixwJwUz1SbSjqjyIEfNLM9 pPlg== 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=BY00dDdEXHE8vnvmV2XhHsaO1vSXGQCX5bS23IZQpGk=; b=P0avkDuvjH/bk3UcMqd9pTTsmaWXsGZt6hQrHZbpbaO/g3iN0i8zmC4n76RJvcjRbq 3REcRJOzy/19rTlC0h+jXzZGSRaT9HFl4jhEtttN0G+WnHJNQ/tkGMV0ndLvMIxxu2LZ v1fMh1v/hvV14pP8Ge39DR+5OgpjQ7+wkVp1ofyjUpUVejDqbJMpikVzoh3JXRslZYKg GM2wRoBq7ONJI8DkTdvTpSkbEMnZDKRfw1PgsB4naAyJ+/8FMCpiZjzUW7v910pgwihX KypeY5hLy6+aBy9wSEHXyOfKfqZqwjmw6tXuPAtab30TgeA6OaOyjNY6dme8M1DeLn6n 2GCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oWvIj5Mc; 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 kw6si11725045ejc.380.2021.04.19.08.26.22; Mon, 19 Apr 2021 08:26:46 -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=oWvIj5Mc; 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 S240840AbhDSNTJ (ORCPT + 99 others); Mon, 19 Apr 2021 09:19:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:47094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240385AbhDSNP5 (ORCPT ); Mon, 19 Apr 2021 09:15:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44A7D613D9; Mon, 19 Apr 2021 13:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618838014; bh=ARfhDnRHmo4R28NHBw3BaJQTkw/Hgf6QnKt5YkXkJ/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oWvIj5Mc4y+OVy+eYq6x59J5Uj+dDdzH3BM2L/sv2xNNQwvVfub4Az1vb8O3PAVzz cP8LY0eUDTAjh7F4FQ0cq2mvpX8pVkoDq77k4Riyvy2Pqmpvx1zh5xkT7S3lPs9YCU SyF6qELjJiKSUJLprTEV+K6ND4RunM0E42w26rvA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.10 013/103] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade() Date: Mon, 19 Apr 2021 15:05:24 +0200 Message-Id: <20210419130528.249666633@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419130527.791982064@linuxfoundation.org> References: <20210419130527.791982064@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 [ Upstream commit 6998a8800d73116187aad542391ce3b2dd0f9e30 ] 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 Signed-off-by: Sasha Levin --- arch/x86/kernel/setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index d23795057c4f..28c89fce0dab 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1051,9 +1051,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(); -- 2.30.2