Bug 45403

Summary: Cannot install -CURRENT via pccard network interface
Product: Base System Reporter: Alex Dupre <sysadmin>
Component: kernAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Alex Dupre 2002-11-18 12:30:01 UTC
I'm unable to install 5.0-DP2 and -CURRENT on my Sony Vaio PCG-505TR laptop
via a Netgear FA410TX pccard ethernet card.

This is what appears during the booting and probing phase:

[...]
cbb0: <RF5C475 PCI-CardBus Bridge> at device 10.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci_cfgintr: 0:10 INTA routed to irq 9
[...]
pccard0: <unknown card> (manufacturer=0x0149, product=0x0230) at function 0
pccard0:    CIS info: NETGEAR, FA410TX, Fast Ethernet
[...]

and this is the debug console after I setup the network interface:

[...]
DEBUG: Loading module if_ed.ko (NE[12]000, SMC Ultra, 3c503, DS8390 ISA ethernet cards)
ed1: <Linksys Etherfast 10/100 Ethernet> at port 0x100-0x11f irq 9 function 0 config 32 on pccard0
ed1: address 00:80:c8:8b:c1:7a, type Linksys (16 bit)
lxtphy0: <LXT970 10/100 media interface> on miibus0
lxtphy0:  100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[...]
DEBUG: ifconfig ed1 inet 192.168.0.166  netmask 255.255.255.0
ed1: remote transmit DMA failed to complete
DEBUG: Adding default route to 192.168.0.4
add net default: gateway 192.168.0.4
ed1: remote transmit DMA failed to complete
ed1: device timeout
ed1: device timeout
ed1: device timeout
[...]

The problem seems to be "remote transmit DMA failed to complete", but I dunno
why it happens :(.

On the same laptop I correctly installed -STABLE via network, and this is the
actual startup log:

[...]
pci_cfgintr_linked: linked (61) to hard-routed irq 9
pci_cfgintr: 0:10 INTA routed to irq 9
pcic0: <Ricoh RL5C475 PCI-CardBus Bridge> irq 9 at device 10.0 on pci0
pcic0: PCI Memory allocated: 0x44000000
pccard0: <PC Card bus (classic)> on pcic0
[...]
pccard: card inserted, slot 0
NOV 18 12:37:25 vaio pccardd[50]: Card "NETGEAR"("FA410TX") [Fast Ethernet] [(null)] matched "NETGEAR" ("FA410TX") [Fast Ethernet] [(null)] [(null)]
ed1 at port 0x240-0x25f irq 9 flags 0x80000 slot 0 on pccard0
ed1: address 00:80:c8:8b:c1:7a, type Linksys (16 bit)
lxtphy0: <LXT970 10/100 media interface> on miibus0
lxtphy0:  100baseFX, 100baseFX-FDX, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
NOV 18 12:37:25 vaio pccardd[50]: ed1: NETGEAR (FA410TX) inserted.
NOV 18 12:37:25 vaio pccardd[50]: pccardd started
[...]

Do you need more info or is it enough?
Comment 1 Warner Losh freebsd_committer freebsd_triage 2002-11-26 08:36:00 UTC
Responsible Changed
From-To: freebsd-bugs->imp

I'm a lumberjack, and I'm OK. 
I newcard all night and sleep all day.
Comment 2 Alex Dupre 2003-09-01 16:29:38 UTC
I've just tried with another pccard ethernet card and today-current.
The result is quite similar, the card is a D-Link DFE-680TXD (not
working on -stable).

The output during the booting and probing phase is:

[...]
cardbus0: <network, ethernet> at device 0.0 (no driver attached)
cbb0: CardBus card activation failed
[...]

and in the debug console:

[...]
DEBUG: Loading module if_dc.ko (DEC/Intel 21143 (and clones) PCI fast ethernet card)
dc0: <Abocom FE2500 10/100BaseTX> port 0x1000-0x10ff mem 0x88001000-0x880013ff irq 9 at device 0.0 on cardbus0
dc0: Ethernet address: 00:50:ba:80:1c:ef
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[...]
DEBUG: ifconfig dc0 inet 192.168.0.166  netmask 255.255.255.0
DEBUG: Adding default route to 192.168.0.4
add net default: gateway 192.168.0.4
dc0: watchdog timeout
[...]

-- 
Alex Dupre                             sysadmin@alexdupre.com
http://www.alexdupre.com/              alex@sm.FreeBSD.org

Today's excuse: Increased sunspot activity.
Comment 3 Alex Dupre 2005-12-17 09:08:33 UTC
My old laptop is dead, I cannot test anymore, you can close this PR.

--
Alex Dupre
Comment 4 Warner Losh freebsd_committer freebsd_triage 2007-07-10 22:41:45 UTC
State Changed
From-To: open->closed

OLDCARD bugs are no longer relevant.  I'm pretty sure this has long 
ago been corrected in both OLDCARD and NEWCARD.