Subject: ofppc-current
To: None <,>
From: Jochen Kunz <>
List: port-powerpc
Date: 11/23/2002 11:06:16

I am trying to get -current to run on my Motorola PowerStack II. I have
not much success with it. The kernel goes to the Nirvana when all
segment registers are loaded with EMPTY_SEGMENT in
pmap.c:pmap_bootstrap() (for loop after the comment "Initialize kernel
pmap and hardware"). So I am struggling with the VM system instead of
working on the MD code for this machine. I suspect that the recent
changes to the powerpc pmap and / or OFW code broke somthing, but I
can't find it. 1.6 boots at least to the point where init starts a
single user shell.=20

A kernel with "options FIRMWORKSBUGS" hangs at the load of SR0, without
"options FIRMWORKSBUGS" it hangs at the the load of SR6. The MMU is
active at that moment (MSR=3D0x1032), the BAT registers are as folows:
iBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000,=20
        0x00000000 0x00000000, 0x00000000 0x00000000,=20
dBAT[]: 0x00001ffe 0x00000012, 0x00000000 0x00000000,=20
        0x00000000 0x00000000, 0x00000000 0x00000000,=20
i.e. there is a valid 1:1 effective to physical I/D BAT mapping for the
first 256 MB of  addresses space. (AFAIK now OFW and kernel are using
1:1 effective to physical mapping for the entire addresses space (except
KVA in effective space). OFW does it with PTEs (?), the kernel uses the
BAT registers. Correct?)
It looks to me like the kernel is manipulating the MMU translation via
segment registers it is currently running on. Thus the address
translation for the kernel text is changing in the moment SR0 is loaded
and so the kernel goes to lala-land. But there is a valid BAT mapping
that takes precedence over SR baesd translation. So why does it crash at
that moment?
Without "options FIRMWORKSBUGS" it crashes at the load of SR6. In this
segment is nothing. No RAM, no IO. (One machine has 128 MB RAM the other
256 MB, all IO is above 0x80000000) I thought that console IO could
cause the hang. But this happens outside the scope of SR6. Or am I
missing somthing important here?=20

So I am at a dead end here and need some "food for thought" from an
external source.=20