]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb
authorAashish Sharma <aashish@aashishsharma.net>
Wed, 19 Nov 2025 05:16:13 +0000 (13:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:06 +0000 (14:03 +0100)
commit055e892aac1414bd3a17d435361722e2a6b4b2db
tree119d56cb848c84737d7337c6dc40277a9bc4c947
parent3cf1f23648496703707f5049807b856df2696688
iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb

[ Upstream commit 6b38a108eeb3936b21643191db535a35dd7c890b ]

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")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/intel/iommu.h