intel-iommu: Mask physical address to correct page size in intel_map_single()
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 4 Aug 2009 22:10:59 +0000 (15:10 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 5 Aug 2009 08:15:48 +0000 (09:15 +0100)
commit33041ec049d39a6e0463c7edc7b6f631d24559e3
tree319c613d743f4beae0b00603266f261d6f1dbbae
parentf532959b77e5e567c84c914cb7c7b07d2582448b
intel-iommu: Mask physical address to correct page size in intel_map_single()

The physical address passed to domain_pfn_mapping() should be rounded
down to the start of the MM page, not the VT-d page.

This issue causes kernel panic on PAGE_SIZE>VTD_PAGE_SIZE platforms e.g. ia64
platforms.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c