intel-iommu: Detect DMAR in hyperspace at probe time.
commit518cdfa0f604c285cdb71e1f2e2e14773f80bb01
authorChris Wright <chrisw@sous-sol.org>
Wed, 2 Dec 2009 09:17:13 +0000 (2 09:17 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:53 +0000 (18 14:05 -0800)
treee9063436c2d9df8c669328357349372a3b9793d8
parent3a03456dc34ff703e5b7c718b78713577f832116
intel-iommu: Detect DMAR in hyperspace at probe time.

commit 2c99220810c1c79322034628b993573b088ff2da upstream.

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.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/dmar.c