Skip to content

Commit 02f9d76

Browse files
vkleenjoergroedel
authored andcommitted
iommu/vt-d: Treat PAGE_SNOOP and PWSNP separately
The PASID_FLAG_PAGE_SNOOP and PASID_FLAG_PWSNP constants are identical. This will cause the pasid code to always set both or neither of the PGSNP and PWSNP bits in PASID table entries. However, PWSNP is a reserved bit if SMPWC is not set in the IOMMU's extended capability register, even if SC is supported. This has resulted in DMAR errors when testing the iommufd code on an Arrow Lake platform. With this patch, those errors disappear and the PASID table entries look correct. Fixes: 101a285 ("iommu/vt-d: Follow PT_FEAT_DMA_INCOHERENT into the PASID entry") Cc: [email protected] Signed-off-by: Viktor Kleen <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 18f7fcd commit 02f9d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/intel/pasid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#define PASID_FLAG_NESTED BIT(1)
2626
#define PASID_FLAG_PAGE_SNOOP BIT(2)
27-
#define PASID_FLAG_PWSNP BIT(2)
27+
#define PASID_FLAG_PWSNP BIT(3)
2828

2929
/*
3030
* The PASID_FLAG_FL5LP flag Indicates using 5-level paging for first-

0 commit comments

Comments
 (0)