From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Claim on IEEE1275
Date: Wed, 29 Dec 2004 11:20:21 +0000 [thread overview]
Message-ID: <87acrxjqq2.fsf@marco.marco-g.com> (raw)
In-Reply-To: <19294A70-595C-11D9-842B-000A95A0560C@penguinppc.org> (Hollis Blanchard's message of "Tue, 28 Dec 2004 23:40:07 -0600")
Hollis Blanchard <hollis@penguinppc.org> writes:
> On Dec 28, 2004, at 5:02 PM, Marco Gerards wrote:
>>
>> Some minutes ago I have committed a patch that removes the stack
>> initialization code. This seems to work perfectly fine for both the
>> PegasosII and the newworld mac. This was required for loading linux
>> on the PegasosII. Without this change linux crashed when decompressing
>> itself. It's ok for me to restore this code when the problem is
>> found. But at the moment this seems like a fine fix.
>
> I would still like to have some idea of the problem we're avoiding. We
> *were* using an 8KB stack (which seems like a lot). Now we use
> whatever firmware gave us. Firmware is required by spec (8.2.2 of the
> PowerPC IEEE1275 binding) to give us at least a 32KB stack, but of
> course we cannot guarantee that all implementations do this
> correctly. It is possible that Linux's gunzip code requires a stack
> greater than 8KB, and that would be good to know (and comment). Would
> you mind testing the old code with larger stack sizes and see if that
> matters?
I've done that before I removed it. It did not help. Perhaps the
problem is caused because stack is in .bss and it is not executable?
> I said earlier that I didn't think the old stack initialization code
> was correct, but now I think it may be ok. I have never seen use of
> the "la" mnemonic, but it might do what we want here.
Ok. Hopefully Johan can comment on that, he wrote that code.
>> Only one problem remains for loading linux on the PegasosII. The
>> grub_claimmap call fails because the map fails. I think this is
>> because the firmware already maps the memory.
>
> You can verify this by consulting the "translations" property of
> /chosen/mmu if I recall correctly.
Ok.
>> Hollis, is the map call really required? We can better go back to
>> using grub_ieee1275_claim if it is not. If it is required, do you
>> have an idea of how to detect this?
>
> It is certainly required: how would you like it if you claimed some
> memory to write to but it was never mapped?
I assume it is mapped by claim. Anyway, yaboot does not use map and
neither does linux, as it seems.
> There is a "real-mode?" configuration variable, but I think that just
> specifies OF's translation mode, independent of the client's mode (see
> the IEEE1275 PowerPC and CHRP bindings). Knowing the value of that
> variable might be interesting but I wouldn't recommend changing it, as
> Apple firmware in particular is known to die a horrible death by
> mucking with one of those settings (I'm pretty sure it's "real-mode?").
On my powerbook it is set to false, while it is set to true on the
pegasos. So what do you suggest? Using map when it is set to false?
Thanks,
Marco
next prev parent reply other threads:[~2004-12-29 11:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-28 23:02 Claim on IEEE1275 Marco Gerards
2004-12-29 5:40 ` Hollis Blanchard
2004-12-29 11:20 ` Marco Gerards [this message]
2004-12-29 17:11 ` Hollis Blanchard
2004-12-29 17:36 ` Marco Gerards
2004-12-29 21:28 ` Hollis Blanchard
2005-01-01 20:49 ` Hollis Blanchard
2005-01-02 1:36 ` Hollis Blanchard
2005-01-02 13:40 ` Marco Gerards
-- strict thread matches above, loose matches on Subject: below --
2005-01-02 18:29 Hollis Blanchard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87acrxjqq2.fsf@marco.marco-g.com \
--to=metgerards@student.han.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.