linux/arch
Arjan van de Ven e8de1481fd resource: allow MMIO exclusivity for device drivers
Device drivers that use pci_request_regions() (and similar APIs) have a
reasonable expectation that they are the only ones accessing their device.
As part of the e1000e hunt, we were afraid that some userland (X or some
bootsplash stuff) was mapping the MMIO region that the driver thought it
had exclusively via /dev/mem or via various sysfs resource mappings.

This patch adds the option for device drivers to cause their reserved
regions to the "banned from /dev/mem use" list, so now both kernel memory
and device-exclusive MMIO regions are banned.
NOTE: This is only active when CONFIG_STRICT_DEVMEM is set.

In addition to the config option, a kernel parameter iomem=relaxed is
provided for the cases where developers want to diagnose, in the field,
drivers issues from userspace.

Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-01-07 11:12:32 -08:00
..
alpha alpha: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
arm arm: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
avr32 avr32: introduce asm/swab.h 2009-01-06 18:10:26 -08:00
blackfin blackfin: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
cris Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 2009-01-06 17:04:29 -08:00
frv take init_fs to saner place 2008-12-31 18:07:42 -05:00
h8300 h8300: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
ia64 ia64: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
m32r Merge branch 'cpus4096-for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2009-01-03 12:04:39 -08:00
m68k m68k: fix recursive dependency in Kconfig 2009-01-02 20:43:20 +01:00
m68knommu m68knommu: introduce asm/swab.h 2009-01-06 18:10:28 -08:00
mips mips: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
mn10300 take init_fs to saner place 2008-12-31 18:07:42 -05:00
parisc atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
powerpc powerpc: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
s390 s390: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
sh sh: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
sparc sparc: introduce asm/swab.h 2009-01-06 18:10:27 -08:00
um mm: invoke oom-killer from page fault 2009-01-06 15:58:58 -08:00
x86 resource: allow MMIO exclusivity for device drivers 2009-01-07 11:12:32 -08:00
xtensa take init_fs to saner place 2008-12-31 18:07:42 -05:00
.gitignore
Kconfig oprofile: select RING_BUFFER 2008-12-12 09:46:31 +01:00