git: 1bca58a1d40d - main - amdiommu: hide HPET report under verbose

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 09 Nov 2024 21:07:58 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1bca58a1d40d10c7cdd14b2988924cadd6efdc43

commit 1bca58a1d40d10c7cdd14b2988924cadd6efdc43
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-11-09 21:06:06 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-11-09 21:07:41 +0000

    amdiommu: hide HPET report under verbose
    
    Reported by:    markj
    Sponsored by:   Advanced Micro Devices (AMD)
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/x86/iommu/amd_drv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c
index 257de73baab5..d8f3c25fcae0 100644
--- a/sys/x86/iommu/amd_drv.c
+++ b/sys/x86/iommu/amd_drv.c
@@ -1001,8 +1001,9 @@ amdiommu_find_unit_for_hpet(device_t hpet, struct amdiommu_unit **unitp,
 	res = amdiommu_ivrs_iterate_tbl(amdiommu_find_unit_scan_0x11,
 	    amdiommu_find_unit_scan_0x11, amdiommu_find_unit_scan_0x10, &ifu);
 	if (!res) {
-		printf("amdiommu cannot match hpet no %d in IVHD\n",
-		    hpet_no);
+		if (verbose)
+			printf("amdiommu cannot match hpet no %d in IVHD\n",
+			    hpet_no);
 		return (ENXIO);
 	}