android_kernel_xiaomi_sm8350/drivers/net
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
..
appletalk
arcnet drivers/net/arcnet: fix sparse warnings: make symbols static 2008-12-25 23:57:21 -08:00
arm net: KS8695: removed duplicated #include 2008-12-29 18:30:05 -08:00
atl1e net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
atlx drivers/net/atlx: fix sparse warnings: make symbols static 2008-12-25 23:58:35 -08:00
bonding 802.3ad: use standard ethhdr instead of ad_header 2008-12-26 13:41:53 -08:00
can vcan: whitespace fixes 2008-12-17 15:37:55 -08:00
chelsio net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
cris
cxgb3 cxgb3: add control to access embedded images 2008-12-26 01:16:39 -08:00
e1000 net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
e1000e resource: allow MMIO exclusivity for device drivers 2009-01-07 11:12:32 -08:00
ehea net/ehea: bitops work on unsigned longs 2009-01-05 16:06:02 -08:00
enic drivers/net/enic: fix sparse warning: make symbol static 2008-12-26 00:01:18 -08:00
fs_enet net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
hamradio drivers/net/hamradio: Move a dereference below a NULL test 2008-12-16 15:43:29 -08:00
ibm_newemac
igb igb: fix anoying type mismatch warning on rx/tx queue sizing 2009-01-05 18:47:12 -08:00
irda Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
ixgb net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
ixgbe ixgbe: Fix set_ringparam in ixgbe to use the same memory pools. 2008-12-26 01:36:33 -08:00
ixp2000 net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
mlx4 mlx4_en: Added "set_ringparam" Ethtool interface implementation 2008-12-29 18:39:20 -08:00
myri10ge myri10ge: print MAC and serial number on probe failure 2009-01-05 18:16:14 -08:00
netxen drivers/net/netxen: fix sparse warnings: use NULL pointer instead of plain integer 2008-12-26 00:04:26 -08:00
pcmcia
phy net: PHYLIB mdio fixes #2 2008-12-25 16:50:41 -08:00
qlge qlge: Fix sparse warnings for tx ring indexes. 2009-01-05 18:19:59 -08:00
sfc net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
skfp drivers/net/skfp: fix sparse warnings: make symbols static 2008-12-26 00:06:28 -08:00
tokenring net: Allow dependancies of FDDI & Tokenring to be modular. 2008-12-27 20:43:48 -08:00
tulip drivers/net/tulip: fix sparse warnings: make do-while a compound statement 2008-12-26 00:07:45 -08:00
usb hso maintainers update patch 2009-01-02 10:19:43 -08:00
wan net: Fix more NAPI interface netdev argument drop fallout. 2008-12-29 18:18:24 -08:00
wireless drivers/net/usb: use USB API functions rather than constants 2008-12-29 19:40:47 -08:00
3c59x.c
3c501.c
3c501.h
3c503.c
3c503.h
3c505.c
3c505.h
3c507.c
3c509.c
3c515.c
3c523.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
3c523.h
3c527.c
3c527.h
7990.c
7990.h
8139cp.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
8139too.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
8390.c 8390/8390p: Fix compat netdev ops handling. 2008-12-15 15:14:59 -08:00
8390.h
8390p.c 8390/8390p: Fix compat netdev ops handling. 2008-12-15 15:14:59 -08:00
82596.c
a2065.c
a2065.h
ac3200.c
acenic_firmware.h
acenic.c firmware: convert acenic driver to request_firmware() 2009-01-04 16:10:02 -08:00
acenic.h firmware: convert acenic driver to request_firmware() 2009-01-04 16:10:02 -08:00
amd8111e.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
amd8111e.h
apne.c
ariadne.c
ariadne.h
at1700.c
atarilance.c
atp.c drivers/net: fix sparse warnings: make do-while a compound statement 2008-12-25 23:55:35 -08:00
atp.h
au1000_eth.c drivers/net/au1000_eth.c: Remove redundant test 2008-12-25 18:02:49 -08:00
au1000_eth.h
ax88796.c
b44.c net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
b44.h
bfin_mac.c
bfin_mac.h
bmac.c
bmac.h
bnx2_fw2.h
bnx2_fw.h
bnx2.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-12-23 17:56:23 -08:00
bnx2.h bnx2: Don't redefine FLOW_CTRL_{RX,TX}. 2008-12-16 23:54:23 -08:00
bnx2x_fw_defs.h
bnx2x_hsi.h
bnx2x_init_values.h
bnx2x_init.h
bnx2x_link.c bnx2x: Fix namespace collision with FLOW_CTRL_{TX,RX} 2008-12-16 23:54:24 -08:00
bnx2x_link.h bnx2x: Fix namespace collision with FLOW_CTRL_{TX,RX} 2008-12-16 23:54:24 -08:00
bnx2x_main.c net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
bnx2x_reg.h
bnx2x.h
bsd_comp.c
cassini.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
cassini.h
cpmac.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
cs89x0.c Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
cs89x0.h
de600.c
de600.h
de620.c
de620.h
declance.c
defxx.c
defxx.h
depca.c
depca.h
dl2k.c
dl2k.h
dm9000.c
dm9000.h
dummy.c
e100.c e100: cosmetic cleanup 2009-01-04 17:12:04 -08:00
e2100.c
eepro.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
eexpress.c
eexpress.h EtherExpress16: fix printing timed out status 2008-12-29 18:42:33 -08:00
enc28j60_hw.h
enc28j60.c enc28j60: fix RX buffer overflow 2009-01-04 16:23:01 -08:00
epic100.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
eql.c
es3210.c
eth16i.c
ewrk3.c
ewrk3.h
fealnx.c
fec_mpc52xx_phy.c powerpc/mpc5200: Remove obsolete code from mpc5200 MDIO driver 2008-12-21 02:54:30 -07:00
fec_mpc52xx.c
fec_mpc52xx.h
fec.c
fec.h
forcedeth.c forcedeth: don't poll NV event 36 2008-12-25 18:07:50 -08:00
gianfar_ethtool.c gianfar: Add Scatter Gather support 2008-12-17 16:51:04 -08:00
gianfar_mii.c gianfar: Convert gianfar to an of_platform_driver 2008-12-16 15:29:15 -08:00
gianfar_mii.h gianfar: Convert gianfar to an of_platform_driver 2008-12-16 15:29:15 -08:00
gianfar_sysfs.c
gianfar.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
gianfar.h gianfar: Merge Tx and Rx interrupt for scheduling clean up ring 2008-12-17 16:52:00 -08:00
hamachi.c
hp100.c hp100: use roundup instead of open coding 2008-12-16 01:14:21 -08:00
hp100.h
hp-plus.c
hp.c
hplance.c
hplance.h
hydra.c
ibmlana.c
ibmlana.h
ibmveth.c net: ehea NAPI interface cleanup fix 2008-12-28 16:32:38 -08:00
ibmveth.h
ifb.c
ioc3-eth.c
ipg.c
ipg.h
isa-skeleton.c
iseries_veth.c
jazzsonic.c
jme.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
jme.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-12-23 17:56:23 -08:00
Kconfig [SCSI] cxgb3i: fix select/depend problem 2008-12-30 13:09:12 -06:00
korina.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
lance.c
lasi_82596.c
lib8390.c 8390/8390p: Fix compat netdev ops handling. 2008-12-15 15:14:59 -08:00
lib82596.c
LICENSE.SRC
lne390.c
loopback.c
lp486e.c
mac89x0.c
mac8390.c
macb.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
macb.h
mace.c
mace.h
macmace.c
macsonic.c
macvlan.c
Makefile
meth.c
meth.h
mii.c
mipsnet.c
mv643xx_eth.c
mvme147.c
myri_code.h
myri_sbus.c
myri_sbus.h
natsemi.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
ne2.c
ne2k-pci.c
ne3210.c
ne-h8300.c
ne.c drivers/net: fix sparse warning: use ANSI-style function declaration 2008-12-25 23:52:57 -08:00
netconsole.c
netx-eth.c
ni52.c
ni52.h
ni65.c
ni65.h
ni5010.c
ni5010.h
niu.c drivers/net: fix sparse warning: returning void-valued expression 2008-12-25 23:56:04 -08:00
niu.h
ns83820.c
pasemi_mac_ethtool.c
pasemi_mac.c net: Fix unused variable warnings in pasemi_mac.c and spider_net.c 2008-12-28 20:15:38 -08:00
pasemi_mac.h
pci-skeleton.c
pcnet32.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
plip.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
ppp_async.c drivers/net: Remove redundant test 2008-12-25 18:03:28 -08:00
ppp_deflate.c
ppp_generic.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-12-23 17:56:23 -08:00
ppp_mppe.c
ppp_mppe.h
ppp_synctty.c drivers/net: Remove redundant test 2008-12-25 18:03:28 -08:00
pppoe.c
pppol2tp.c l2tp: fix UDP checksum support 2008-12-16 01:23:49 -08:00
pppox.c
ps3_gelic_net.c
ps3_gelic_net.h
ps3_gelic_wireless.c
ps3_gelic_wireless.h
qla3xxx.c net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
qla3xxx.h
r6040.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
r8169.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
rionet.c
rrunner.c
rrunner.h
s2io-regs.h
s2io.c net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
s2io.h
sb1000.c
sb1250-mac.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
sc92031.c
seeq8005.c
seeq8005.h
sgiseeq.c
sgiseeq.h
sh_eth.c
sh_eth.h
sis190.c
sis900.c
sis900.h
skge.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
skge.h
sky2.c
sky2.h
slhc.c
slip.c
slip.h
smc91x.c
smc91x.h Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-12-30 17:36:49 -08:00
smc911x.c
smc911x.h
smc9194.c drivers/net: fix sparse warnings: make symbols static 2008-12-25 23:56:45 -08:00
smc9194.h
smc-mca.c
smc-ultra32.c
smc-ultra.c
smsc911x.c smsc911x: compile fix re netif_rx signature changes 2008-12-29 18:22:43 -08:00
smsc911x.h net: Move flow control definitions to mii.h 2008-12-16 02:00:00 -08:00
smsc9420.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
smsc9420.h net: Move flow control definitions to mii.h 2008-12-16 02:00:00 -08:00
sni_82596.c
sonic.c
sonic.h
Space.c
spider_net_ethtool.c
spider_net.c net: Fix unused variable warnings in pasemi_mac.c and spider_net.c 2008-12-28 20:15:38 -08:00
spider_net.h
starfire.c starfire: use request_firmware() 2009-01-04 16:12:11 -08:00
stnic.c
sun3_82586.c
sun3_82586.h
sun3lance.c
sunbmac.c
sunbmac.h
sundance.c
sungem_phy.c
sungem_phy.h
sungem.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
sungem.h
sunhme.c
sunhme.h
sunlance.c
sunqe.c
sunqe.h
sunvnet.c
sunvnet.h
tc35815.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
tehuti_fw.h
tehuti.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
tehuti.h
tg3.c firmware: convert tg3 driver to request_firmware() 2009-01-04 16:11:25 -08:00
tg3.h firmware: convert tg3 driver to request_firmware() 2009-01-04 16:11:25 -08:00
tlan.c tlan: Remove broken support for big buffers 2008-12-16 15:24:05 -08:00
tlan.h
tsi108_eth.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
tsi108_eth.h
tun.c tun: Eliminate sparse signedness warning 2009-01-04 17:14:46 -08:00
typhoon-firmware.h
typhoon.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
typhoon.h
ucc_geth_ethtool.c
ucc_geth_mii.c
ucc_geth_mii.h
ucc_geth.c ucc_geth: Eliminate the need for forward references 2008-12-26 01:28:43 -08:00
ucc_geth.h ucc_geth: Fix TX watchdog timeout handling 2008-12-18 22:48:55 -08:00
veth.c
via-rhine.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
via-velocity.c
via-velocity.h
virtio_net.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
wd.c
xen-netfront.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
xtsonic.c
yellowfin.c
znet.c
zorro8390.c