Subject: corega FEtherII PCC-TXD @ cbb -> lock system
To: None <port-i386@netbsd.org>
From: doomwarrior <doomwarriorx@gmail.com>
List: port-i386
Date: 09/24/2006 11:03:06
Hi
I installed NetBSD on my old Notebook (Cyberbook 9889) and plugged the
NE-compatible network card into the pcmcia slot.
But the card isn't working and lock the system! I tried to debug this
behaviour, but if I single step over the parts the system
didn't lock any more. But the card isn't working. After adding all
verbose and debug output, the system also don't crash.
What I already tried:
a) change RBUS_MIN_START, RBUS_IO_BASE, RBUS_IO_SIZE to different values
b) use latest NetBSD 4.0 kernel
c) test on a normal Desktop PC with Ricoh 5C475 PCI-CardBus bridge (rev.
0x81) (chipflags 2)
d) without cbb-support
e) test the card with Ubuntu 6.06.1
---
a) the default values seem to be ok, because if RBUS_MIN_START is to
low, the pcmcia driver couldn't read the CIS correctly.
b) nothing change here :-(
c) same behaviour but the MAC of the card is 00:00:00:00:00:00
d) then the pcic driver is configured and the correct MAC-address is
displayed but get a "device time out" later...
e) card is working and the LED is flashing.
if somebody needs more infos please let me know. I first thought the ccr
write would be the problem, because
while stepping through the kernel the system sometimes lock, if I run
through the interrupt establish function with continue.
But because this is my only pcmcia card, I can't say if any of this
values below are strange.
Best Regards
Stephan
see part of dmesg:
...
cbb0 at pci0 dev 3 function 0: Texas Instruments PCI1131 PCI-CardBus
Bridge (rev. 0x01) (chipflags 3)
cbb0: socket base address 0x10000000
cbb0: intrpin A, intrtag 15
cbb1 at pci0 dev 3 function 1: Texas Instruments PCI1131 PCI-CardBus
Bridge (rev. 0x01) (chipflags 3)
cbb1: socket base address 0x10001000
cbb1: intrpin B, intrtag 15
...
CardBus latency timer 0x20 (20010100)
PCI latency timer 0x10 (821000)
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
cbb0: interrupting at irq 15
PCI config regs:
0x00: ac15104c 02000007 06070001 00821000
0x10: 10000000 02000000 20010100 fffff000
0x20: 00000000 fffff000 00000000 fffffffc
0x30: 00000000 fffffffc 00000000 04c0010f
0x40: 00000000 00000001 00000000 00000000
0x80: 00241020 00000000 00000000 00000000
0x90: 00702800 00000000 00000000 00000000
0xa0: 00000000 00000000 00000000 00000000
socket regs: 00000000 0000000e 30000106 00000000 00000000
ExCA regs: 84 00 00 00 00 00 00 00
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia0 at cardslot0
pccbb_pcmcia_card_detect
pccbbattach: found cardslot
CardBus latency timer 0x20 (20020200)
PCI latency timer 0x10 (821000)
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
...
cbb1: interrupting at irq 15
PCI config regs:
0x00: ac15104c 02000007 06070001 00821000
0x10: 10001000 02000000 20020200 fffff000
0x20: 00000000 fffff000 00000000 fffffffc
0x30: 00000000 fffffffc 00000000 04c0020f
0x40: 00000000 00000001 00000000 00000000
0x80: 00243020 00000000 00000000 00000000
0x90: 00702800 00000000 00000000 00000000
0xa0: 00000000 00000000 00000000 00000000
socket regs: 00000000 0000000e 30000510 00000000 00000000
ExCA regs: 84 0c 00 00 00 00 00 00
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0
pcmcia1 at cardslot1
pccbb_pcmcia_card_detect
pccbbattach: found cardslot
pccbb_pcmcia_socket_enable: 5V card
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
pccbb_power: CARDBUS_VCC_5V and CARDBUS_VPP_VCC [0x15]
cbb1: wait took 0.008935s
pccbb_pcmcia_delay: "pccen1" 0x0, sleep 1 ms
pccbb_pcmcia_delay: "pccwr0" 0x0, sleep 10 ms
pccbb_pcmcia_delay: "pccwr1" 0x0, sleep 100 ms
pcmcia1: ++enabled_count = 1
pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x400, realsize 0x1000
pccbb_pcmcia_mem_map window 0 bus 40000000+0+400 at card addr 0
pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003ff off 0xc0000000
pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
pcmcia1: CIS version unknown (major=1, minor=0)
pcmcia1: CIS info: corega K.K., corega FEtherII PCC-TXD, ,
pcmcia1: Manufacturer code 0x1234, product 0x5678
pcmcia1: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia1: function 0, config table entry 7: I/O card; irq mask ffff;
iomask a, io
space 300-31f; mwait_required io16 irqlevel
ne0 at pcmcia1 function 0: <corega K.K., corega FEtherII PCC-TXD, , >
pcmcia_config_alloc: io 0 start=300 length=20 align=400 skew=300
pccbb_pcmcia_io_alloc alloc port 0x1000+0x20
pccbb_pcmcia_io_map window 0 dynamic port 1000+20
pccbb_pcmcia_do_io_map win 0 addr 0x1000 size 0x20 width 0
start 00 10, stop 1f 10, ioctl 02 enable 40
window iobase 1000 iomax 101f
function iobase 1000 iomax 101f
pccbb_intr_establish start. 0x0
pccbb_intr_establish add pil. 0xc0b9aa60
pcmcia1: ++enabled_count = 2
cbb1: pccbb_pcmcia_socket_settype 01 type io 70
pccbb_pcmcia_alloc_mem: addr 0x40000000 size 0x14, realsize 0x1000
pccbb_pcmcia_mem_map window 0 bus 40000000+3c0+14 at card addr 0
pccbb_pcmcia_do_mem_map: start 0x40000000 end 0x400003d3 off 0xc0000000
pccbb_pcmcia_do_mem_map window 0: 0000 0080 0040 40
ccr write at ccrt: 1 ccrh: -891772928 size: 3ca value: 0
ccr write at ccrt: 1 ccrh: -891772928 size: 3cc value: 16
ccr write at ccrt: 1 ccrh: -891772928 size: 3c2 value: 0
ccr write at ccrt: 1 ccrh: -891772928 size: 3c0 value: 71
pcmcia1: function 0 CCR at 0 offset 3c0: 47 0 0 0, 0 3 ff ff, ff
ne0: Ethernet address 0a:00:00:00:00:00
pcmcia1: --enabled_count = 1
pccbb_intr_disestablish start. 0xc0b9aa60
pccbb_intr_disestablish: pil 0xc0b9aa60
pccbb_intr_disestablish frees one pil
pccbb_intr_disestablish frees one pil
pccbb_intr_disestablish: no interrupt handler
pccbb_pcmcia_socket_disable
pccbb_power: CARDBUS_VCC_0V and CARDBUS_VPP_0V [0x44]
pccbb_pcmcia_delay: "pccwr1" 0x0, sleep 300 ms
pcmcia1: --enabled_count = 0