intel-iommu: Check for an RMRR which ends before it starts.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 2 Dec 2009 09:21:55 +0000 (09:21 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 8 Dec 2009 10:02:52 +0000 (10:02 +0000)
commit5595b528b49a702c0428c0762bab60999648254c
treeaa6c04a00e90eb7ac91e24aa295fc2022de4161d
parent6ecbf01c7ce4c0f4c3bdfa0e64ac6258328fda6c
intel-iommu: Check for an RMRR which ends before it starts.

Some HP BIOSes report an RMRR region (a region which needs a 1:1 mapping
in the IOMMU for a given device) which has an end address lower than its
start address. Detect that and warn, rather than triggering the
BUG() in dma_pte_clear_range().

Cc: stable@kernel.org
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c