Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] Incorrect segment 0 initialization for PMAC G5



On Apr 1, 2013, at 8:25 AM, Phileas Fogg <phileas-fogg%mail.ru@localhost> wrote:

> On 03/31/2013 02:01 PM, Michael wrote:
>> Hello,
>> 
>> On Sun, 31 Mar 2013 09:56:45 +0200
>> Phileas Fogg <phileas-fogg%mail.ru@localhost> wrote:
>> 
>>> On 03/31/2013 03:12 AM, Michael wrote:
>>> 
>>> 
>>>> Patches please! ;)
>>>> 
>>> 
>>> Will do, first i wanted to get interrupts working else the system is
>>> pretty unusable. At least Ethernet should work properly and then we
>>> could SSH to it :)
>> 
>> I wrote most of the interrupt code, I have a G5 I want to get going and
>> you just removed the obstacle that kept me from doing so ;)
>> 
> 
> Hi Michael,
> 
> i prepared the first bunch of patches for G5 support.
> These patches fix MMU issues on G5.
> I tested the patches with NetBSD HEAD.
> Please review them and tell me if it's OK.
> After applying these patches your NetBSD kernel should boot in virtual
> mode and panic in init_interrupt. All patches were tested by me
> with netbooting.
> 
> Patch description
> ------------------
> 
> POWERMAC_G5_11_2.patch   :  My kernel config which i used
> 
> locore.S.patch           :  Enable 64bit bridge mode at boot

Do we really want to turn off 64-bit instructions?
Probably only want to do for 64BIT BRIDGE and clear ISF in MSR

> trap_subr.S.patch        :  Enable 64bit bridge mode when entering an
>                            exception handler

Is this really needed?  Just make sure ISF (bit 2 in MSR is clear).

> pmap.c.patch             :  Disable kernel map in pmap_bootstrap

Hmmm.  ok for now.

> ofw_rascons.c.patch      :  Do not use ROM font if kernel option
>                            OFWOEA_WSCONS_NO_ROM_FONT is defined.
>                            I'm having problems with ROM font currently,
>                            my machine hangs, so that's why i added
>                            a new kernel option.
> 
> ofwoea_machdep.c.patch   :  Make OFW code+data mapping machine
>                            independent and map video frame buffer into
>                            pmap_kernel for console.
>                            Also fix ofw_map segments.
> 
> 
> The display console can be used only after MMU was enabled.
> It's safe to use it before too but you won't see any messages
> or you will see some strange things on display. That's OK
> because in real mode the machine assumes that all memory is cachable
> which is wrong for the video frame buffer and there is no way to fix it
> except cache flushing.
> 
> In virtual mode i set GUARDED and CACHE-INHIBITED attributes for video
> frame buffer addresses and the it works as expected.
> 
> For some reason i'm having trouble with ROM font, don't know why but
> my machine hangs if i use it. I tried to map it with MMU, it didn't
> help. OFWOEA_WSCONS_NO_ROM_FONT disables it.
> 
> 
> Thanks.
> 
> Regards
> 
> <POWERMAC_G5_11_2.patch><locore.S.patch><trap_subr.S.patch><pmap.c.patch><ofw_rascons.c.patch><ofwoea_machdep.c.patch>



Home | Main Index | Thread Index | Old Index