Bug 74601

Summary: Cardbus fails after busdma_machdep.c update
Product: Base System Reporter: Kevin Oberman <oberman>
Component: i386Assignee: freebsd-i386 (Nobody) <i386>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.3-STABLE   
Hardware: Any   
OS: Any   

Description Kevin Oberman 2004-12-01 23:30:27 UTC
sys/i386/i386/busdma_machdep.c 1.59.2.2 broke cardus on T30. After applying
the patch, the system freezes when a CardBus card is inserted. If the card
is in place at boot time, the system freezes when the device is probed. Only
the first line of the probe 
dc0: <Xircom X3201 10/100BaseTX> port 0x4000-0x407f mem 0xd0201000-0xd02017ff,0\xd0201800-0xd0201fff irq 11 at device 0.0 on cardbus1
is printed. The system then freezes and a power cycle is required to
recover. Backing out this patch allows the card to finish the probe normally.

Fix: 

Back out sys/i386/i386/busdma_machdep.c to 1.59.2.1.
How-To-Repeat: 
Install the update and boot the system with a PCMCIA card inserted.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2004-12-06 22:56:23 UTC
Can you add debugging code to see where in the process the system 
freezes up?  The dc driver isn't doing any DMA in its attach routine 
that I can easily identify.  It should print a NIC address in boot
verbose.  It would be useful to know if it is getting there.  It would 
also be useful to know if it makes it out of the dc_attach() routine at 
all.  I believe that this dc card also has a miibus attachment to it as 
well, but I haven't tracked down to see if there's DMA there or not.  I 
suspect not because MII interface control tends to be bit-bangging fun/pain.
Comment 2 Gavin Atkinson 2007-04-13 18:05:10 UTC
Hi,

Do you still have this laptop?  If so, is it still a problem?

Thanks,

Gavin
Comment 3 Kevin Oberman 2007-04-13 18:22:53 UTC
> From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
> Date: Fri, 13 Apr 2007 18:05:10 +0100
> 
> Hi,
> 
> Do you still have this laptop?  If so, is it still a problem?
> 
> Thanks,
> 
> Gavin
> 

Nope. I no longer have the system involved. The replacement (T43) does
not support Type II CardBus cards, so I can't even plug the thing into
my new system. It has an ExpressCard clot above the PCMCIA slot and the
shape of the Xircom card makes it impossible to insert it.

For me, the problem was solved by 1.59.2.3.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
Comment 4 Gavin Atkinson 2007-04-13 18:35:50 UTC
Thanks.  This PR can now be closed.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2007-04-25 23:36:48 UTC
State Changed
From-To: open->closed

Submitter notes that the problem was later resolved.