Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
cd8b53ed |
| 09-Apr-2004 |
Warner Losh <imp@FreeBSD.org> |
Omnibus PCI commit: o Save and restore bars for suspend/resume as well as for D3->D0 transitions. o preallocate resources that the PCI devices use to avoid resource conflicts o lazy allocati
Omnibus PCI commit: o Save and restore bars for suspend/resume as well as for D3->D0 transitions. o preallocate resources that the PCI devices use to avoid resource conflicts o lazy allocation of resources not allocated by the BIOS. o set unattached drivers to state D3. Set power state to D0 before probe/attach. Right now there's two special cases for this (display and memory devices) that need work in other areas of the tree.
Please report any bugs to me.
show more ...
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
70be3980 |
| 17-Jan-2004 |
Warner Losh <imp@FreeBSD.org> |
It appears that the changes in the resources allocated is causing much pain and suffering. Attempt to back it out by removing the 'if the requested range is larger than the window, clip to the windo
It appears that the changes in the resources allocated is causing much pain and suffering. Attempt to back it out by removing the 'if the requested range is larger than the window, clip to the window' code. This is a band-aide until the issues are better understood and the issues with the lazy allocation patches are resolved.
show more ...
|
#
e4b59fc5 |
| 11-Jan-2004 |
Warner Losh <imp@FreeBSD.org> |
Add support for subtractive decoding bridges. These bridges pass all signals to addresses to the child busses. Typically, ProgIf of 1 means a subtractive bridge. However, Intel has a whole lot of
Add support for subtractive decoding bridges. These bridges pass all signals to addresses to the child busses. Typically, ProgIf of 1 means a subtractive bridge. However, Intel has a whole lot of ones with a ProgIf of 80 that are also subtractive. We cope with these bridges too. This eliminates hw.pci.allow_unsupported_io_range because that had almost the same effect as these patches (almost means 'buggy'). Remove the bogus checks for ISA bus locations: these cycles aren't special and are only passed by transparent bridges.
We allow any range to succeed. If the range is a superset of the range that's decoded, trim the resource to that range. Otherwise, pass the range unchanged. This will change the location that PC Card and CardBus cards are attached. This might bogusly cause some overlapping allocation that wasn't present before, but the overlapping fixes need to be in the pci level.
There's also a few formatting changes here.
show more ...
|
Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
#
184dcdc7 |
| 21-Oct-2003 |
Mike Silbersack <silby@FreeBSD.org> |
Change all SYSCTLS which are readonly and have a related TUNABLE from CTLFLAG_RD to CTLFLAG_RDTUN so that sysctl(8) can provide more useful error messages.
|
#
aad970f1 |
| 24-Aug-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Use __FBSDID(). Also some minor style cleanups.
|
#
38d8c994 |
| 22-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Prefer new location of pci include files (which have only been in the tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
|
#
b0cb115f |
| 22-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Prefer the uintXX_t to the u_intXX_t names.
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
cdc95e1b |
| 22-May-2003 |
Bernd Walter <ticso@FreeBSD.org> |
Calculate routed interrupts using the slot number from the device and not that of the bridge.
Approved by: re (jhb)
|
Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
#
2c2d1d07 |
| 14-Jan-2003 |
Benno Rice <benno@FreeBSD.org> |
Make the base pcib_route_interrupt method available to other pci-pci bridge sub-classes.
This allows the powerpc kernel to build again.
Forgotten by: benno Spotted by: grehan
|
#
a8b354a8 |
| 03-Dec-2002 |
Warner Losh <imp@FreeBSD.org> |
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 chec
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)
show more ...
|
#
1bbf2464 |
| 25-Nov-2002 |
John Baldwin <jhb@FreeBSD.org> |
Fix a couple of bugs in host_pcib_get_busno(): - If a PCI device is not present, then a 32-bit read_config() is going to return 0xffffffff not 0xffff. - For the 82454NX chipset, the MIOC that we re
Fix a couple of bugs in host_pcib_get_busno(): - If a PCI device is not present, then a 32-bit read_config() is going to return 0xffffffff not 0xffff. - For the 82454NX chipset, the MIOC that we read the bus numbers of the various host-PCI bridges from is at function (slot) 0x10 not 0x0.
Approved by: re (rwatson)
show more ...
|
#
b173edaf |
| 22-Nov-2002 |
John Baldwin <jhb@FreeBSD.org> |
Add a function host_pcib_get_bnsno() that attempts to determine the bus number of the child bus of a host to PCI bridge by reading from proprietary configuration registers in the host to PCI bridge d
Add a function host_pcib_get_bnsno() that attempts to determine the bus number of the child bus of a host to PCI bridge by reading from proprietary configuration registers in the host to PCI bridge devices.
Approved by: re
show more ...
|
#
d541eb80 |
| 13-Nov-2002 |
Maxime Henrion <mux@FreeBSD.org> |
Unbreak kernel build.
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>
|
#
1c54ff33 |
| 13-Nov-2002 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Convert kernel compile option PCI_ALLOW_UNSUPPORTED_IO_RANGE to a loader tunable hw.pci.allow_unsupported_io_range.
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com> Approved by: re (mur
Convert kernel compile option PCI_ALLOW_UNSUPPORTED_IO_RANGE to a loader tunable hw.pci.allow_unsupported_io_range.
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com> Approved by: re (murray)
show more ...
|
Revision tags: release/4.7.0_cvs |
|
#
38906aed |
| 07-Sep-2002 |
John Baldwin <jhb@FreeBSD.org> |
Export pcib_attach() as a "protected" for use in subclasses of the PCI-PCI bridge driver.
|
#
cea0a895 |
| 06-Sep-2002 |
John Baldwin <jhb@FreeBSD.org> |
Prefer the physical bus number of the PCI bus as the unit of the pciX device created.
|
#
c6a121ab |
| 05-Sep-2002 |
John Baldwin <jhb@FreeBSD.org> |
Make the printf messages when routing interrupts more consistent in the various PCI bridge drivers.
|
#
6f0d5884 |
| 26-Aug-2002 |
John Baldwin <jhb@FreeBSD.org> |
Export a few symbols as globals to allow subclassing of this driver. In OOP speak, you would mark these as 'protected' members. Specifically: - Make the pcib_softc struct public so it can be used b
Export a few symbols as globals to allow subclassing of this driver. In OOP speak, you would mark these as 'protected' members. Specifically: - Make the pcib_softc struct public so it can be used by subclasses. - Make pcib_{read,write}_ivar(), pcib_alloc_resource(), pcib_maxslots(), and pcib_{read,write}_config() globals that can be used by subclasses. - Make the pcib devclass a global variable. - Move most of the pcib_attach() function into a global pcib_attach_common() function that can be called by the attach routines of subclasses.
Tested on: i386, alpha, sparc64, ia64
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
8961964d |
| 13-Apr-2002 |
Warner Losh <imp@FreeBSD.org> |
Fix an edge case wrt membase, but more changes needed
|
#
1efefb2d |
| 26-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
Fix warnings introduced in the PCI_ALLOW_UNSUPPORTED_IO_RANGE case.
|
#
6e47a4f6 |
| 22-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Allow PCI_ALLOW_UNSUPPORTED_IO_RANGE to leave broken setups broken enough to work.
|
#
12b8c86e |
| 19-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
Put the stard/end adjustments back. They are needed. Also make start == 0 a special case. I hope this fixes the real problem that phk and others were seeing.
|
#
8046c4b9 |
| 12-Feb-2002 |
Mike Smith <msmith@FreeBSD.org> |
Don't claim to have routed an interrupt when the method actually returned an error.
|
#
34428485 |
| 09-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
Make unsupported memory range message bootverbose only
|
#
d0036d6e |
| 08-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
Remove bogus range restrictions that attempted to restrict the range of I/O in 1.5. It looks like I got it right only for some of the cases. Instead, allow ISA addresses as a special case. Most PC
Remove bogus range restrictions that attempted to restrict the range of I/O in 1.5. It looks like I got it right only for some of the cases. Instead, allow ISA addresses as a special case. Most PCI bridges decode this range. I need to investigate PCI bridges better to know if this is always true or not, but for now assume that it is since that seems to be the most common case.
# We need to allocate addresses better for the pccard stuff...
Submitted by: phk, mitsunaga-san
show more ...
|