Subject: Re: newer G4 models and panic: lockmgr: pid 0, not exclusive lock holder
To: None <port-macppc@netbsd.org>
From: Makoto Fujiwara <makoto@ki.nu>
List: port-macppc
Date: 06/21/2002 08:16:39
Allen> I don't think these have been resolved yet.  I'm curious if yesterday's
Allen> changes to fix the 4400 have any effect.  Can someone try a -current
Allen> kernel based on today's sources on one of these machines?  Would it help

I am not totally sure for the reproducability, but I have
two incidents. One is before applying patch, the other for after:

(1) BEFORE
./build.sh from
/pub/NetBSD-daily/200206190000/source/sets/ 
and use netbsd.GENERIC_MD.gz to boot:
(Hardware is G4/800 MP, PPC7450)
-----------
>> NetBSD/macppc OpenFirmware Boot, Revision 1.6
>> makoto@ibook, Mon May 27 16:28:24 JST 2002
59392+219184=0x5dfa54
 start=0x800000
trap type 200 at a1b924
Press a key to panic.
panic: trap
Stopped in pid 0 () at 0xa0f3b4:    lwz r0,r1,0x14
db> _

method <`usb-kbd-ihandles> not found; ihandle=ffbc8740 phandle=ff931210
-----------
(unable to type in)
------ objdump for above address ---
0021b70c <softclock>:
...
  21b900:       48 0f e7 6d     bl      31a06c <splraise>
  21b904:       3b c0 00 00     li      r30,0
  21b908:       81 19 97 60     lwz     r8,-26784(r25)
  21b90c:       2c 08 00 00     cmpwi   r8,0
  21b910:       40 82 ff 0c     bne     21b81c <softclock+0x110>
  21b914:       80 1f 00 08     lwz     r0,8(r31)
  21b918:       2c 00 00 00     cmpwi   r0,0
  21b91c:       40 82 00 14     bne     21b930 <softclock+0x224>
  21b920:       39 20 ff ff     li      r9,-1
> 21b924:       39 40 ff ff     li      r10,-1
-------------------------------------

(2) AFTER 
with applying patch for 4400 fix and build kernel only:
-------------------------------------
... (the same thing) ...
3839312+218576 [189312+155988]=0x433280
 start=0x100000

console keyboard type: USB
[using 345952 bytes of netbsd ELF symbol table ]
_


method <`usb-kbd-ihandles> not found; ihandle=ffbc8740 phandle=ff93120
method <`usb-kbd-ihandle> not found; ihandle=ffbc8740 phandle=ff93120
method <`adb-kdb-ihandle> not found; ihandle=ffbc8740 phandle=ff93120

(hungs there and unable to type in)
-------------------------------------
---
Makoto Fujiwara,