Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@snapgear.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] mips: fix start of free memory when using initrd
Date: Mon, 13 Sep 2010 16:25:19 +1000	[thread overview]
Message-ID: <4C8DC3CF.6030909@snapgear.com> (raw)
In-Reply-To: <4C8A5B6C.5080405@caviumnetworks.com>

David Daney wrote:
> 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.

Good answer :-)

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

      reply	other threads:[~2010-09-13  6:27 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
2010-09-13  6:25       ` Greg Ungerer [this message]

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=4C8DC3CF.6030909@snapgear.com \
    --to=gerg@snapgear.com \
    --cc=ddaney@caviumnetworks.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox