]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't enable I/O or memory mode in a device's command register if the BAR
authorjhb <jhb@FreeBSD.org>
Tue, 31 May 2005 21:33:33 +0000 (21:33 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 31 May 2005 21:33:33 +0000 (21:33 +0000)
commit4ad02adaf3aaad97846de8dba319a9710527ecce
tree705b27c39a4881840686161eb163591eb7f62319
parent6a4866066626185a9fb27454a1a4f675a8a71fca
Don't enable I/O or memory mode in a device's command register if the BAR
we are processing has a base address of zero.  Note that this will only
change behavior for devices where all the BARs of a given type have a base
address of 0 since we will enable the appropriate access when we encounter
the first BAR with a base that is not 0.  Specifically, this allows certain
Toshiba laptops to no longer require 'hw.pci.enable_io_modes=0' to avoid
hangs during boot.

PR: kern/20040
PR: i386/63776 (possibly)
PR: i386/68900 (possibly)
PR: i386/74532 (possibly)
MFC after: 1 week
sys/dev/pci/pci.c