git: 26031009cf6d - main - amd64/efi: Stop falling back to hints for RSDP

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 02 Jul 2022 14:04:09 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=26031009cf6d68d4dc51b462d0bc77472c610e1d

commit 26031009cf6d68d4dc51b462d0bc77472c610e1d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-02 14:01:02 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-02 14:02:12 +0000

    amd64/efi: Stop falling back to hints for RSDP
    
    All boot loaders for the last 6 years set acpi.rsdp in addition to the
    hints. This was planned for removal ~5 years ago. Belatedly remove it
    from here.
    
    Sponsored by:           Netflix
    Reviewed by:            jhb
    Differential Revision:  https://reviews.freebsd.org/D35633
---
 sys/x86/acpica/OsdEnvironment.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sys/x86/acpica/OsdEnvironment.c b/sys/x86/acpica/OsdEnvironment.c
index c9b22f25a28a..89d240d9ac41 100644
--- a/sys/x86/acpica/OsdEnvironment.c
+++ b/sys/x86/acpica/OsdEnvironment.c
@@ -66,16 +66,6 @@ acpi_get_root_from_loader(void)
 	if (TUNABLE_ULONG_FETCH("acpi.rsdp", &acpi_root))
 		return (acpi_root);
 
-	/*
-	 * The hints mechanism is unreliable (it fails if anybody ever
-	 * compiled in hints to the kernel). It has been replaced
-	 * by the tunable method, but is used here as a fallback to
-	 * retain maximum compatibility between old loaders and new
-	 * kernels. It can be removed after 11.0R.
-	 */
-	if (resource_long_value("acpi", 0, "rsdp", &acpi_root) == 0)
-		return (acpi_root);
-
 	return (0);
 }