public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] ARM: xip: Use correct symbol for end of ROM marker
Date: Wed, 18 Nov 2015 09:30:04 +0100	[thread overview]
Message-ID: <5236157.AUJjCLOEeJ@wuerfel> (raw)
In-Reply-To: <alpine.LFD.2.20.1511172129060.22569@knanqh.ubzr>

On Tuesday 17 November 2015 22:17:41 Nicolas Pitre wrote:
> On Wed, 18 Nov 2015, Chris Brandt wrote:
> 
> > It sounds like there would still be a request to split up the linker 
> > scripts in order to remove the 6 XIP_KERNEL references scattered 
> > throughout vmlinux.lds.S. However, it would still be nice to keep the 
> > two versions looking as close as they can to each other with only the 
> > obvious changes (like removing XIP_KERNEL from the non-XIP version, 
> > and removing SMP_ON_UP from the XIP version)
> 
> I don't think so. XIP and non-XIP are fundamentally looking different 
> these days.  Trying to keep them as similar as possible is rather an 
> impediment to both cases and brings no real benefits.
> 
> Not only should .init.smpalt be gone from the XIP version, but it might 
> be safer to put that into a special "should_be_empty" section and bail 
> out with ASSERT() if that section size isn't zero. Same thing for 
> pv_table. This way we'll be sure that nothing in the kernel config 
> expects self-modified code to be present.
> 
> With XIP there is still an init section, but it is pointless to store 
> .init.text stuff in there. That should instead stay in ROM and never be 
> discarded (obviously). No need to page align it either at that point 
> which should save some ROM space.
> 
> Things like .kprobes.text should be in ROM, but the entire executable in 
> ROM should be surrounded by __kprobes_text_start and __kprobes_text_end 
> to prevent any attempt to put kprobes there. This way, kprobes could 
> still work for modules.
> 
> Etc. Etc.
> 
> There are simply too many things these days that require special 
> considerations with XIP. And freeing the main script from XIP 
> considerations will ease maintenance as well, more than the added 
> maintenance from the duplicated parts.

[Adding Uwe and Maxime to Cc]

I believe Uwe has been running XIP_KERNEL on efm32 for a while now,
but he also mentioned that he needed some extra hacks in the linker
script and elsewhere to get it to work.

It would be good to coordinate this, he may have found additional
problems, or he can maybe help test the new approach on his hardware.

	Arnd

  reply	other threads:[~2015-11-18  8:30 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 14:17 [PATCH] ARM: xip: Use correct symbol for end of ROM marker Chris Brandt
2015-11-12 12:17 ` Peter Hurley
2015-11-12 13:15   ` Chris Brandt
2015-11-12 16:32 ` Russell King - ARM Linux
2015-11-12 21:01 ` [PATCH v2] " Chris Brandt
2015-11-13  7:46   ` Geert Uytterhoeven
2015-11-13 20:03     ` Chris Brandt
2015-11-16 18:05   ` [PATCH v3] " Chris Brandt
2015-11-16 18:17     ` Russell King - ARM Linux
2015-11-16 19:46       ` Chris Brandt
2015-11-16 19:53         ` Russell King - ARM Linux
2015-11-16 20:18           ` Chris Brandt
2015-11-16 20:30             ` Russell King - ARM Linux
2015-11-16 20:57       ` Nicolas Pitre
2015-11-16 21:09         ` Chris Brandt
2015-11-16 20:27     ` Nicolas Pitre
2015-11-16 21:02       ` Chris Brandt
2015-11-16 21:47         ` Nicolas Pitre
2015-11-16 22:19           ` Chris Brandt
2015-11-17  0:48             ` Nicolas Pitre
2015-11-17  2:11               ` Chris Brandt
2015-11-17  2:37                 ` Nicolas Pitre
2015-11-17 16:56                   ` Chris Brandt
2015-11-17 17:24                     ` Nicolas Pitre
2015-11-18  3:58                     ` Nicolas Pitre
2015-11-18  5:12                       ` Magnus Damm
2015-11-18 13:45                         ` Nicolas Pitre
2015-11-18 17:01                           ` Nicolas Pitre
2015-11-18 19:12                             ` Chris Brandt
2015-11-18 20:23                               ` Nicolas Pitre
2015-11-18 20:51                                 ` Chris Brandt
2015-11-18 21:36                                   ` Nicolas Pitre
2016-01-29 21:12                                     ` Chris Brandt
2016-01-29 21:17                                       ` Nicolas Pitre
2015-11-17 16:45           ` Chris Brandt
2015-11-17 16:57             ` Nicolas Pitre
2015-11-18  2:09               ` Chris Brandt
2015-11-18  3:17                 ` Nicolas Pitre
2015-11-18  8:30                   ` Arnd Bergmann [this message]
2015-11-18 15:28                     ` Chris Brandt
2015-11-18 15:16                   ` Chris Brandt
2015-11-18 17:07                     ` Nicolas Pitre
2015-11-18 19:36                       ` Chris Brandt
2015-11-18 19:44                         ` Nicolas Pitre
2015-11-18 20:00                           ` Chris Brandt
2015-11-17 17:33           ` Russell King - ARM Linux
2016-02-01 17:52     ` [PATCH v4] " Chris Brandt
2016-02-01 19:12       ` Nicolas Pitre
2016-02-01 19:41         ` Chris Brandt
2016-02-01 20:23           ` Nicolas Pitre
2016-02-02 17:05             ` Chris Brandt
2016-02-02 17:19       ` [PATCH v5] " Chris Brandt
2016-02-02 17:35         ` Nicolas Pitre

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=5236157.AUJjCLOEeJ@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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