Commit bad1cac2 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

x86/amd-iommu: Remove bus_addr check in iommu_map_page



The driver now supports full 64 bit device address spaces.
So this check is not longer required.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 8c8c143c
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -530,8 +530,7 @@ static int iommu_map_page(struct protection_domain *dom,
	bus_addr  = PAGE_ALIGN(bus_addr);
	bus_addr  = PAGE_ALIGN(bus_addr);
	phys_addr = PAGE_ALIGN(phys_addr);
	phys_addr = PAGE_ALIGN(phys_addr);


	/* only support 512GB address spaces for now */
	if (!(prot & IOMMU_PROT_MASK))
	if (bus_addr > IOMMU_MAP_SIZE_L3 || !(prot & IOMMU_PROT_MASK))
		return -EINVAL;
		return -EINVAL;


	pte = alloc_pte(dom, bus_addr, NULL, GFP_KERNEL);
	pte = alloc_pte(dom, bus_addr, NULL, GFP_KERNEL);