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:
cf541bb
)
iommu/amd: Fix wrong shift direction
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 11 Oct 2011 15:41:32 +0000
(17:41 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Nov 2011 17:36:09 +0000
(09:36 -0800)
commit
fcd0861db1cf4e6ed99f60a815b7b72c2ed36ea4
upstream.
The shift direction was wrong because the function takes a
page number and i is the address is the loop.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index d3d9d50d93a549e7a2fe0981c3dcaf0a03d185da..bfd75ff5d5bda6083651eaa23cfc86e8f3a843de 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-1203,7
+1203,7
@@
static int alloc_new_range(struct dma_ops_domain *dma_dom,
if (!pte || !IOMMU_PTE_PRESENT(*pte))
continue;
- dma_ops_reserve_addresses(dma_dom, i
<<
PAGE_SHIFT, 1);
+ dma_ops_reserve_addresses(dma_dom, i
>>
PAGE_SHIFT, 1);
}
update_domain(&dma_dom->domain);