Revision tags: release/6.1.0_cvs, release/6.1.0 |
|
#
ebcd5293 |
| 17-Apr-2006 |
Warner Losh <imp@FreeBSD.org> |
Add missing ~. We want all the INVALID bits to be 0... Let's see if this helps people with their interrupt storm problem on card eject.
|
#
a49ed2a6 |
| 30-Mar-2006 |
Warner Losh <imp@FreeBSD.org> |
On some laptops, under very high loads, the socket event register read in the ISR doesn't read the actual socket event register, but instead reads garbage (usually 0xffffffff, but other times other t
On some laptops, under very high loads, the socket event register read in the ISR doesn't read the actual socket event register, but instead reads garbage (usually 0xffffffff, but other times other things). This totally violates the PCI spec, but happens rarely enough that a workaround is in order. This adds one test when we have a real interrupt to service (which is very rare), and doesn't affect the usualy 'nothing to see here' case at all.
Problem reported by many, but sam@ gave me this workaround after diagnosing the problem.
show more ...
|
#
1ab7d4c9 |
| 24-Mar-2006 |
Warner Losh <imp@FreeBSD.org> |
For each of the voltages that a card might support, make sure that the socket also supports the voltage. Some XV cards have appeared on the scene (or cards that report they support XV), and in older
For each of the voltages that a card might support, make sure that the socket also supports the voltage. Some XV cards have appeared on the scene (or cards that report they support XV), and in older machines that have sockets that do not support XV, we were bogusly trying to power them at XV rather than at 3.3V. Now, power up the card at the lowest voltage supported by both the card and the socket.
MFC After: 3 days
show more ...
|
#
22293c3a |
| 07-Feb-2006 |
Warner Losh <imp@FreeBSD.org> |
Detach the children before we delete them. This is a little cleaner than just deleting them. Also add comments about why we do this. Given the current behavior of delete_child, I don't think this c
Detach the children before we delete them. This is a little cleaner than just deleting them. Also add comments about why we do this. Given the current behavior of delete_child, I don't think this changes anything. It just feels cleaner.
show more ...
|
#
44dc92eb |
| 04-Feb-2006 |
Warner Losh <imp@FreeBSD.org> |
Now that TUNABLE_ULONG is in the tree, and has been for a while, use it. This also avoids typepunning.
|
#
ef8984f5 |
| 31-Dec-2005 |
Warner Losh <imp@FreeBSD.org> |
Remove extra debugging that crept in with the integration from p4.
|
#
3ac60487 |
| 30-Dec-2005 |
Warner Losh <imp@FreeBSD.org> |
Simplify the opening of the resources for cardbus cards. Before we'd try very hard to be perfect. However, these attempts broke down when there were large numbers of resources. We'd not be able to
Simplify the opening of the resources for cardbus cards. Before we'd try very hard to be perfect. However, these attempts broke down when there were large numbers of resources. We'd not be able to map them all.
Instead, accept that we might pass more range to thse subbus than might be optimal be able to compute. However, there's little harm in this and it allows us to pass greater resources through.
# it has been suggested that we allocate a fixed amount of resources # on attach and give it out upon request. This might not be a bad idea...
show more ...
|
#
0e6e3c13 |
| 27-Dec-2005 |
Warner Losh <imp@FreeBSD.org> |
Ensure that we're aligned at leas tto the size of the resource being requested. When cbb_debug is on, print the windows that we're mapping.
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
ba61c672 |
| 29-Oct-2005 |
Warner Losh <imp@FreeBSD.org> |
Shutdown a little better by commenting the shutdown code and acknowledging any interrupts after we turn off the interrupt mask.
|
#
d9a423c3 |
| 29-Oct-2005 |
Warner Losh <imp@FreeBSD.org> |
Shut down the card bus bridge hardware on detach. Before we'd just free the resoruces w/o actually turning off the interrupts. This lead to interrupt storms if you were to insert a card after kldun
Shut down the card bus bridge hardware on detach. Before we'd just free the resoruces w/o actually turning off the interrupts. This lead to interrupt storms if you were to insert a card after kldunloading the driver.
show more ...
|
#
f481fa4d |
| 08-Oct-2005 |
Warner Losh <imp@FreeBSD.org> |
MFP4: Changes to hopefully make the new power code work better
o Rather than just try to turn off EXCA_INTR_RESET, set the entire register to 0. This is slightly faster, and a better hammer. o Mo
MFP4: Changes to hopefully make the new power code work better
o Rather than just try to turn off EXCA_INTR_RESET, set the entire register to 0. This is slightly faster, and a better hammer. o Move attempted clearing of the output enable (EXCA_PWRCTL_OE) back to after we turn off the power. Modify it to write 0 so that we don't get Bad Vcc messages on TI bridges (untested, but ru@ sent me a similar patch) while at the same time avoiding interrupt storms on Ricoh bridges (tested by me on my Sony).
# Many of my observations of 'breakage' for this patch are due to some bug # in the load/unload of cbb.ko unlreated to this change. I'll be investigating # and fixing that bug in the fullness of time.
show more ...
|
#
f1abc0ea |
| 08-Oct-2005 |
Warner Losh <imp@FreeBSD.org> |
MFP4: We no longer use intr_handlers, so remove it.
|
#
ed448ee4 |
| 08-Oct-2005 |
Warner Losh <imp@FreeBSD.org> |
MFP4: Note why we do the dance we do for waiting for the thread to die.
|
#
c82f53f6 |
| 22-Sep-2005 |
Warner Losh <imp@FreeBSD.org> |
'PC Card' instead of other variants
|
#
5c4f7048 |
| 12-Sep-2005 |
Warner Losh <imp@FreeBSD.org> |
This appears to be good for some folks, but really bad for others. Until we know why, back out 1.127.
|
#
8fe5efa8 |
| 08-Sep-2005 |
Warner Losh <imp@FreeBSD.org> |
Minor improvement for the suspend case for Ricoh based (and others) CardBus bridges.
|
#
b32757b4 |
| 17-Jul-2005 |
Warner Losh <imp@FreeBSD.org> |
o The ricoh bridge needs us to turn off the function interrupts for 16-bit cards when we're powering them up. Other bridges may have similar issues, so we do this for all of them by setting the
o The ricoh bridge needs us to turn off the function interrupts for 16-bit cards when we're powering them up. Other bridges may have similar issues, so we do this for all of them by setting the interrupt in the PCIC register 3 to be 0 (done always anyway) and turning on the bit in the bridge control register to route these interrupts via the ISA bus (or via the interrupt configured in the PCIC register 3). '0' means disable completely. There's a small chance this may interfere with the o2micro power hacks, but I'll wait for reports to come in from o2micro users. o Expand some of the comments about why we do certain things.
# this gets rid of the interrupt storm warnings on my 505TS. I think # that we may need to do something similar on suspend, but I'm unsure # since I don't have a laptop that supports suspened/resume with a # ricoh chipset in it.
show more ...
|
#
85ef2343 |
| 17-Jul-2005 |
Warner Losh <imp@FreeBSD.org> |
The CD interrupt should only be enabled after we've initialized the card. Mask it while we're doing power things, as the PC Card standard suggests. Also, poll the POWER_CYCLE bit 10x a second as we
The CD interrupt should only be enabled after we've initialized the card. Mask it while we're doing power things, as the PC Card standard suggests. Also, poll the POWER_CYCLE bit 10x a second as well as providing a timeout for power cycle interrupt to happen.
The Ricoh '475 that I have doesn't seem to generate an interrupt for power at the present time, so the polling is necessary for reasons as yet unknown. This results in an interrupt storm warning that I'm still trying to quantify (the o2micro trick doesn't work to mitigate this storm). At the very least, this should help those users that lost pccards on boot with the prior rev of this code. My VAIO PCG-505TS is now happier, but more investigation is necessary.
show more ...
|
#
ce71e8d8 |
| 15-Jul-2005 |
Warner Losh <imp@FreeBSD.org> |
s/_us//
|
#
d224ede0 |
| 15-Jul-2005 |
Warner Losh <imp@FreeBSD.org> |
Move to using tsleeps in the cardbus reset case as well. This eliminates the last of the DELAYs in pccbb.
|
#
fd4e4752 |
| 14-Jul-2005 |
Warner Losh <imp@FreeBSD.org> |
Omnibus power and interrupt fixes: o Don't busy wait on powerup. Instead, use the power up interrupt to wait for the card to power up. Don't wait when we're turning the card off, since no inter
Omnibus power and interrupt fixes: o Don't busy wait on powerup. Instead, use the power up interrupt to wait for the card to power up. Don't wait when we're turning the card off, since no interrupt happens in that case. o Convert many of the long DELAYs to tsleeps. We do not run before the timer have stared, so DELAY isn't necessary. More DELAYs can likely be eliminated in the future. o When powering up the card, don't do anything if the card is already powered up (before we'd power cycle it). This means that for most cards we power them up once and then never change the power. o On card eject, mask (by clearing) the CD bit. Before we set it, which was wrong. We don't want to see any CD events past the first one since they need to be debounced.
With these changes, I can insert/eject 16bit cards without glitching xmms' sound output. Something very important to the development of better pccard drivers :-)
show more ...
|
Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
523675f6 |
| 13-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
Use the standard FreeBSD license for these files.
Approved by: imp, jon
|
#
eb523c72 |
| 11-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
The card activation failured message is lame, and not done for other busses, nor for the 16-bit cards. Eliminate it.
|
#
afa87f87 |
| 11-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
/* -> /*- for a second clause
|
#
098ca2bd |
| 06-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
Start each of the license/copyright comments with /*-, minor shuffle of lines
|