git: 43fb5b33b00f - main - efirt(9): in verbose mode, announce the attachment and fw spec version
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jun 2026 14:17:22 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=43fb5b33b00f3b66ec03ab3e0ea002afd16cb7b3
commit 43fb5b33b00f3b66ec03ab3e0ea002afd16cb7b3
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-06-20 13:52:09 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-06-20 14:17:07 +0000
efirt(9): in verbose mode, announce the attachment and fw spec version
Reviewed by: emaste, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D57710
---
sys/dev/efidev/efirt.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c
index c3ac120c6611..2e9a917de1f0 100644
--- a/sys/dev/efidev/efirt.c
+++ b/sys/dev/efidev/efirt.c
@@ -234,6 +234,8 @@ efi_init(void)
return (ENXIO);
}
+ rtdm = efi_phys_to_kva((uintptr_t)efi_runtime);
+
#if defined(__aarch64__) || defined(__amd64__)
/*
* Some UEFI implementations have multiple implementations of the
@@ -243,7 +245,6 @@ efi_init(void)
* with an old loader.efi, check if the RS->GetTime function is within
* the EFI map, and fail to attach if not.
*/
- rtdm = efi_phys_to_kva((uintptr_t)efi_runtime);
if (rtdm == NULL || !efi_is_in_map(map, ndesc, efihdr->descriptor_size,
(vm_offset_t)rtdm->rt_gettime)) {
if (bootverbose)
@@ -255,6 +256,12 @@ efi_init(void)
}
#endif
+ if (bootverbose) {
+ printf("EFI runtime driver, fw spec %d.%d.%d\n",
+ rtdm->rt_hdr.th_rev >> 16,
+ (rtdm->rt_hdr.th_rev >> 4) & 0xf,
+ rtdm->rt_hdr.th_rev & 0xf);
+ }
/*
* We use SHUTDOWN_PRI_LAST - 1 to trigger after IPMI, but before ACPI.
*/