linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@linux.vnet.ibm.com>,
	David Laight <David.Laight@aculab.com>,
	Alan Modra <amodra@au1.ibm.com>,
	"Suzuki K. Poulose" <suzuki@in.ibm.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH v3 2/8] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE
Date: Mon, 28 Nov 2011 16:59:57 -0600	[thread overview]
Message-ID: <4ED4126D.7000201@freescale.com> (raw)
In-Reply-To: <CA+5PVA6uVpB6XUFkjUABJCcVjubFiWWEQgmuMijTQpdAiN7PdQ@mail.gmail.com>

On 11/23/2011 10:47 AM, Josh Boyer wrote:
> On Mon, Nov 14, 2011 at 12:41 AM, Suzuki K. Poulose <suzuki@in.ibm.com> wrote:
>> The current implementation of CONFIG_RELOCATABLE in BookE is based
>> on mapping the page aligned kernel load address to KERNELBASE. This
>> approach however is not enough for platforms, where the TLB page size
>> is large (e.g, 256M on 44x). So we are renaming the RELOCATABLE used
>> currently in BookE to DYNAMIC_MEMSTART to reflect the actual method.

Should reword the config help to make it clear what the alignment
restriction is, or where to find the information for a particular
platform.  Someone reading "page aligned" without any context that we're
talking about special large pages is going to think 4K -- and on e500,
many large page sizes are supported, so the required alignment is found
in Linux init code rather than a CPU manual.

>>
>> The CONFIG_RELOCATABLE for PPC32(BookE) based on processing of the
>> dynamic relocations will be introduced in the later in the patch series.
>>
>> This change would allow the use of the old method of RELOCATABLE for
>> platforms which can afford to enforce the page alignment (platforms with
>> smaller TLB size).
> 
> I'm OK with the general direction, but this touches a lot of non-4xx
> code.  I'd prefer it if Ben took this directly on whatever final
> solution is done.
> 
>> I haven tested this change only on 440x. I don't have an FSL BookE to verify
>> the changes there.
>>
>> Scott,
>> Could you please test this patch on FSL and let me know the results ?
> 
> Scott, did you ever get around to testing this?  In my opinion, this
> shouldn't go in without a Tested-by: from someone that tried it on an
> FSL platform.

Booted OK for me on e500v2 with RAM starting at 256M.

Tested-by: Scott Wood <scottwood@freescale.com>

> We add DYNAMIC_MEMSTART for 32-bit, and we have RELOCATABLE for
> 64-bit.  Then throughout almost the rest of the patch, all we're doing
> is duplicating what RELOCATABLE already did (e.g. if ! either thing).
> It works, but it is kind of ugly.
> 
> Instead, could we define a helper config variable that can be used in
> place of that construct?  Something like:
> 
> config NONSTATIC_KERNEL (or whatever)
>     bool
>     default n
> 
> ...
> 
> config DYNAMIC_MEMSTART
>     <blah>
>     select NONSTATIC_KERNEL
> 
> ...
> 
> config RELOCATABLE
>     <blah>
>     select NONSTATIC_KERNEL

I agree.

-Scott

  reply	other threads:[~2011-11-28 23:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14  5:41 [PATCH v3 0/8] Kudmp support for PPC440x Suzuki K. Poulose
2011-11-14  5:41 ` [PATCH v3 1/8] [44x] Fix typo in KEXEC Kconfig dependency Suzuki K. Poulose
2011-11-14  6:17   ` [PATCH v3 0/8] Kdump support for PPC440x Suzuki Poulose
2011-11-15  2:43   ` [UPDATED] [PATCH v3 1/8] [44x] Fix typo in KEXEC CONFIG dependency Suzuki K. Poulose
2011-11-23 16:26   ` [PATCH v3 1/8] [44x] Fix typo in KEXEC Kconfig dependency Josh Boyer
2011-11-14  5:41 ` [PATCH v3 2/8] [booke] Rename mapping based RELOCATABLE to DYNAMIC_MEMSTART for BookE Suzuki K. Poulose
2011-11-23 16:47   ` Josh Boyer
2011-11-28 22:59     ` Scott Wood [this message]
2011-11-30 14:41       ` Josh Boyer
2011-12-07 12:40         ` Suzuki Poulose
2011-12-07 12:47           ` Josh Boyer
2011-11-14  5:42 ` [PATCH v3 3/8] [44x] Enable DYNAMIC_MEMSTART for 440x Suzuki K. Poulose
2011-11-14  5:43 ` [PATCH v3 4/8] [ppc] Process dynamic relocations for kernel Suzuki K. Poulose
2011-11-14  5:43 ` [PATCH v3 5/8] [ppc] Define virtual-physical translations for RELOCATABLE Suzuki K. Poulose
2011-11-14  5:43 ` [PATCH v3 6/8] [44x] Enable CONFIG_RELOCATABLE for PPC44x Suzuki K. Poulose
2011-11-14  5:44 ` [PATCH v3 7/8] [44x] Enable CRASH_DUMP for 440x Suzuki K. Poulose
2011-11-14  5:44 ` [PATCH v3 8/8] [boot] Change the load address for the wrapper to fit the kernel Suzuki K. Poulose

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=4ED4126D.7000201@freescale.com \
    --to=scottwood@freescale.com \
    --cc=David.Laight@aculab.com \
    --cc=amodra@au1.ibm.com \
    --cc=jpoimboe@linux.vnet.ibm.com \
    --cc=jwboyer@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=suzuki@in.ibm.com \
    /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;
as well as URLs for NNTP newsgroup(s).