Vaio GRX580 pccard problem (cbb)
Francois Rogler
francois at rogler.org
Mon Aug 4 21:41:08 PDT 2003
Hi,
Well sorry to do one more post about sony ...
I follow CURRENT (since 9momth) and still have a pb. Basically I want to
make work a lucent orinoco card om my laptop. But the problem is that
when I compile cbb/pccard/cardbus inside my kernel, my kernel crash.
Some time ago either my computer completly hang, nothing moving and
impossible to reboot it except by a power down. Now since a couple weeks
it's doing much better but still doesn't work.
Better see the logs, they are more explicit.
cbb0: <RF5C476 PCI-CardBus Bridge> irq 9 at device 5.0 on pci2
cbb0: PCI Memory allocated: e8200000
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: cbb_power: 0V
cbb1: <RF5C476 PCI-CardBus Bridge> at device 5.1 on pci2
cbb1: failed to enable memory mapping!
cbb1: PCI Memory allocated: e8201000
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib2: possible interrupts: 9
pcib2: slot 5 INTB routed to irq 9 via \\_SB_.LNKG
cbb1: cbb_power: 0V
pci2: <serial bus, FireWire> at device 5.2 (no driver attached) (<- I
removed the firewire from the kernel ... works fine without cbb)
fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x4000-0x403f mem 0xe8200000-0xe8200fff irq 9 at device 8.0 on pci2
fxp0: Ethernet address 08:00:46:68:eb:f5
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Then a bit later in the boot a get into this (full dmesg at the end):
Timecounters tick every 10.000 msec
Fatal trap 18: integer divide fault while in kernel mode
instruction pointer = 0x8:0xc027a3cc
stack pointer = 0x10:0xd6845bf4
frame pointer = 0x10:0xd6845bf4
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, IOPL = 0
current process = 22 (irq9: cbb0 cbb1++++)
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
cbb0: card inserted: event=0xe8200000, state=e8200008
cbb0: Unsupported card type detected
cbb1: card inserted: event=0x00000000, state=30000000
cbb1: Unsupported card type detected
As I have the debugger I made a trace:
kernel: type 18 trap, code=0
stopped at isitmychild+0x3c: movl $0,%eax
db> trace
isitmychild(c0477b40,c04783b0,0,0,d6845c28) at isitmychild+0x3c
witness_levelall(c0478bf8,c0478bf8,c0442e8c,c0478ba8,c0442e8c) at witness_levelall+0x6c
rebalancetree(c0445f44,c0477f00,c0278db0,c03e2dc5,c049b05c) at rebalancetree+0x93
isitmychild(c0478ba8,c0477f00,c03f81f8,2b3,c03f81f8) at isitmychild+0xbd
witness_lock(c4073160,8,c03e2dc5,613,c0473960) at witness_lock+0x632
_mtx_lock_flags(c4073160,0,c03e2dbc,613,c4087e00) at _mtx_lock_flags+0xba
fxp_intr(c4073000,0,c03f3567,215,c15255ac) at fxp_intr+0x34
ithread_loop(c151d900,d6845d48,c03f33e1,312,0) at ithread_loop+0x182
fork_exit(c0240390,c151d900,d6845d48) at fork_exit+0xcf
fork_trampoline() at fork_trampoline+0x1a
--- trap 0x1, eip = 0, esp = 0xd6845d7c, ebp = 0 ---
db> c
I also checked in the gdb where it corresponds, I don't have the gdb log
but it was at the end of the function isitmychild on a return(0).
And finally the OS boot... but the fxp network interface doesn't work
properly. DHCP manage to get an IP, but then no traffic goes through the
interface. If I remove the pccard stuff, then fxp is working great. As
I remember when I have both pccard and firewire, then the kernel crash
just after loading the firewire but still with a cbb message like:
current process = 22 (irq9: cbb0 cbb1++++)
I also tryed to remove all cbb, pccard and cardbus from the kernel and
load them as a module with kldload. Here the kernel boots without any
problem, I can have both the fxp and firewire loading correctly
(couldn't try the firewire as I have nothing to plug in).
The orinoco card is found (but doesn't work). You can also see another
card which is a pcmcia adapter for compactflash memory card but I don't
really care of it right now(better if it works anyway).
Here is what I get:
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cstsevent occured: 0x30000411
cbb1: <RF5C476 PCI-CardBus Bridge> at device 5.1 on pci2
cbb1: PCI Memory allocated: e8203000
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib2: possible interrupts: 9
pcib2: slot 5 INTB routed to irq 9 via \\_SB_.LNKG
cbb0: card inserted: event=0x00000000, state=30000411
pccard0: chip_socket_enable
cbb_pcic_socket_enable:
cbb0: cbb_power: 5V
pccard0: read_cis
cis mem map dcdd4000
pccard0: CIS tuple chain:
CISTPL_DEVICE type=null speed=null
01 03 00 00 ff
CISTPL_DEVICE_A type=sram speed=ext
17 04 67 5a 08 ff
unhandled CISTPL 1d
1d 05 01 67 5a 08 ff
CISTPL_VERS_1
15 50 05 00 4c 75 63 65 6e 74 20 54 65 63 68 6e
6f 6c 6f 67 69 65 73 00 57 61 76 65 4c 41 4e 2f
49 45 45 45 00 56 65 72 73 69 6f 6e 20 30 31 2e
30 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 ff
CISTPL_MANFID
20 04 56 01 02 00
CISTPL_FUNCID
21 02 06 00
CISTPL_FUNCE
22 02 01 07
CISTPL_FUNCE
22 05 02 40 42 0f 00
CISTPL_FUNCE
22 05 02 80 84 1e 00
CISTPL_FUNCE
22 05 02 60 ec 53 00
CISTPL_FUNCE
22 05 02 c0 d8 a7 00
CISTPL_FUNCE
22 02 03 07
CISTPL_FUNCE
22 08 04 06 00 02 2d 0b c1 ec
CISTPL_FUNCE
22 02 05 01
CISTPL_CONFIG
1a 07 03 01 e0 03 00 00 01
CISTPL_CFTABLE_ENTRY
1b 0f c1 01 19 76 c5 4b d5 19 36 36 05 46 7f ff
ff
CISTPL_END
ff
cis mem map dcdd4000
CISTPL_LINKTARGET expected, code 00 observed
pccard0: check_cis_quirks
pccard0: CIS version PC Card Standard 5.0
pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,
pccard0: Manufacturer code 0x156, product 0x2
pccard0: function 0: network adapter, ccr addr 3e0 mask 1
pccard0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqpulse irqlevel
pccard0: functions scanning
pccard0: Card has 1 functions. pccard_mfc is 0
pccard0: I/O rid 0 start 0 end ffffffff
cbb_pcic_socket_enable:
cbb0: cbb_power: 0V
cbb0: cbb_power: 5V
pccard0: ccr_res == e8204000-e82043ff, base=3e0
pccard0: function 0 CCR at 0 offset 3e0: 41 80 22 ff, ff ff ff ff, ff
pccard0: <unknown card> (manufacturer=0x0156, product=0x0002) at function 0
pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01
cbb1: card inserted: event=0x00000000, state=30000810
pccard1: chip_socket_enable
cbb_pcic_socket_enable:
cbb1: cbb_power: 3V
pccard1: read_cis
cis mem map dcdd4000
pccard1: CIS tuple chain:
CISTPL_DEVICE type=funcspec speed=250ns
01 03 d9 01 ff
unhandled CISTPL 1c
1c 04 02 d9 01 ff
unhandled CISTPL 18
18 02 df 01
CISTPL_MANFID
20 04 00 00 00 00
CISTPL_FUNCID
21 02 04 01
CISTPL_FUNCE
22 02 01 01
CISTPL_FUNCE
22 03 02 04 07
CISTPL_CONFIG
1a 05 01 07 00 02 0f
CISTPL_CFTABLE_ENTRY
1b 0b c0 c0 a1 27 55 4d 5d 75 08 00 21
CISTPL_CFTABLE_ENTRY
1b 06 00 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
1b 0d c1 41 99 27 55 4d 5d 75 64 f0 ff ff 21
CISTPL_CFTABLE_ENTRY
1b 06 01 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
1b 12 c2 41 99 27 55 4d 5d 75 ea 61 f0 01 07 f6
03 01 ee 21
CISTPL_CFTABLE_ENTRY
1b 06 02 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
1b 12 c3 41 99 27 55 4d 5d 75 ea 61 70 01 07 76
03 01 ee 21
CISTPL_CFTABLE_ENTRY
1b 06 03 01 21 b5 1e 4d
CISTPL_CFTABLE_ENTRY
1b 04 07 00 28 d3
CISTPL_NO_LINK
14 00
CISTPL_VERS_1
15 15 04 01 48 79 70 65 72 73 74 6f 6e 65 00 4d
6f 64 65 6c 31 00 ff
CISTPL_END
ff
pccard1: check_cis_quirks
pccard1: CIS version PCCARD 2.0 or 2.1
pccard1: CIS info: Hyperstone, Model1
pccard1: Manufacturer code 0x0, product 0x0
pccard1: function 0: fixed disk, ccr addr 200 mask f
pccard1: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7ff; maxtwins 1; mwait_required rdybsy_active powerdown
pccard1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, iospace 0-f; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pccard1: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, iospace 1f0-1f7 3f6-3f7; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pccard1: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pccard1: function 0, config table entry 7: I/O card; irq mask 4000; iomask a, iospace 170-177 376-377; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqshare irqpulse irqlevel powerdown
pccard1: functions scanning
pccard1: Card has 1 functions. pccard_mfc is 0
pccard1: Memory space not yet implemented.
pccard1: Neither memory nor I/O mampped
pccard1: Allocation failed for cfe 0
pccard1: I/O rid 0 start 0 end ffffffff
pccard1: Memory space not yet implemented.
cbb_pcic_socket_enable:
cbb1: cbb_power: 0V
cbb1: cbb_power: 3V
pccard1: ccr_res == e8204000-e82043ff, base=200
pccard1: function 0 CCR at 0 offset 200: 41 80 2e 0, 80 2e 0 41, 80
pccard1: <unknown card> (manufacturer=0x0000, product=0x0000) at function 0
pccard1: CIS info: Hyperstone, Model1, (null)
here is the full dmesg of the kernel which crash (cvs up a couple hours
ago):
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #8: Mon Aug 4 15:57:31 CDT 2003
root at kermit.rogler.org:/usr/src/sys/i386/compile/KERMITDEBUG
Preloaded elf kernel "/boot/kernel/kernel" at 0xc05b4000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05b4294.
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 1690240364 Hz
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz (1690.24-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf24 Stepping = 4
Features=0x3febf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory = 536346624 (511 MB)
avail memory = 514662400 (490 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <SONY B0> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdf50
Timecounter "ACPI-fast" frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> port 0x530-0x537 on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 29 INTA is routed to irq 9
pcib0: slot 29 INTB is routed to irq 9
pcib0: possible interrupts: 9
pcib0: slot 31 INTB routed to irq 9 via \\_SB_.LNKB
agp0: <Intel 82845 host to AGP bridge> mem 0xec000000-0xefffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 9
drm0: <ATI Radeon LW Mobility 7500 M7> port 0x3000-0x30ff mem 0xe8100000-0xe810ffff,0xf0000000-0xf7ffffff irq 9 at device 0.0 on pci1
info: [drm] AGP at 0xec000000 64MB
info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1800-0x181f irq 9 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x1820-0x183f irq 9 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port 0x1840-0x185f at device 29.2 on pci0
pcib0: possible interrupts: 9
pcib0: slot 29 INTC routed to irq 9 via \\_SB_.LNKC
usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
umass0: Sony USB Memory Stick Slot, rev 1.10/1.09, addr 2
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: possible interrupts: 9
pcib2: slot 5 INTA routed to irq 9 via \\_SB_.LNKF
pcib2: slot 8 INTA is routed to irq 9
cbb0: <RF5C476 PCI-CardBus Bridge> irq 9 at device 5.0 on pci2
cbb0: PCI Memory allocated: e8200000
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: cbb_power: 0V
cbb1: <RF5C476 PCI-CardBus Bridge> at device 5.1 on pci2
cbb1: failed to enable memory mapping!
cbb1: PCI Memory allocated: e8201000
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib2: possible interrupts: 9
pcib2: slot 5 INTB routed to irq 9 via \\_SB_.LNKG
cbb1: cbb_power: 0V
pci2: <serial bus, FireWire> at device 5.2 (no driver attached)
fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x4000-0x403f mem 0xe8200000-0xe8200fff irq 9 at device 8.0 on pci2
fxp0: Ethernet address 08:00:46:68:eb:f5
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 mem 0xe8000000-0xe80003ff at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pcm0: <Intel ICH3 (82801CA)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 9 at device 31.5 on pci0
pcm0: <Yamaha YMF753 AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
acpi_ec0: <embedded controller: GPE 0x1c> port 0x66,0x62 on acpi0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
acpi_acad0: <AC adapter> on acpi0
orm0: <Option ROMs> at iomem 0xdc000-0xdffff,0xd8000-0xdbfff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
Fatal trap 18: integer divide fault while in kernel mode
instruction pointer = 0x8:0xc027a3cc
stack pointer = 0x10:0xd6845bf4
frame pointer = 0x10:0xd6845bf4
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, IOPL = 0
current process = 22 (irq9: cbb0 cbb1++++)
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
cbb0: card inserted: event=0xe8200000, state=e8200008
cbb0: Unsupported card type detected
cbb1: card inserted: event=0x00000000, state=30000000
cbb1: Unsupported card type detected
ad0: 38154MB <TOSHIBA MK4018GAS> [77520/16/63] at ata0-master UDMA100
acd0: CD-RW <SONY CD-RW/DVD-ROM CRX810E> at ata1-master PIO4
(probe4:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe4:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe4:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe4:umass-sim0:0:0:0): NOT READY asc:3a,0
(probe4:umass-sim0:0:0:0): Medium not present
(probe4:umass-sim0:0:0:0): Unretryable error
Mounting root from ufs:/dev/ad0s2a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <SONY CD-RW CRX810E 1.5a> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
any clue ?
if you need some more tests/logs let me know
Regards,
--
Francois Rogler
More information about the freebsd-mobile
mailing list