projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8c143
)
x86/amd-iommu: Remove bus_addr check in iommu_map_page
author
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 2 Sep 2009 14:52:23 +0000
(16:52 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 3 Sep 2009 14:03:48 +0000
(16:03 +0200)
The driver now supports full 64 bit device address spaces.
So this check is not longer required.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index ebc1c8443926cf31d346475ff339f03f42a096aa..6ffb3e63765716494a92c4370a7b2fe55d505d9d 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-530,8
+530,7
@@
static int iommu_map_page(struct protection_domain *dom,
bus_addr = PAGE_ALIGN(bus_addr);
phys_addr = PAGE_ALIGN(phys_addr);
- /* only support 512GB address spaces for now */
- if (bus_addr > IOMMU_MAP_SIZE_L3 || !(prot & IOMMU_PROT_MASK))
+ if (!(prot & IOMMU_PROT_MASK))
return -EINVAL;
pte = alloc_pte(dom, bus_addr, NULL, GFP_KERNEL);