Subject: Re: newer G4 models and panic: lockmgr: pid 0, not exclusive lock
To: Makoto Fujiwara <makoto@ki.nu>
From: Bill Studenmund <wrstuden@netbsd.org>
List: port-macppc
Date: 06/21/2002 11:25:32
On Fri, 21 Jun 2002, Makoto Fujiwara wrote:

> | Machine type G4/800 MP
> | PPC 7450
> I have cvs checkout today and build kernel:
> NetBSD 1.6B (GENERIC) #0: Fri Jun 21 21:57:55 JST 2002
>
> The kernel works upto single user level.
>
> It hungs at 'Setting tty flags.' at the first time.

At, or just after?

I remember we've had problems (back around 1.4 I think) where the step
after Setting tty flags doesn't announce it's starting, but it's the
killer. It was frustrating to spend a few hours trying to fix ttyflags,
when it wasn't the problem. :-)

Try adding:

echo "Done."

to the end of ttyflags_start() in /etc/rc.d/ttys.

> ....
> root on wd0a dumps on wd0b
> root file system type: ffs
> Fri Jun 21 13:21:47 GMT 2002
> swapctl: adding /dev/wd0b as swap device at priority 0
> starting file system checks:
> /dev/rwd0a: file system is clean; not checking
> /dev/rwd0g: file system is clean; not checking
> /dev/rwd0e: file system is clean; not checking
> /dev/rwd0f: file system is clean; not checking
> Setting tty flags.
>  _
> (and hungs)
> ...
> once more the same thing.. it works..
> But shortly unable to type in from the console. Also rsh
> shell freezes..
>
> dmesg follows:
>
> NetBSD 1.6B (GENERIC) #0: Fri Jun 21 21:57:55 JST 2002
>     makoto@u:/export/20020621/syssrc/sys/arch/macppc/compile/GENERIC
> total memory = 256 MB
> avail memory = 225 MB
> using 2048 buffers containing 13208 KB of memory
> mainbus0 (root)
> cpu0 at mainbus0: 7450 (Revision 2.1), ID 0 (primary)
> cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
> cpu0: 800.00 MHz
> cpu0: 256KB L2 cache, 2MB L3 backside cache
> cpu1 at mainbus0: ID 1
> cpu1: processor off-line; multiprocessor support not present in kernel
> uninorth0 at mainbus0
> pci0 at uninorth0 bus 0
> pci0: i/o space, memory space enabled
> Apple Computer UniNorth AGP Interface (host bridge) at pci0 dev 11 function 0 not configured
> ofb0 at pci0 dev 16 function 0: Nvidia Corporation GeForce2 MX [NV11]
> ofb0: 640 x 480, 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
> Apple Computer UniNorth Host-PCI Bridge (host bridge) at pci1 dev 11 function 0 not configured
> 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 0x1, 0% charged
> wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
> wd0 at wdc0 channel 0 drive 0: <WDC WD800BB-40BSA0>
> wd0: drive supports 16-sector PIO transfers, LBA addressing
> wd0: 76319 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
> ata4 conf[0] = 0xc519465, cyc = 2 (30 ns), act = 6 (90 ns), inact = 3
> wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (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: <PIONEER DVD-RW  DVR-103, , 1.49> type 5 cdrom removable
> cd0: drive supports PIO mode 4, DMA mode 2
> conf[0] = 0x11823, cyc = 4 (120 ns), act = 3 (75 ns), inact = 1
> cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
> wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
> ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
> ohci0: interrupting at irq 27
> ohci0: OHCI version 1.0
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
> ohci1: interrupting at irq 28
> ohci1: OHCI version 1.0
> usb1 at ohci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Apple Computer 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
> Apple Computer UniNorth Host-PCI Bridge (host bridge) at pci2 dev 11 function 0 not configured
> fwohci0 at pci2 dev 14 function 0: Lucent Technologies product 0x5811 (rev. 0x00)
> fwohci0: interrupting at irq 40
> fwohci0: OHCI 1.0, 00:03:93:ff:fe:3e:a3:78, 400Mb/s, 2048 max_rec, 8 iso_ctx
> gm0 at pci2 dev 15 function 0: Ethernet address 00:03:93:3e:a3:78
> gm0: interrupting at irq 41
> brgphy0 at gm0 phy 0: BCM5411 1000BASE-T media interface, rev. 1
> brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
> fw0 at fwohci0: 00:03:93:ff:fe:3e:a3:78:0a:02:20:00:00:00:00:00
> uhub2 at uhub1 port 1
> uhub2: Mitsumi Electric Hub in Apple USB Keyboard, class 9/0, rev 1.10/2.11, addr 2
> uhub2: 3 ports with 2 removable, bus powered
> uhidev0 at uhub2 port 1 configuration 1 interface 0
> uhidev0: Mitsumi Electric Apple USB Keyboard, rev 1.00/1.03, 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 2 configuration 1 interface 0
> uhidev1: Logitech M4848, rev 1.00/5.02, addr 4, iclass 3/1
> ums0 at uhidev1: 1 button
> wsmouse1 at ums0 mux 0
> boot device: wd0
> root on wd0a dumps on wd0b
> root file system type: ffs
> ttyp0:makoto@quick  22:29:52/020621(~)>
>
> ---
> Makoto Fujiwara,
> I will be ip-unreachable for several days...
>