projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95fb614
)
iommu/vt-d: Fix address shifting in page request handler
author
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 16 Oct 2015 16:22:31 +0000
(17:22 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 16 Oct 2015 16:22:34 +0000
(17:22 +0100)
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>
drivers/iommu/intel-svm.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-svm.c
b/drivers/iommu/intel-svm.c
index 99a78030857b78d5e31c5d53db8b2627238fa069..24ee57c0786d018a5c9e2e447ac6ba03ba3063d7 100644
(file)
--- 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],