git: 6cba29c09a96 - main - acpidump IVRS table format: change 'IOMMUId' into 'IOMMU DeviceId'

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 19 May 2024 23:11:51 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=6cba29c09a966be33b0958f912a7c03d92b926b8

commit 6cba29c09a966be33b0958f912a7c03d92b926b8
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-19 23:01:43 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-05-19 23:04:45 +0000

    acpidump IVRS table format: change 'IOMMUId' into 'IOMMU DeviceId'
    
    and apply the consistent format for device ids used in other IVRS
    elements.  The field seems to be the PCI Device ID of the IOMMU itself,
    instead of an abstract unit ID.
    
    Sponsored by:   Advanced Micro Devices (AMD)
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 usr.sbin/acpi/acpidump/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index 0cc3f76ac018..fc2e8cb82c49 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -1504,7 +1504,7 @@ acpi_handle_dmar(ACPI_TABLE_HEADER *sdp)
 static void
 acpi_handle_ivrs_ivhd_header(ACPI_IVRS_HEADER *addr)
 {
-	printf("\n\tIVHD Type=%#x IOMMUId=%x\n\tFlags=",
+	printf("\n\tIVHD Type=%#x IOMMU DeviceId=%#06x\n\tFlags=",
 	    addr->Type, addr->DeviceId);
 #define PRINTFLAG(flag, name) printflag(addr->Flags, flag, #name)
 	PRINTFLAG(ACPI_IVHD_TT_ENABLE, HtTunEn);