Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Aug 2026 11:58:24 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9f4df9fc1ba8 - main - amd_iommu: Honor disabled interrupt remapping
Message-ID:  <6a7719e0.35fc4.483b2c15@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f4df9fc1ba8841a28584ed1323fc8cc9e54c9bc

commit 9f4df9fc1ba8841a28584ed1323fc8cc9e54c9bc
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-08-06 06:43:47 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-08-08 11:57:28 +0000

    amd_iommu: Honor disabled interrupt remapping
    
    Do not instantiate an interrupt-remapping context for a unit whose IRTE
    support is disabled. In that mode the caller must retain the ordinary
    interrupt path.
    
    Reviewed by:    kib
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D58725
---
 sys/x86/iommu/amd_intrmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/iommu/amd_intrmap.c b/sys/x86/iommu/amd_intrmap.c
index cce4f57ca323..3e48281d1931 100644
--- a/sys/x86/iommu/amd_intrmap.c
+++ b/sys/x86/iommu/amd_intrmap.c
@@ -254,7 +254,7 @@ amdiommu_ir_find(device_t src, uint16_t *ridp, bool *is_iommu)
 	} else {
 		error = amdiommu_find_unit(src, &unit, &rid, &dte, &edte,
 		    bootverbose);
-		if (error == 0) {
+		if (error == 0 && unit->irte_enabled) {
 			ioctx = iommu_instantiate_ctx(AMD2IOMMU(unit), src, false);
 			if (ioctx != NULL)
 				ctx = IOCTX2CTX(ioctx);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a7719e0.35fc4.483b2c15>