Skip to content

Commit 81c95fb

Browse files
Jacob Panjoergroedel
authored andcommitted
iommu/vt-d: Fix buggy QAT device mask
Impacted QAT device IDs that need extra dtlb flush quirk is ranging from 0x4940 to 0x4943. After bitwise AND device ID with 0xfffc the result should be 0x4940 instead of 0x494c to identify these devices. Fixes: e65a689 ("iommu/vt-d: Add a fix for devices need extra dtlb flush") Reported-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com> Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Link: https://lore.kernel.org/r/20221203005610.2927487-1-jacob.jun.pan@linux.intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 76dcd73 commit 81c95fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ static void domain_update_iotlb(struct dmar_domain *domain)
14021402
* check because it applies only to the built-in QAT devices and it doesn't
14031403
* grant additional privileges.
14041404
*/
1405-
#define BUGGY_QAT_DEVID_MASK 0x494c
1405+
#define BUGGY_QAT_DEVID_MASK 0x4940
14061406
static bool dev_needs_extra_dtlb_flush(struct pci_dev *pdev)
14071407
{
14081408
if (pdev->vendor != PCI_VENDOR_ID_INTEL)

0 commit comments

Comments
 (0)