]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly account for prefetchable memory when a request is being made.
authorWarner Losh <imp@FreeBSD.org>
Tue, 3 Dec 2002 08:34:20 +0000 (08:34 +0000)
committerWarner Losh <imp@FreeBSD.org>
Tue, 3 Dec 2002 08:34:20 +0000 (08:34 +0000)
commita8b354a8091ce75edbe1686ea28b82aaf7ae5896
tree1dea01a64d68833a042698899963b3a80bc91cb8
parent7cdfce092a396d008843dce3402951ab466843f4
Properly account for prefetchable memory when a request is being made.
We allow the request to go through if it matches either a prefetchable
or a non-prefetchable part of the bridge.  We do not check to make
sure it is the right kind of memory because most drivers to not yet
properly set RF_PREFETCHABLE (only cardbus seems to do so, and I'm not
entirely sure it does it right).  RF_PREFETCHABLE was invented for
cardbus, so hasn't been properly documented yet.

This is still overridable by hw.pci.allow_unsupported_io_ranges, but
the need for that is greatly reduced, especially for the nvida driver.

Approved by: re
Reviewed by: jhb and many testers
Submitted by: Matt Emmerton (although this has been reworked somewhat)
sys/dev/pci/pci_pci.c