Skip to contentSkip to conversation

iommu/vt-d: Fix page request descriptor size

PATCH Applied Lu Baolu 2 participants 2 messages Mar 17, 2020 – Mar 19, 2020 IOMMU

lore
Share & tools
lore

Lu Baolu

author
#0 lore raw

PATCH 1/1 iommu/vt-d: Fix page request descriptor size

From: Jacob Pan <[email protected]>

Intel VT-d might support PRS (Page Reqest Support) when it's running in the scalable mode. Each page request descriptor occupies 32 bytes and is 32-bytes aligned. The page request descriptor offset mask should be 32-bytes aligned.

Fixes 5b438f4ba315d ("iommu/vt-d: Support page request in scalable mode")
---
 drivers/iommu/intel-svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel-svm.c +1 -1
index 0e506de2d375..6183016f4269 100644
@@ -491,7 +491,7 @@ struct page_req_dsc {
 	u64 priv_data[2];
 };
 
-#define PRQ_RING_MASK ((0x1000 << PRQ_ORDER) - 0x10)
+#define PRQ_RING_MASK	((0x1000 << PRQ_ORDER) - 0x20)
 
 static bool access_error(struct vm_area_struct *vma, struct page_req_dsc *req)
 {
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Lu Baolu

From: Jacob Pan <[email protected]>

Intel VT-d might support PRS (Page Reqest Support) when it's running in the scalable mode. Each page request descriptor occupies 32 bytes and is 32-bytes aligned. The page request descriptor offset mask should be 32-bytes aligned.

Quoted 7 lines
Fixes 5b438f4ba315d ("iommu/vt-d: Support page request in scalable mode")
---
 drivers/iommu/intel-svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.