All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL
@ 2004-04-29 19:07 Tim Bird
  2004-04-29 20:09 ` Ralf Baechle
  2004-04-29 20:49   ` Nicolas Pitre
  0 siblings, 2 replies; 5+ messages in thread
From: Tim Bird @ 2004-04-29 19:07 UTC (permalink / raw
  To: linux kernel
  Cc: linux-arm-kernel, linux-mips, linux-sh-ctl,
	CE Linux Developers List

I'm looking at some sources for kernel Execute-in-place (XIP).

I see references to CONFIG_XIP_ROM and CONFIG_XIP_KERNEL,
in different architecture branches of the same kernel
source tree.

Is this difference merely the result of inconsistent
usage, or is there a functional difference between
these two options?

I can imagine that CONFIG_XIP_ROM is intended only to
handle XIP in ROM, and that CONFIG_XIP_KERNEL possibly
handles additional cases like XIP in flash.  However,
before jumping to that conclusion I thought I would
ask if there is some intention behind the different
config names.

Thanks,

=============================
Tim Bird
Architecture Group Co-Chair
CE Linux Forum
Senior Staff Engineer
Sony Electronics
E-mail: Tim.Bird (at) am.sony.com
=============================



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL
  2004-04-29 19:07 CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL Tim Bird
@ 2004-04-29 20:09 ` Ralf Baechle
       [not found]   ` <40916C15.7000500@am.sony.com>
  2004-04-29 20:49   ` Nicolas Pitre
  1 sibling, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2004-04-29 20:09 UTC (permalink / raw
  To: Tim Bird
  Cc: linux kernel, linux-arm-kernel, linux-mips, linux-sh-ctl,
	CE Linux Developers List

On Thu, Apr 29, 2004 at 12:07:17PM -0700, Tim Bird wrote:

> I'm looking at some sources for kernel Execute-in-place (XIP).
> 
> I see references to CONFIG_XIP_ROM and CONFIG_XIP_KERNEL,
> in different architecture branches of the same kernel
> source tree.
> 
> Is this difference merely the result of inconsistent
> usage, or is there a functional difference between
> these two options?
> 
> I can imagine that CONFIG_XIP_ROM is intended only to
> handle XIP in ROM, and that CONFIG_XIP_KERNEL possibly
> handles additional cases like XIP in flash.  However,
> before jumping to that conclusion I thought I would
> ask if there is some intention behind the different
> config names.

Since you copied linux-mips - neither option is implemented for MIPS ...

  Ralf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL
@ 2004-04-29 20:49   ` Nicolas Pitre
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Pitre @ 2004-04-29 20:49 UTC (permalink / raw
  To: Tim Bird
  Cc: linux kernel, linux-arm-kernel, linux-mips, linux-sh-ctl,
	CE Linux Developers List

On Thu, 29 Apr 2004, Tim Bird wrote:

> I'm looking at some sources for kernel Execute-in-place (XIP).
> 
> I see references to CONFIG_XIP_ROM and CONFIG_XIP_KERNEL,
> in different architecture branches of the same kernel
> source tree.
> 
> Is this difference merely the result of inconsistent
> usage, or is there a functional difference between
> these two options?

It's the result of me deciding CONFIG_XIP_ROM wasn't totally appropriate ...  

> I can imagine that CONFIG_XIP_ROM is intended only to
> handle XIP in ROM, and that CONFIG_XIP_KERNEL possibly
> handles additional cases like XIP in flash.  However,
> before jumping to that conclusion I thought I would
> ask if there is some intention behind the different
> config names.

... so I renamed it to CONFIG_XIP_KERNEL.  Especially since there is also 
XIPable user space which also can be stored in ROM (or flash).  So please 
disregard CONFIG_XIP_ROM and use CONFIG_XIP_KERNEL.  Whether ROM or Flash is 
used is rather irrelevant to the code this option is linked to.


Nicolas


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL
@ 2004-04-29 20:49   ` Nicolas Pitre
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Pitre @ 2004-04-29 20:49 UTC (permalink / raw
  To: Tim Bird
  Cc: linux kernel, linux-arm-kernel, linux-mips, linux-sh-ctl,
	CE Linux Developers List

On Thu, 29 Apr 2004, Tim Bird wrote:

> I'm looking at some sources for kernel Execute-in-place (XIP).
> 
> I see references to CONFIG_XIP_ROM and CONFIG_XIP_KERNEL,
> in different architecture branches of the same kernel
> source tree.
> 
> Is this difference merely the result of inconsistent
> usage, or is there a functional difference between
> these two options?

It's the result of me deciding CONFIG_XIP_ROM wasn't totally appropriate ...  

> I can imagine that CONFIG_XIP_ROM is intended only to
> handle XIP in ROM, and that CONFIG_XIP_KERNEL possibly
> handles additional cases like XIP in flash.  However,
> before jumping to that conclusion I thought I would
> ask if there is some intention behind the different
> config names.

... so I renamed it to CONFIG_XIP_KERNEL.  Especially since there is also 
XIPable user space which also can be stored in ROM (or flash).  So please 
disregard CONFIG_XIP_ROM and use CONFIG_XIP_KERNEL.  Whether ROM or Flash is 
used is rather irrelevant to the code this option is linked to.


Nicolas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL
       [not found]   ` <40916C15.7000500@am.sony.com>
@ 2004-04-30  1:34     ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2004-04-30  1:34 UTC (permalink / raw
  To: Tim Bird; +Cc: linux-mips, CE Linux Developers List

On Thu, Apr 29, 2004 at 01:56:53PM -0700, Tim Bird wrote:

> Well this is interesting.  One the architectures where this is supported
> in my tree is MIPS.  I'm looking at the CELF source tree. The patch for
> this was submitted to me by Toshiba.  I had assumed (based on some other
> indications) that they were submitting stuff to me that they had already
> submitted to kernel.org or to the MIPS list.  This appears not to be
> the case.
> 
> We should discuss this.  I have some patches for MIPS stuff in the
> CELF tree from MontaVista, Toshiba, and NEC.   Unfortunately, the
> CELF tree is based on Linux 2.4.20, so I don't know how much of it,
> if any, would be useful to you.

Depends.  The linux-mips.org tree is at 2.4.26.  Some areas have changed
significantly since 2.4.20, some not at all.  If you want to send patches
please make sure they still apply to the latest kernel.

> How do I proceed with finding out what's interesting, and how to get
> it to you?  Just post some stuff (even if old) to the mips mailing
> list?  Request the originator to do such a post?  Do things need to
> be migrated to 2.6?

Preferably yes.  I don't really care who sends the patch as long as the
sender takes responsibility also after the initial submission.

Any new features preferably for 2.6.

>  Could we bypass that for a casual "is this interesting" review?  Etc.

If all you need is a comment, sure.

> The questions are endless.
> Let me know what you think.
> 
> And, BTW, in my tree the variable used for MIPS is CONFIG_XIP_ROM.
> For SH, it's CONFIG_XIP_KERNEL, and for ARM, it has conditionals
> for both, but only defines CONFIG_XIP_ROM in the config.in!

In the kernel.org kernel the only references to these symbols are to
CONFIG_XIP_KERNEL in a few files under arch/arm26.

  Ralf

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-30  1:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29 19:07 CONFIG_XIP_ROM vs. CONFIG_XIP_KERNEL Tim Bird
2004-04-29 20:09 ` Ralf Baechle
     [not found]   ` <40916C15.7000500@am.sony.com>
2004-04-30  1:34     ` Ralf Baechle
2004-04-29 20:49 ` Nicolas Pitre
2004-04-29 20:49   ` Nicolas Pitre

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.