x86/PCI: make sure _PAGE_IOMAP it set on pci mappings
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 18 Mar 2010 18:31:30 +0000 (14:31 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:49:31 +0000 (10:49 -0400)
commit5ee01f49c963d5e0b530344f86535ecb7f672064
tree6183f34dece7278fe0927f4d516f100bf54ecb0a
parent44de3395a4bb61341dfb7b3b7c94edfddeabae4b
x86/PCI: make sure _PAGE_IOMAP it set on pci mappings

When mapping pci space via /sys or /proc, make sure we're really
doing a hardware mapping by setting _PAGE_IOMAP.

[ Impact: bugfix; make PCI mappings map the right pages ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: "H. Peter Anvin" <hpa@zytor.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: x86@kernel.org
arch/x86/pci/i386.c