* [PATCH] iommu/vt-d: Fix buggy QAT device mask
@ 2022-12-03 0:56 Jacob Pan
2022-12-03 1:41 ` Ashok Raj
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Pan @ 2022-12-03 0:56 UTC (permalink / raw)
To: iommu, LKML, Lu Baolu, Joerg Roedel, David Woodhouse,
Robin Murphy, Will Deacon
Cc: Yi Liu, Tian, Kevin, Raj Ashok, Jacob Pan, Raghunathan Srinivasan
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.
Reported-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
drivers/iommu/intel/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index d8759f445aff..0b10104c4b99 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -1401,7 +1401,7 @@ static void domain_update_iotlb(struct dmar_domain *domain)
* This quirk is exempted from risky_device() 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)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu/vt-d: Fix buggy QAT device mask
2022-12-03 0:56 [PATCH] iommu/vt-d: Fix buggy QAT device mask Jacob Pan
@ 2022-12-03 1:41 ` Ashok Raj
2022-12-05 16:29 ` Jacob Pan
0 siblings, 1 reply; 3+ messages in thread
From: Ashok Raj @ 2022-12-03 1:41 UTC (permalink / raw)
To: Jacob Pan
Cc: iommu, LKML, Lu Baolu, Joerg Roedel, David Woodhouse,
Robin Murphy, Will Deacon, Yi Liu, Tian, Kevin,
Raghunathan Srinivasan, Ashok Raj
On Fri, Dec 02, 2022 at 04:56:10PM -0800, Jacob Pan wrote:
> 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.
Can you add the lore link for the original post here just for reference.
as a Link: tag, since this depends on the other patch.
>
> Reported-by: Raghunathan Srinivasan <raghunathan.srinivasan@intel.com>
> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
> ---
> drivers/iommu/intel/iommu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
> index d8759f445aff..0b10104c4b99 100644
> --- a/drivers/iommu/intel/iommu.c
> +++ b/drivers/iommu/intel/iommu.c
> @@ -1401,7 +1401,7 @@ static void domain_update_iotlb(struct dmar_domain *domain)
> * This quirk is exempted from risky_device() 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)
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu/vt-d: Fix buggy QAT device mask
2022-12-03 1:41 ` Ashok Raj
@ 2022-12-05 16:29 ` Jacob Pan
0 siblings, 0 replies; 3+ messages in thread
From: Jacob Pan @ 2022-12-05 16:29 UTC (permalink / raw)
To: Ashok Raj
Cc: iommu, LKML, Lu Baolu, Joerg Roedel, David Woodhouse,
Robin Murphy, Will Deacon, Yi Liu, Tian, Kevin,
Raghunathan Srinivasan, jacob.jun.pan
Hi Ashok,
On Fri, 2 Dec 2022 17:41:19 -0800, Ashok Raj <ashok.raj@intel.com> wrote:
> On Fri, Dec 02, 2022 at 04:56:10PM -0800, Jacob Pan wrote:
> > 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.
>
> Can you add the lore link for the original post here just for reference.
>
> as a Link: tag, since this depends on the other patch.
yes, Looks like Baolu has already taken care of it.
Thank you both!
Jacob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-05 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-03 0:56 [PATCH] iommu/vt-d: Fix buggy QAT device mask Jacob Pan
2022-12-03 1:41 ` Ashok Raj
2022-12-05 16:29 ` Jacob Pan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.