Skip to contentSkip to conversation

iommu/vt-d: Fixes for v6.1

GIT PULL New Lu Baolu 2 participants 3 messages Dec 5, 2022

Subsystems (2)
lore
Share & tools
lore

Lu Baolu

author maintainer
#0 lore raw

Hi Joerg,

Below iommu/vt-d fix is queued for your fixes branch. It aims to:

- Fix buggy QAT device mask.

Please consider it for the iommu/fixes branch.

Best regards,
Lu Baolu

Jacob Pan (1):
iommu/vt-d: Fix buggy QAT device mask

 drivers/iommu/intel/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.34.1
author maintainer
#1 lore raw

PATCH 1/1 iommu/vt-d: Fix buggy QAT device mask

From: Jacob Pan <[email protected]>

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 e65a6897be5e ("iommu/vt-d: Add a fix for devices need extra dtlb flush")
---
 drivers/iommu/intel/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel/iommu.c +1 -1
index 5287efe247b1..644ca49e8cf8 100644
@@ -1402,7 +1402,7 @@ static void domain_update_iotlb(struct dmar_domain *domain)
  * check because it applies only to the built-in QAT devices and it doesn't
  * grant additional privileges.
  */
-#define BUGGY_QAT_DEVID_MASK 0x494c
+#define BUGGY_QAT_DEVID_MASK 0x4940
 static bool dev_needs_extra_dtlb_flush(struct pci_dev *pdev)
 {
 	if (pdev->vendor != PCI_VENDOR_ID_INTEL)
Signature · 1 line
2.34.1