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

Commit 28d6ee41 authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar
Browse files

x86: switch pci-gart over to using set_memory_np() instead of clear_kernel_mapping()



pci-gart needs to unmap the IOMMU aperture to prevent cache corruptions.

Switch this over to using set_memory_np() instead of clear_kernel_mapping().

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 64f351d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -731,7 +731,8 @@ void __init gart_iommu_init(void)
	 * the backing memory. The GART address is only used by PCI
	 * devices.
	 */
	clear_kernel_mapping((unsigned long)__va(iommu_bus_base), iommu_size);
	set_memory_np((unsigned long)__va(iommu_bus_base),
				iommu_size >> PAGE_SHIFT);

	/*
	 * Try to workaround a bug (thanks to BenH)