Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

AMD IOMMU: fix iommu_map_page function



Impact: bugfix in iommu_map_page function

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 218d11a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -344,7 +344,7 @@ static int iommu_map(struct protection_domain *dom,
	u64 __pte, *pte, *page;
	u64 __pte, *pte, *page;


	bus_addr  = PAGE_ALIGN(bus_addr);
	bus_addr  = PAGE_ALIGN(bus_addr);
	phys_addr = PAGE_ALIGN(bus_addr);
	phys_addr = PAGE_ALIGN(phys_addr);


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