linux/arch/ia64
Bjorn Helgaas 6d40fc514c [IA64] fail mmaps that span areas with incompatible attributes
Example memory map (from HP sx1000 with VGA enabled):
    0x00000 - 0x9FFFF supports only WB (cacheable) access
    0xA0000 - 0xBFFFF supports only UC (uncacheable) access
    0xC0000 - 0xFFFFF supports only WB (cacheable) access

Some versions of X map the entire 0x00000-0xFFFFF area at once.  With the
example above, this mmap must fail because there's no memory attribute that's
safe for the entire area.

Prior to this patch, we performed the mmap with a UC mapping.  When X
accessed the WB memory at 0xC0000, it caused an MCA.  The crash can happen
when mapping 0xC0000 from either /dev/mem or a /sys/.../legacy_mem file.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2007-03-30 09:38:25 -07:00
..
configs [IA64] refresh config files 2007-03-08 11:20:17 -08:00
dig [PATCH] tty: Remove include of screen_info.h from tty.h 2006-07-10 13:24:16 -07:00
hp [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
ia32 [IA64] sync compat getdents 2007-03-06 14:49:24 -08:00
kernel [IA64] fail mmaps that span areas with incompatible attributes 2007-03-30 09:38:25 -07:00
lib [IA64] always build arch/ia64/lib/xor.o 2007-03-06 14:48:52 -08:00
mm [IA64] make ioremap avoid unsupported attributes 2007-03-30 09:37:41 -07:00
oprofile Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pci [IA64] allow WB /sys/.../legacy_mem mmaps 2007-03-30 09:38:03 -07:00
scripts
sn [IA64] Fix wrong /proc/iomem on SGI Altix 2007-03-20 13:54:44 -07:00
defconfig [IA64] refresh config files 2007-03-08 11:20:17 -08:00
install.sh
Kconfig ACPI: IA64: fix allnoconfig build 2007-03-19 23:41:51 -04:00
Kconfig.debug
Makefile [IA64] add vmlinuz target 2006-06-21 14:31:07 -07:00
module.lds