Skip to content

Commit 6b38a10

Browse files
Aashish Sharmajoergroedel
authored andcommitted
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: f701c9f ("iommu/vt-d: Factor out invalidation descriptor composition") Signed-off-by: Aashish Sharma <aashish@aashishsharma.net> Link: https://lore.kernel.org/r/20251009010903.1323979-1-aashish@aashishsharma.net Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
1 parent cb3db5a commit 6b38a10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/intel/iommu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ static inline void qi_desc_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
10971097
struct qi_desc *desc)
10981098
{
10991099
u8 dw = 0, dr = 0;
1100-
int ih = 0;
1100+
int ih = addr & 1;
11011101

11021102
if (cap_write_drain(iommu->cap))
11031103
dw = 1;

0 commit comments

Comments
 (0)