intel-iommu: Detect DMAR in hyperspace at probe time.
authorChris Wright <chrisw@sous-sol.org>
Wed, 2 Dec 2009 09:17:13 +0000 (09:17 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 8 Dec 2009 10:02:15 +0000 (10:02 +0000)
commit2c99220810c1c79322034628b993573b088ff2da
tree0b5e69d0ad7a6da667b752ffd727781c875cccff
parentec208491936d6adb8a70c3dd4a517cdfe54e823d
intel-iommu: Detect DMAR in hyperspace at probe time.

Many BIOSes will lie to us about the existence of an IOMMU, and claim
that there is one at an address which actually returns all 0xFF.

We need to detect this early, so that we know we don't have a viable
IOMMU and can set up swiotlb before it's too late.

Cc: stable@kernel.org
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c