diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-16 19:22:31 +0300 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-16 19:22:34 +0300 |
commit | 7f92a2e9107c2cf870a11bb77738207daa94fee3 (patch) | |
tree | 19800acb50f81395c81156437e81751bc37600f4 /drivers/iommu/intel-svm.c | |
parent | 95fb6144bb2222b4c0189e76c1aae006b0a02bff (diff) | |
download | linux-7f92a2e9107c2cf870a11bb77738207daa94fee3.tar.xz |
iommu/vt-d: Fix address shifting in page request handler
This really should be VTD_PAGE_SHIFT, not PAGE_SHIFT. Not that we ever
really anticipate seeing this used on IA64, but we should get it right
anyway.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/iommu/intel-svm.c')
-rw-r--r-- | drivers/iommu/intel-svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c index 99a78030857b..24ee57c0786d 100644 --- a/drivers/iommu/intel-svm.c +++ b/drivers/iommu/intel-svm.c @@ -490,7 +490,7 @@ static irqreturn_t prq_event_thread(int irq, void *d) req = &iommu->prq[head / sizeof(*req)]; result = QI_RESP_FAILURE; - address = (u64)req->addr << PAGE_SHIFT; + address = (u64)req->addr << VTD_PAGE_SHIFT; if (!req->pasid_present) { pr_err("%s: Page request without PASID: %08llx %08llx\n", iommu->name, ((unsigned long long *)req)[0], |