提交 81c95fba 编写于 作者: J Jacob Pan 提交者: Joerg Roedel

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: e65a6897 ("iommu/vt-d: Add a fix for devices need extra dtlb flush")
Reported-by: NRaghunathan Srinivasan <raghunathan.srinivasan@intel.com>
Signed-off-by: NAshok Raj <ashok.raj@intel.com>
Signed-off-by: NJacob Pan <jacob.jun.pan@linux.intel.com>
Link: https://lore.kernel.org/r/20221203005610.2927487-1-jacob.jun.pan@linux.intel.comSigned-off-by: NLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 76dcd734
...@@ -1402,7 +1402,7 @@ static void domain_update_iotlb(struct dmar_domain *domain) ...@@ -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 * check because it applies only to the built-in QAT devices and it doesn't
* grant additional privileges. * 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) static bool dev_needs_extra_dtlb_flush(struct pci_dev *pdev)
{ {
if (pdev->vendor != PCI_VENDOR_ID_INTEL) if (pdev->vendor != PCI_VENDOR_ID_INTEL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册