On Mon, Nov 15, 2010 at 3:04 PM, Mike Belopuhov <[email protected]> wrote:
> On Sat, Nov 13, 2010 at 21:02 +0000, Olivier ANTOINE wrote:
> > Hi,
> >
> > Here is the last message hi have :
> >
> > softraid0 at root
> > cardbus_attach_card: failed to read CIS
> > dc0 at cardbus0 dev 0 function 0 "Xircom X3201-3 (2143)" rev 0x03: irq
> 11,
> > address 00:10:a4:d2:60:bc
> > tqphy0 at dc0 phy 0: 78Q2120 10/100 PHY, rev. 10
> > cardbus_attach_card: failed to read CIS
> > com3 at cardbus0 dev 0 function 1 "Xircom 56k Modem" rev
> > 0x03uvm_fault(0xd0a1a040, 0x0, 0, 1) -> e
> > kernel: page fault trap, code=0
> > Stopped at com_cardbus_attach+0x1d: movl 0x14(%edx),%eax
> > ddb> trace
> > com_cardbus_attach(d1107880,d1245000,d7b97d94,d03e632b,d0776df0) at
> > comm_cardbus_attach+0x1d
> > config_attach(d1107880,d54dd000,d7b97f6c,d03ec2b7,d0a11eda0) at
> > cardbus_attach_card+0x2f5
> > cardslot_event(d1107900,0,d02008f8,d09af2c0,d03e4870) at
> > cardslot_event+event+0x11a
> > workq_thread(d09af2c0) at workq_thread+0x36
> > Bad frame pointer: 0xd0b8ce38
> > ddb>
> >
> > I use the kernel :
> > OpenBSD 4.8-current (GENERIC) #477: Fri Nov 12 01:27:20 MST 2010
> >
> > The last release I can properly boot is 4.7.
> >
> > The 4.8-current bsd.rd boot correctly and I can install the snapshot set
> > with it.
> > The message "cardbus_attach_card: failed to read CIS" appear twice during
> > the boot of bsd.rd but the network is up and running during the install
> of
> > the snapshot.
> >
> > Since the system is not operational after the problem, I apologize for
> the
> > glitch or typo I may have introduce to the ddb report.
> >
> > Thanks
> >
>
> re,
>
> looks like a pointer bug was introduced in the revision 1.39 of the
> com_cardbus.c. here's a fix. untested, but jsg grumbled something
> in approval :)
>
> could you please disable device in ukc and try this patch?
>
> Index: dev/cardbus/com_cardbus.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/cardbus/com_cardbus.c,v
> retrieving revision 1.39
> diff -u -p -r1.39 com_cardbus.c
> --- dev/cardbus/com_cardbus.c 27 Mar 2010 21:40:13 -0000 1.39
> +++ dev/cardbus/com_cardbus.c 13 Nov 2010 21:59:47 -0000
> @@ -237,9 +237,9 @@ com_cardbus_attach(struct device *parent
> struct com_softc *sc = (struct com_softc*)self;
> struct com_cardbus_softc *csc = (struct com_cardbus_softc*)self;
> struct cardbus_attach_args *ca = aux;
> - cardbus_devfunc_t ct = csc->cc_ct;
> + cardbus_devfunc_t ct;
>
> - csc->cc_ct = ca->ca_ct;
> + csc->cc_ct = ct = ca->ca_ct;
> csc->cc_tag = pci_make_tag(ca->ca_pc, ct->ct_bus, ct->ct_dev,
> ct->ct_func);
> csc->cc_pc = ca->ca_pc;
>
>
Hi,
Now it works, boot does not crash, the card works properly. At least what I
saw.
Here is the dmesg of the system for reference.
Thanks !
OpenBSD 4.8-current (RAMDISK_CD) #196: Fri Nov 12 01:45:54 MST 2010
[email protected]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel Celeron ("GenuineIntel" 686-class, 256KB L2 cache) 364 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR
real mem = 267923456 (255MB)
avail mem = 256606208 (244MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/07/01, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.3 @ 0xf64d0 (57 entries)
bios0: vendor Dell Computer Corporation version "A15" date 11/07/2001
bios0: Dell Computer Corporation Latitude CPi A366XT
apm0 at bios0: Power Management spec V1.2
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbda0/112 (5 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371 ISA and IDE" rev
0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe000 0xce000/0x800 0xce800/0x800 0xcf000/0x800
0xcf800/0x800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic Magicgraph NM2200" rev 0x12
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
"Neomagic MagicMedia 256AV" rev 0x12 at pci1 dev 0 function 1 not configured
cbb0 at pci0 dev 3 function 0 "TI PCI1225 CardBus" rev 0x01: irq 11
cbb1 at pci0 dev 3 function 1 "TI PCI1225 CardBus" rev 0x01: irq 11
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DADA-26480>
wd0: 16-sector PIO, LBA, 6194MB, 12685680 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2302, 1013> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ffed netmask ffed ttymask ffff
rd0: fixed, 3872 blocks
softraid0 at root
root on rd0a swap on rd0b dump on rd0b
cardbus_attach_card: failed to read CIS
dc0 at cardbus0 dev 0 function 0 "Xircom X3201-3 (21143)" rev 0x03: irq 11,
address 00:10:a4:d2:60:bc
tqphy0 at dc0 phy 0: 78Q2120 10/100 PHY, rev. 10
cardbus_attach_card: failed to read CIS
"Xircom 56k Modem" rev 0x03 at cardbus0 dev 0 function 1 not configured
syncing disks... done
rebooting...
OpenBSD 4.8-current (GENERIC) #477: Fri Nov 12 01:27:20 MST 2010
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron ("GenuineIntel" 686-class, 256KB L2 cache) 364 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR
real mem = 267923456 (255MB)
avail mem = 253489152 (241MB)
User Kernel Config
UKC> disable cardbus
357 cardbus* disabled
UKC> quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/07/01, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.3 @ 0xf64d0 (57 entries)
bios0: vendor Dell Computer Corporation version "A15" date 11/07/2001
bios0: Dell Computer Corporation Latitude CPi A366XT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbda0/112 (5 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371 ISA and IDE" rev
0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe000 0xce000/0x800 0xce800/0x800 0xcf000/0x800
0xcf800/0x800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic Magicgraph NM2200" rev 0x12
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
neo0 at pci1 dev 0 function 1 "Neomagic MagicMedia 256AV" rev 0x12: irq 5
ac97: codec id not read
audio0 at neo0
cbb0 at pci0 dev 3 function 0 "TI PCI1225 CardBus" rev 0x01: irq 11
cbb1 at pci0 dev 3 function 1 "TI PCI1225 CardBus" rev 0x01: irq 11
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DADA-26480>
wd0: 16-sector PIO, LBA, 6194MB, 12685680 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2302, 1013> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM non-parity PC66CL2
cardslot0 at cbb0 slot 0 flags 0
cardbus at cardslot0 subordinate bus 2 not configured
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus at cardslot1 subordinate bus 3 not configured
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ef4d netmask ef4d ttymask ffdf
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
syncing disks... done
rebooting...
OpenBSD 4.8-current (GENERIC) #0: Mon Nov 15 22:14:03 CET 2010
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron ("GenuineIntel" 686-class, 256KB L2 cache) 364 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR
real mem = 267923456 (255MB)
avail mem = 253489152 (241MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/07/01, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.3 @ 0xf64d0 (57 entries)
bios0: vendor Dell Computer Corporation version "A15" date 11/07/2001
bios0: Dell Computer Corporation Latitude CPi A366XT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbda0/112 (5 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371 ISA and IDE" rev
0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe000 0xce000/0x800 0xce800/0x800 0xcf000/0x800
0xcf800/0x800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic Magicgraph NM2200" rev 0x12
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
neo0 at pci1 dev 0 function 1 "Neomagic MagicMedia 256AV" rev 0x12: irq 5
ac97: codec id not read
audio0 at neo0
cbb0 at pci0 dev 3 function 0 "TI PCI1225 CardBus" rev 0x01: irq 11
cbb1 at pci0 dev 3 function 1 "TI PCI1225 CardBus" rev 0x01: irq 11
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DADA-26480>
wd0: 16-sector PIO, LBA, 6194MB, 12685680 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2302, 1013> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM non-parity PC66CL2
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ef4d netmask ef4d ttymask ffdf
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
cardbus_attach_card: failed to read CIS
dc0 at cardbus0 dev 0 function 0 "Xircom X3201-3 (21143)" rev 0x03: irq 11,
address 00:10:a4:d2:60:bc
tqphy0 at dc0 phy 0: 78Q2120 10/100 PHY, rev. 10
cardbus_attach_card: failed to read CIS
com3 at cardbus0 dev 0 function 1 "Xircom 56k Modem" rev 0x03: irq 11:
ns16550a, 16 byte fifo
com3: probed fifo depth: 0 bytes