IOMMU Fix for Linux v5.1-rc5

	- Fix an AMD IOMMU issue where the driver didn't correctly setup the
	  exclusion range in the hardware registers, resulting in exclusion
	  ranges being one page too big. This can cause data corruption of the
	  address of that last page is used by DMA operations.
iommu/amd: Set exclusion range correctly

The exlcusion range limit register needs to contain the
base-address of the last page that is part of the range, as
bits 0-11 of this register are treated as 0xfff by the
hardware for comparisons.

So correctly set the exclusion range in the hardware to the
last page which is _in_ the range.

Fixes: b2026aa2dce44 ('x86, AMD IOMMU: add functions for programming IOMMU MMIO space')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 file changed