aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@linux.intel.com>2020-03-17 09:10:18 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 10:38:20 +0200
commit7435523bb1b9a141c878fe2f2cc70aeab884727c (patch)
treef8f6b2eb1ad8244e52591237a15c3555d93ae197
parentfa2fa282240b6b5d5a82b344c1c706e685bbd398 (diff)
downloadlinux-yocto-7435523bb1b9a141c878fe2f2cc70aeab884727c.tar.gz
linux-yocto-7435523bb1b9a141c878fe2f2cc70aeab884727c.tar.bz2
linux-yocto-7435523bb1b9a141c878fe2f2cc70aeab884727c.zip
iommu/vt-d: Fix page request descriptor size
[ Upstream commit 52355fb1919ef7ed9a38e0f3de6e928de1f57217 ] 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") Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Liu Yi L <yi.l.liu@intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/iommu/intel-svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index fc7d78876e02..2998418f0a38 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -531,7 +531,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)
{