Subject: port-macppc/26508: Cardbus does not attach on Powerbook G3 Wallstreet
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ctribo@college.dtcc.edu>
List: netbsd-bugs
Date: 08/02/2004 00:51:35
>Number:         26508
>Category:       port-macppc
>Synopsis:       Cardbus does not attach on Powerbook G3 Wallstreet
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 02 03:18:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Chris Tribo
>Release:        2.0 beta
>Organization:
>Environment:
NetBSD HackBox 2.0_BETA NetBSD 2.0_BETA (HackBox) #4: Sun Aug  1 18:37:51 EDT 2004  root@HackBox:/usr/src/sys/arch/macppc/compile/HackBox macppc

>Description:
PCMCIA at least partially works. I'm unable to get the pcmcia Cisco card to do much more than ping things, but that's probably unrelated. Cardbus doesn't seem to attach to the controllers properly. I'm unsure if this is a macppc specific issue or the MI code.

The only difference between generic and my kernel config is that I have an* at pcmcia* function ? and debug,diagnostic,cardbus_debug,and pcmciadebug defined.

NetBSD 2.0_BETA (HackBox) #5: Sun Aug  1 23:55:42 EDT 2004
        root@HackBox:/usr/src/sys/arch/macppc/compile/HackBox
total memory = 256 MB
avail memory = 242 MB
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 3.2), ID 0 (primary)
cpu0: HID0 8290c0a4<EMCP,ECLK,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 500.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
grackle0 at mainbus0
pci0 at grackle0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola MPC106 "Grackle" Host Bridge (rev. 0x40)
obio0 at pci0 dev 13 function 0: addr 0xf3000000
mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
scsibus0 at mesh0: 8 targets, 8 luns per target
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
bm0 at obio0 offset 0x11000 irq 42,33: address 00:05:02:f3:79:d2
awacs0 at obio0 offset 0x14000: irq 17,8,9
audio0 at awacs0: full duplex
mediabay0 at obio0 offset 0x34 irq 29 level-triggered
wdc0 at mediabay0 offset 0x21000 irq 14
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 13: DMA transfer
atabus1 at wdc1 channel 0
adb0 at obio0 offset 0x16000 irq 18: 3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: PowerBook G3 keyboard
wskbd0 at akbd0: console keyboard
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: buttons
apm0 at adb0: battery flags 0x7, 28% charged
Apple Computer MAC-IO I/O Controller (Paddington) (undefined subclass 0x00) at pci0 dev 16 function 0 not configured
ofb0 at pci0 dev 17 function 0: ATI Technologies 3D Rage LT Pro
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0cbb0 at pci0 dev 19 function 0: Texas Instruments PCI1131 PCI-CardBus Bridge (re
v. 0x01)
cbb1 at pci0 dev 19 function 1: Texas Instruments PCI1131 PCI-CardBus Bridge (re
v. 0x01)
cbb0: interrupting at irq 22
cbb0: secondary bus number uninitialized; try PCIBIOS_BUS_FIXUP
cardslot0 at cbb0 slot 0 flags 0
cardbusmatch: busname differs pcmcia <=> cardbus
pcmcia0 at cardslot0
cbb1: interrupting at irq 23
cbb1: secondary bus number uninitialized; try PCIBIOS_BUS_FIXUP
cardslot1 at cbb1 slot 1 flags 0
cardbusmatch: busname differs pcmcia <=> cardbus
pcmcia1 at cardslot1
scsibus0: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITA CR-174, , A011> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc0:0:0): using PIO mode 4
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: Cisco Systems, 350 Series Wireless LAN Adapter
pcmcia1: Manufacturer code 0x15f, product 0xa
pcmcia1: function 0: network adapter, ccr addr 3e0 mask 7
pcmcia1: function 0, config table entry 5: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqlevel
an0 at pcmcia1 function 0: Cisco Systems, 350 Series Wireless LAN Adapter
an0: Cisco Systems 350 Series (firmware 4.25.30)
an0: 802.11 address: 00:0e:84:b4:5f:2e, channel: 1-11
an0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
>How-To-Repeat:
boot a generic kernel on a Powerbook G3 Wallstreet
>Fix:
The attachment code seems to be getting something wrong. Cardbus should be attaching to cardslot* not attempting to attach to pcmcia*. I'm at a loss to figure out where to look up the chain of attachments to see where this is going wrong.
>Release-Note:
>Audit-Trail:
>Unformatted: