Subject: kern/33271: cbb problem with Ricoh PCI-CardBus bridge
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Marco Castronovo <marco.castronovo@gmail.com>
List: netbsd-bugs
Date: 04/16/2006 20:00:00
>Number:         33271
>Category:       kern
>Synopsis:       Can't boot with Ricoh 5C476 PCI-CardBus bridge activated
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 16 20:00:00 +0000 2006
>Originator:     Marco Castronovo
>Release:        NetBSD 3.0
>Organization:
Marco Castronovo
>Environment:
System: NetBSD notebook.home.net 3.0 NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon De=
c
19 01:08:52 UTC 2005
builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/20051218202=
4Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC_=
LAPTOP
i386
Architecture: i386
Machine: i386
ident: $NetBSD: pccbb.c,v 1.117.2.1 2005/03/27 16:33:48 tron Exp $
>Description:
The system had not problems during the installation process. I have perform=
ed
a wireless installation via wireless using a pcmcia device. After the
installation, the system can't boot, it hangs here:

ppb0 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0x83)
pci1 at pbb0 bus 1
pci1: i/o space, memory space enabled
cbb0 at pci1 dev 3 function 0: Ricoh 5C476 PCI-CardBus bridge (rev. 0xa9)
uvm_fault(0xc0657e60, 0, 0, 1) -> 0xe
kernel: page fault trap, code =3D 0
Stopped in pid 0.1 (swapper) at netbsd:rbus_new_root_share+0xc: cmpl
0xc(%ecx),%edx

This is the trace:

rbus_new_root_share(0,0,4000,2000,0) at netbsd:rbus_new_root_share+0xc
rbus_pccbb_parent_io(c070e9a0,c070e7c0,a9,c031dccd,0) at
netbsd:rbus_pccbb_parent_io+0x
22
pccbbattach(c10cb800,c10c2800,c070e9a0,c070e99c,0) at netbsd:pccbbattach+0x=
ac
config_attach_loc(c10cb800,c05ea25c,c070e990,c070e9a0,c03d3a88) at
netbsd:config_attach
_loc+0x284
pci_probe_device(c10cb800,80011800,0,0,0) at netbsd:pci_probe_device+0x1bc
pci_enumerate_bus(c10cb800,c0500d84,0,0,c05eacdc) at
netbsd:pci_enumerate_bus+0x14f
pcirescan(c10cb800,c05796cb,c0500d84,c05e9de0,4) at netbsd:pcirescan+0x15
config_attach_loc(c10bc100,c05e9de0,0,c070ebf0,c03d6968) at
netbsd:config_attach_loc+0x
284
ppbattach(c10bf800,c10bc100,c070ed00,c070ecfc,c0583ac5) at
netbsd:ppbattach+0xeb
config_attach_loc(c10bf800,c05e9fd8,c070ecf0,c070ed00,c03d3a88) at
netbsd:config_attach
_loc+0x284
pci_probe_device(c10bf800,8000f000,0,0,0) at netbsd:pci_probe_device+0x1bc
pci_enumerate_bus(c10bf800,c0500d84,0,0,c85eacdc) at
netbsd:pci_enumerate_bus+0x14f
pcirescan(c10bf800,c05796cb,c0500d84,c05e9da8,29) at netbsd:pcirescan+0x15
config_attach_loc(c10bcf80,c05e9da8,0,c070ee60,c03d6968) at
netbsd:config_attach_loc+0x
284
mainbus_attach(0,c10bcf80,0,c05f6900,0) at netbsd:mainbus_attach+0x188
config_attach_loc(0,c05e9d8c,0,0,0) at netbsd:config_attach_loc+0x284
config_rootfound(c05791ef,0,c070ef68,c03a845e,c0584ed5) at
netbsd:config_rootfound+0x2c
cpu_configure(0,c0658200,c070efa0,c02f138c,0) at netbsd:cpu_configure+0x29
configure(0,0,0,0,0) at netbsd:configure+0x4a
main(0,0,0,0,0) at netbsd:main+0x2d0
>How-To-Repeat:
Boot the system with a  Ricoh 5C476 PCI-CardBus bridge (rev. 0xa9) activate=
d.
(I have an Asus M2400Ne notebook, I tried to boot with GENERIC and
GENERIC_LAPTOP but the problem remains.
>Fix:
The only fix is to disable the bridge from BIOS. But it is obvious and not
useful...