iommu/vt-d: Fix buggy QAT device mask
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Mon, 5 Dec 2022 13:14:12 +0000 (21:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 5 Dec 2022 13:27:03 +0000 (14:27 +0100)
commit81c95fbaebfa5990c3c786c8c3e87426a33106fe
tree086f6d1dead87792f10f26d3f47341c151c4561e
parent76dcd734eca23168cb008912c0f69ff408905235
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: e65a6897be5e ("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>
drivers/iommu/intel/iommu.c