git: 173116c6a392 - stable/14 - DMAR: provide hw.iommu.ir alias for the hw.dmar.ir tunable

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 11 Sep 2024 08:44:33 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=173116c6a392b4a17af08f5262838e2b1e5ccb1a

commit 173116c6a392b4a17af08f5262838e2b1e5ccb1a
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-23 21:12:15 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-11 08:44:00 +0000

    DMAR: provide hw.iommu.ir alias for the hw.dmar.ir tunable
    
    (cherry picked from commit 22bf8cf32f355705eb40cfbd7892492ac8140c50)
---
 sys/x86/iommu/intel_intrmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/x86/iommu/intel_intrmap.c b/sys/x86/iommu/intel_intrmap.c
index 1ac51a7aaea0..d2f8f8df4691 100644
--- a/sys/x86/iommu/intel_intrmap.c
+++ b/sys/x86/iommu/intel_intrmap.c
@@ -331,6 +331,7 @@ dmar_init_irt(struct dmar_unit *unit)
 		return (0);
 	unit->ir_enabled = 1;
 	TUNABLE_INT_FETCH("hw.dmar.ir", &unit->ir_enabled);
+	TUNABLE_INT_FETCH("hw.iommu.ir", &unit->ir_enabled);
 	if (!unit->ir_enabled)
 		return (0);
 	if (!unit->qi_enabled) {