All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollis@penguinppc.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: memory management issue (Re: another regression on Efika)
Date: Tue, 10 Jul 2007 15:32:30 -0500	[thread overview]
Message-ID: <1184099550.9495.76.camel@basalt> (raw)
In-Reply-To: <20070710140823.GA8909@aragorn>

On Tue, 2007-07-10 at 16:08 +0200, Robert Millan wrote:
> On Tue, Jul 10, 2007 at 12:04:44PM +0200, Jordi Mallach wrote:
> > Hey,
> > 
> > On Wed, Jul 04, 2007, Hollis said:
> > > This problem could be caused by firmware presenting an
> > > incorrect /memory/available property. I would instrument
> > > grub_available_iterate() and heap_init() to confirm.
> > > 
> > > That property lists unclaimed areas of memory, which are free for us to
> > > use as heap. The memory used for firmware itself (including exception
> > > handlers at 0), and the memory used by the loaded ELF file (GRUB), are
> > > missing from /memory/available, so we know not to try to use those
> > > regions for the heap.
> > > 
> > > If that is in fact the problem (which wouldn't surprise me given this
> > > particular firmware's track record), then we'll have to add some
> > > hardcoded hack particularly for Efika in grub_machine_init(), bypassing
> > > the more general code we have now.
> > 
> > I'm afraid there must be more to this.
> > 
> > [...]
> > 
> > When the package was later on updated to a CVS snapshot of 20070505,
> > GRUB started dropping me to OF at boot time. On Saturday, Robert helped
> > me track this regression down to this same commit. After reverting and
> > regenerating grub, I'm happy to report that for the first time my
> > Powerbook G4 laptop was able to boot with me pressing no keys at all,
> > using GRUB.

So you're talking about a completely different failure mode, correct?

> > In short, whatever is causing these crashes is not only an Efika issue.
> > I suspect Apple, or Apple powerbooks at least, are also affected. I got
> > Sjoerd to try this on his powerbook, and he confirms this fixes for him.
> > Paul also tried, with the same results. Not all the powerbooks are the
> > very same model, there are different model revisions involved.
> 
> The error Jordi was seeing before reverting your commits was very similar to
> what I get on my Efika (something like "claim failed").
> 
> Hollis, do you still think this is a firmware bug?

Could somebody please debug it and report back if it is really a GRUB
issue? It could be as simple as adjusting the link address, or it could
mean instrumenting grub_available_iterate() and checking that output
with the contents of /memory/available.

-Hollis




  reply	other threads:[~2007-07-10 20:32 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 18:16 another regression on Efika Robert Millan
2007-07-02 21:14 ` Robert Millan
2007-07-04 16:18 ` Hollis Blanchard
2007-07-10 10:04   ` Jordi Mallach
2007-07-10 14:08     ` memory management issue (Re: another regression on Efika) Robert Millan
2007-07-10 20:32       ` Hollis Blanchard [this message]
2007-07-13 22:08         ` Robert Millan
2007-07-24 19:59           ` Robert Millan
2007-07-25 17:51             ` Hollis Blanchard
2007-07-25 20:08               ` Robert Millan
2007-07-25 23:25                 ` Hollis Blanchard
2007-07-27  8:05                   ` Robert Millan
     [not found]                     ` <20070727103310.GA1539@powerlinux.fr>
2007-07-27 19:15                       ` Robert Millan
2007-07-29 19:30                         ` Robert Millan
2007-07-30 20:11                           ` [PATCH] efika memory issues Robert Millan
2007-07-30 22:35                             ` Hollis Blanchard
2007-07-31 14:38                               ` Robert Millan
2007-07-31 15:55                                 ` Hollis Blanchard
2007-07-31 19:42                                   ` Robert Millan
2007-08-01 17:34                                     ` Hollis Blanchard
2007-08-01 18:27                                       ` Robert Millan
2007-09-30 20:10                                         ` [PATCH] fix memory management on efika/pegasos Robert Millan
2007-10-01 18:18                                           ` Marcin Kurek
2007-10-01 22:25                                           ` Marcin Kurek
2007-10-02 19:42                                             ` Robert Millan
2007-10-03 23:38                                               ` Marcin Kurek
2007-10-04 20:47                                                 ` Robert Millan
2007-07-10 14:10     ` OF disk naming scheme (Re: another regression on Efika) Robert Millan
2007-07-10 19:26       ` Jordi Mallach
2007-07-13 22:16         ` Robert Millan
2007-07-22  9:33           ` Robert Millan
2007-07-22 14:37             ` Marco Gerards
2007-07-22 20:25               ` Robert Millan
2007-08-12 14:56                 ` proposed solution using "ofpathname -a" (Re: OF disk naming scheme) Robert Millan
2007-08-05 10:03 ` updated regression diff (Re: another regression on Efika) Robert Millan

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=1184099550.9495.76.camel@basalt \
    --to=hollis@penguinppc.org \
    --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.