All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney@caviumnetworks.com>
To: Greg Ungerer <gerg@snapgear.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] mips: fix start of free memory when using initrd
Date: Fri, 10 Sep 2010 09:23:08 -0700	[thread overview]
Message-ID: <4C8A5B6C.5080405@caviumnetworks.com> (raw)
In-Reply-To: <4C89CBDA.1030309@snapgear.com>

On 09/09/2010 11:10 PM, Greg Ungerer wrote:
>
> Hi David,
>
> David Daney wrote:
[...]
>> We have the attached patch (plus a few more hacks), I don't think it
>> is universally safe to change the calculation of reserved_end.
>> Although the patch has some code formatting problems you might
>> consider using it as a starting point.>
> I don't use the Cavium u-boot boot loader on this. (And don't use any
> of the named blocks, or other data struct passing from the boot loader
> to the kernel). So the patch is not really useful for me.
>
> But I am interested, why do you think it is not safe to change
> reserved_end?

For Octeon it is probably safe, but there is a reason that this complex 
logic for restricting the usable memory ranges exists.  Other targets 
require it, so great care must be taken not to break the non-octeon targets.

>
> There is the possible overlap of the kernels bootmem setup data
> that is not checked (which sparc does for example). But otherwise
> what problems do you see here?
>

I lack the imagination necessary to come up with a failing scenario, but 
I am also paranoid, so I see danger everywhere.

David Daney

  reply	other threads:[~2010-09-10 19:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08  5:50 [PATCH] mips: fix start of free memory when using initrd Greg Ungerer
2010-09-08  5:50 ` Greg Ungerer
2010-09-09 17:24 ` David Daney
2010-09-10  6:10   ` Greg Ungerer
2010-09-10 16:23     ` David Daney [this message]
2010-09-13  6:25       ` Greg Ungerer

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=4C8A5B6C.5080405@caviumnetworks.com \
    --to=ddaney@caviumnetworks.com \
    --cc=gerg@snapgear.com \
    --cc=linux-mips@linux-mips.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.