Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp473147imu; Tue, 20 Nov 2018 02:05:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRIxQzfbiq//IA+KycMwWIOaUCeYQUCN/Cy5CVJlwtVO4dZf0rG25qYqOTjoNtEbYQ4CLd X-Received: by 2002:a63:4665:: with SMTP id v37mr1308023pgk.425.1542708348957; Tue, 20 Nov 2018 02:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542708348; cv=none; d=google.com; s=arc-20160816; b=YgLi7p76LTLR9WToU5bxTIV8Wn30j1ReND30T35pBZvifcUl4FrSSjCHUCkFuOOJR9 iYpH20qGv3wOy51Z1oZA2reNcqtpXOzDXm9hdvE+bMizcaDYoTUzjg3SFhc2ypsST75Y siEzIbNk8lx/7El7yVLetffRpO/qVeGZTVJjNOdVmQFL/P3kT+DhWcGnCOA5XLjqOG9k MmEAn9zzhVWTCJbRxb0Q5owIIZ+FYbMlEu0M7EdP5QzCN/r1dtRKHPfK8AAxRFNcNXcT 1s8X8Ji+FQnUyzA7C/lZ0PfpzNC4BkxHVbexh9lFB5bnGfSLoHJL33kFtIIYW32a2FKP C2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=TvyoFBfSid2IP6LQ840i6HjdIWUKWZpGbRx1LSaya0c=; b=tcdzeGgo1y4G4PgmAymFo7dEmCkswKay7uEBa5hIZGbss+/mrFaGlSwE2QifcjaLk+ sSZdGdSl7u8jstnoI2DI0n2u+PZvzT9WK5cJSghla3Eh745x4eCE1aQR1cbTWg53I7Af uHfBIM+bSwchnXw5emUtUQYfHcHE6A+y9vMtJqfj8iFVPYojo24KmHHP/tIVX4jf6Gd/ oFqCfAL2AqKYfxcLaES21ja0tWGjjRBR1bIZ+I448bHrpnHvNoCFG1UnUqtyK/f05Ydj Nbb7gmVWDaOMHLiteCBx0WG4gv+lW2njnAlIGsx5MecZmB5RXNYwTcrVLuD9bIXRNRud Cf5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si1320080plb.54.2018.11.20.02.05.34; Tue, 20 Nov 2018 02:05:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728205AbeKTU2b (ORCPT + 99 others); Tue, 20 Nov 2018 15:28:31 -0500 Received: from terminus.zytor.com ([198.137.202.136]:35823 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbeKTU2b (ORCPT ); Tue, 20 Nov 2018 15:28:31 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wAK9xlft2935501 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 20 Nov 2018 01:59:47 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wAK9xltn2935498; Tue, 20 Nov 2018 01:59:47 -0800 Date: Tue, 20 Nov 2018 01:59:47 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Juergen Gross Message-ID: Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, jgross@suse.com, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, jgross@suse.com, mingo@kernel.org, torvalds@linux-foundation.org In-Reply-To: <20181120072529.5489-3-jgross@suse.com> References: <20181120072529.5489-3-jgross@suse.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/acpi, x86/boot: Take RSDP address from boot params if available Git-Commit-ID: e6e094e053af75cbc164e950814d3d084fb1e698 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e6e094e053af75cbc164e950814d3d084fb1e698 Gitweb: https://git.kernel.org/tip/e6e094e053af75cbc164e950814d3d084fb1e698 Author: Juergen Gross AuthorDate: Tue, 20 Nov 2018 08:25:29 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Nov 2018 09:43:11 +0100 x86/acpi, x86/boot: Take RSDP address from boot params if available In case the RSDP address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Suggested-by: "H. Peter Anvin" Signed-off-by: Juergen Gross Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: boris.ostrovsky@oracle.com Cc: bp@alien8.de Cc: daniel.kiper@oracle.com Cc: sstabellini@kernel.org Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/20181120072529.5489-3-jgross@suse.com Signed-off-by: Ingo Molnar --- arch/x86/include/uapi/asm/bootparam.h | 3 ++- arch/x86/kernel/acpi/boot.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/uapi/asm/bootparam.h b/arch/x86/include/uapi/asm/bootparam.h index a06cbf019744..60733f137e9a 100644 --- a/arch/x86/include/uapi/asm/bootparam.h +++ b/arch/x86/include/uapi/asm/bootparam.h @@ -155,7 +155,8 @@ struct boot_params { __u8 _pad2[4]; /* 0x054 */ __u64 tboot_addr; /* 0x058 */ struct ist_info ist_info; /* 0x060 */ - __u8 _pad3[16]; /* 0x070 */ + __u64 acpi_rsdp_addr; /* 0x070 */ + __u8 _pad3[8]; /* 0x078 */ __u8 hd0_info[16]; /* obsolete! */ /* 0x080 */ __u8 hd1_info[16]; /* obsolete! */ /* 0x090 */ struct sys_desc_table sys_desc_table; /* obsolete! */ /* 0x0a0 */ diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index fb3b1f3a5aba..06635fbca81c 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -1776,5 +1776,5 @@ void __init arch_reserve_mem_area(acpi_physical_address addr, size_t size) u64 x86_default_get_root_pointer(void) { - return 0; + return boot_params.acpi_rsdp_addr; }