#
c8c57208 |
| 20-Aug-2003 |
Maxime Henrion <mux@FreeBSD.org> |
Fix typo in last commit.
|
#
74a9cb09 |
| 20-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Use CBB_CARD_PRESENT instead of checking STATE_CD directly since it is hard to get right.
|
#
f2d72e24 |
| 18-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
The CD bits in the CBB_SOCKET_STATE register are 0 when the card is present, and non-zero when it is (or may be) absent. The test cbb_child_present was backwards. However, typical usage in the tree
The CD bits in the CBB_SOCKET_STATE register are 0 when the card is present, and non-zero when it is (or may be) absent. The test cbb_child_present was backwards. However, typical usage in the tree would cause it to do the right thing because the card really wasn't there the OK flag would be turned on.
Also, assume that if any of these bits are turned on we don't have a card, rather than requiring both of them in the suspend/resume routines.
Noticed by: cognet
show more ...
|
#
da245931 |
| 18-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Put the clearing of the socket cd interrupt and setting of it under protection of sc->mtx. Sometimes multiple insert/ejections could cause further insertion/removals to not happen due to racing an I
Put the clearing of the socket cd interrupt and setting of it under protection of sc->mtx. Sometimes multiple insert/ejections could cause further insertion/removals to not happen due to racing an ISR...
show more ...
|
#
fbe15138 |
| 14-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
trivial optimization: use nameunit here.
|
#
8a0ef7be |
| 10-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
MF p4:
Minor style(9) nit.
|
#
2724f321 |
| 10-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Some bridges, like o2 micro and maybe ricoh, have some issues between the time the card is inserted and the time that the card is configured. This can lead to interrupt storms. The O2Micro suggeste
Some bridges, like o2 micro and maybe ricoh, have some issues between the time the card is inserted and the time that the card is configured. This can lead to interrupt storms. The O2Micro suggested workaround is to route the card function interrupt to IRQ1. It appears from my testing that this is an acceptable workaround for most chipsets (there's still some issue with the ricoh chipset).
Also, only look at the NOT_A_CARD bit when the bridge tells us there's a card present. At least one test caused this to be true after the card was removed, but the author couldn't recreate it with the workaround in place. The change is more conservative than the previous code, but still has the work around that wasn't present in the older code.
show more ...
|
#
fda5b612 |
| 09-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Add code to cope more with strange conditions after careful study of the standard.
1) When the bridge tells us that we have a card that isn't recognized, we use the force register to force the CV
Add code to cope more with strange conditions after careful study of the standard.
1) When the bridge tells us that we have a card that isn't recognized, we use the force register to force the CV_TEST to run. This test causes the bridge to re-evaluate the card. Once this re-evaluation process happens, we get a new interrupt that may say it is ready to process. We try this up to 20 times. Tests have shown that this appears to correctly reset the 'Unknown card type' problem that I saw on my Sony PCG-505TS. 2) Take a page from OLDCARD and always read the CSC register in the ISR. Some TI (and it seems maybe Ricoh) chipsets require this to behave properly. This work around appears to work due to some power management protocols that were improperly implemented. Maybe it can be removed when this driver supports the full PME# protocol described in the standards. 3) Minor additional debug printf when debugging is enabled. 4) Minor additional commentary for things that are obvious only after study.
# I'm committing this from my Sony PCG-505TS using shared PCI interrupts # and NEWCARD, but there are some issues with the Ricoh bridge still, but # at least now I can boot with the card inserted and have it work.
show more ...
|
#
71ed0ee3 |
| 09-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
CBB_SOCKET_STAT_ is too long. Change it to CBB_STATE_. Also, make some minor changes to more closely match the bit names used in the 7.0 version of the PCMCIA standard. Also add bits from the FORC
CBB_SOCKET_STAT_ is too long. Change it to CBB_STATE_. Also, make some minor changes to more closely match the bit names used in the 7.0 version of the PCMCIA standard. Also add bits from the FORCE register.
show more ...
|
#
69a7c91e |
| 09-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
When allocating memory, align it to the minimum alignment required for cardbus bridges if the alignment requirements were less restrictive.
|
#
da57cf7c |
| 09-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Add comments about some alignment that looks a little strange.
|
#
e3bf57b6 |
| 09-Aug-2003 |
Warner Losh <imp@FreeBSD.org> |
Minor fixes to a couple of comments.
|
#
8b149b51 |
| 07-Aug-2003 |
John Baldwin <jhb@FreeBSD.org> |
Consistently use the BSD u_int and u_short instead of the SYSV uint and ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent.
Requested
Consistently use the BSD u_int and u_short instead of the SYSV uint and ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent.
Requested by: bde (kern_ktrace.c)
show more ...
|
#
fa4b32fa |
| 03-Jul-2003 |
Warner Losh <imp@FreeBSD.org> |
All current uses of pci_set_powerstate are bogus, at least in theory. However, they are presently necessary due to bigger bogusness in the pci bus layer not doing the right thing on suspend/resume or
All current uses of pci_set_powerstate are bogus, at least in theory. However, they are presently necessary due to bigger bogusness in the pci bus layer not doing the right thing on suspend/resume or on initial device probe. This is exactly the sort of thing that the BURN_BRIDGES option was invented for. Mark all of them as BURN_BRIDGES. As soon as I have the powerstate stuff properly integrated into the pci bus code, I intend to remove all these workarounds.
show more ...
|
#
2b8c22f6 |
| 12-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
Unlock after ISR.
Noticed by: njr Pointy hat to: the impable one.
|
#
9b6df37a |
| 12-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
s/BURN_THE_BOATS/BURN_BRIDGES/g to adopt to new world order
|
#
de5059db |
| 12-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
Make cbb interrupts MPSAFE: o Register ISR INTR_MPSAFE. o Loop on KTHREAD_DONE == 0 in the thread. o Safe the INTR_MPSAFE flag for client drivers (don't know if there are any CardBus/PCI drivers th
Make cbb interrupts MPSAFE: o Register ISR INTR_MPSAFE. o Loop on KTHREAD_DONE == 0 in the thread. o Safe the INTR_MPSAFE flag for client drivers (don't know if there are any CardBus/PCI drivers that are INTR_MPSAFE) o Read status after acquiring mtx_lock(Giant) rather than before so that we catch state changes that happen while Giant is being acquired. o Turn off the CD bit when we see a CD interrupt, and turn it back on after we've attached/detached the card. o On suspend, actually set the CBB_SOCKET_MASK to zero rather than oring in '0' to turn it off on suspend. o If the ISR that's registerd is MPSAFE, don't acquire Giant around call to client ISR. o Fix comments to reflect these changes.
show more ...
|
#
e08a16f0 |
| 07-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
MFp4:
Migrate some common pccard code into exca.
|
#
bb22b141 |
| 07-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
Simplify the power code somewhat (this makes the module about 100 bytes smaller).
|
#
e4e7b5bc |
| 06-Jun-2003 |
Warner Losh <imp@FreeBSD.org> |
Add two of three workarounds for interrupt storms for o2micro parts as obtained from o2micro. These should only be needed for 'older' o2micro bridges (anything before the 7xxx series of bridges), bu
Add two of three workarounds for interrupt storms for o2micro parts as obtained from o2micro. These should only be needed for 'older' o2micro bridges (anything before the 7xxx series of bridges), but will work with the new bridges.
# I don't plan on porting it to oldcard, but will happily commit to # oldcard if someone else needs them.
show more ...
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
4738f8c1 |
| 31-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove return after goto. Remove break after return;
Found by: FlexeLint
|
#
efc7a12c |
| 05-May-2003 |
Warner Losh <imp@FreeBSD.org> |
Back out accidentally committed debugging
|
#
45285511 |
| 04-May-2003 |
Warner Losh <imp@FreeBSD.org> |
fix typo in TI1515 ID.
|
#
c7611918 |
| 29-Apr-2003 |
Warner Losh <imp@FreeBSD.org> |
Fix typo on O2Micro devices names.
Submitted by: noda-san
|
#
5878ce2c |
| 28-Apr-2003 |
Warner Losh <imp@FreeBSD.org> |
Make IRQ shareable for the cardbus case too.
|