Skip to contentSkip to conversation

iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb

PATCH Applied Aashish Sharma 2 participants 2 messages Oct 9, 2025 – Nov 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb

Invalidation hint (ih) in the function 'qi_desc_iotlb' is initialized to zero and never used. It is embedded in the 0th bit of the 'addr' parameter. Get the correct 'ih' value from there.

Fixes f701c9f36bcb ("iommu/vt-d: Factor out invalidation descriptor composition")
---
 drivers/iommu/intel/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel/iommu.h +1 -1
index 3056583d7f56..dcc5466d35f9 100644
@@ -1097,7 +1097,7 @@ static inline void qi_desc_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
 				 struct qi_desc *desc)
 {
 	u8 dw = 0, dr = 0;
-	int ih = 0;
+	int ih = addr & 1;
 
 	if (cap_write_drain(iommu->cap))
 		dw = 1;
Signature · 1 line
2.51.0.710.ga91ca5db03-goog
maintainer Applied
#1 lore raw
Quoted 9 lines · Aashish Sharma

Invalidation hint (ih) in the function 'qi_desc_iotlb' is initialized to zero and never used. It is embedded in the 0th bit of the 'addr' parameter. Get the correct 'ih' value from there.

Fixes f701c9f36bcb ("iommu/vt-d: Factor out invalidation descriptor composition")
---
  drivers/iommu/intel/iommu.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Queued for v6.19-rc1. Thanks!