Subject: question about MP G4 systems
To: 'port-macppc@netbsd.org' <port-macppc@netbsd.org>
From: Evertz NetBSD <evertz-netbsd@evertz.com>
List: port-macppc
Date: 07/29/2003 11:50:48
I have a dual-G4 "firewire 800" system, on which the second CPU doesn't come
up.  Just wondering if anyone has any suggestions (or documentation) for me
on bringing it up.

I thought there was an openfirmware call to start secondary CPUs, which I
don't think is being used.  Is there a reason?

The code seems logical for second CPUs that can boot with MSR[IP] = 0, but
the 7455 boots with MSR[IP] = 1 only.  Does the Apple ROM fix this somehow,
so that all we're doing is taking it out of soft reset with MSR[IP] already
cleared?

Here's the dmesg output from the machine.  A few interesting things to note
are the "Apple Computer product 0x0033", which is the ATA/100 controller I
think, and the "no mapping for pin A" problems with the USB.  (The kernel
config is just GENERIC.MP with fwohci and gem removed).

NetBSD 1.6U (SLAPPY.MP) #0: Tue Jul 29 11:14:38 EDT 2003
        greg@slappy:/usr/current/src/sys/arch/macppc/compile/SLAPPY.MP
total memory = 768 MB
avail memory = 694 MB
using 3072 buffers containing 39424 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpu0: 1250.00 MHz, 256KB L2 cache, 1MB no-parity L3 cache (DDR SRAM) at 5:1
ratio
cpu1 at mainbus0: secondary cpu didn't start
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x4966
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
fxp0 at pci1 dev 18 function 0: i82559S Ethernet, rev 9
fxp0: interrupting at irq 52
fxp0: Ethernet address 00:d0:b7:11:1a:f9
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
i2s at obio0 offset 0x10000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
wd0 at wdc0 channel 0 drive 1: <QUANTUM FIREBALL EL10.2A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9787 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 20044080 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(wdc0:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
(using DMA data transfers)
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atapibus0 at wdc1 channel 0: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-R1312, 23PL701895, 1A06> cdrom
removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB Controller
(rev. 0x00)
pci_intr_map: no mapping for pin A
ohci0: couldn't map interrupt
ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB Controller
(rev. 0x00)
pci_intr_map: no mapping for pin A
ohci1: couldn't map interrupt
ohci2 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
ohci2: interrupting at irq 63
ohci2: OHCI version 1.0
usb0 at ohci2: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci3 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
Apple Computer product 0x0033 (undefined subclass 0x00) at pci2 dev 13
function 0 not configured
Apple Computer UniNorth Firewire (Firewire serial bus, interface 0x10,
revision 0x01) at pci2 dev 14 function 0 not configured
Apple Computer GMAC Ethernet (ethernet network) at pci2 dev 15 function 0
not configured
uhub2 at uhub1 port 1
uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev
1.10/1.22, addr 2
uhub2: 3 ports with 2 removable, bus powered
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr
3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub2 port 1 configuration 1 interface 1
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr
3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub2 port 2 configuration 1 interface 0
uhidev2: Logitech Apple Optical USB Mouse, rev 1.10/26.54, addr 4, iclass
3/1
ums0 at uhidev2: 1 button
wsmouse1 at ums0 mux 0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs