Skip to content

Commit 52355fb

Browse files
Jacob Panjoergroedel
authored andcommitted
iommu/vt-d: Fix page request descriptor size
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: 5b438f4 ("iommu/vt-d: Support page request in scalable mode") Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Liu Yi L <[email protected]> Signed-off-by: Jacob Pan <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent fb33c65 commit 52355fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel-svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ struct page_req_dsc {
531531
u64 priv_data[2];
532532
};
533533

534-
#define PRQ_RING_MASK ((0x1000 << PRQ_ORDER) - 0x10)
534+
#define PRQ_RING_MASK ((0x1000 << PRQ_ORDER) - 0x20)
535535

536536
static bool access_error(struct vm_area_struct *vma, struct page_req_dsc *req)
537537
{

0 commit comments

Comments
 (0)