The branch stable/15 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=98172618820e5960f9ffa674e74f72e8965bc3f4

commit 98172618820e5960f9ffa674e74f72e8965bc3f4
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-06-20 13:52:09 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-06-25 00:50:22 +0000

    efirt(9): in verbose mode, announce the attachment and fw spec version
    
    (cherry picked from commit 43fb5b33b00f3b66ec03ab3e0ea002afd16cb7b3)
---
 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 b55c1c191077..d6a572720c37 100644
--- a/sys/dev/efidev/efirt.c
+++ b/sys/dev/efidev/efirt.c
@@ -234,6 +234,8 @@ efi_init(void)
                return (ENXIO);
        }
 
+       rtdm = (struct efi_rt *)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 = (struct efi_rt *)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.
         */

Reply via email to