Per Fransson | 1 Nov 17:36 2010

[RFC 0/2] Selective identity mapping for kexec

Hi,

I would appreciate your input on some kexec related changes.

When restarting using the kernel kexec functionality the MMU needs to be turned off.
Any code which does this needs to use identity mapped addresses to get
reliable results. In the ARM kexec case this identity mapping is done:

- using the page table of the current task

- for all addresses normally used by user space, i.e. 0x00000000-PAGE_OFFSET

If kexec is used at a kernel crash to collect a core dump this means that we lose important information.

This is what these patches do:

* Actually turn off the MMU, which has been omitted by mistake, see this post:

    http://lists.infradead.org/pipermail/linux-arm-kernel/2010-July/019631.html

* Set up a more selective identity mapping

* Restore the old mapping once the MMU is off

The patch was generated from a linux-next 20101028 with these additional related patches which are in the pipeline:

http://dev.omapzoom.org/?p=santosh/kernel-omap4-base.git;a=commit;h=ae360a78f41164e7f9c4cf846696b5b6d8dae5c8
http://dev.omapzoom.org/?p=santosh/kernel-omap4-base.git;a=commit;h=2fd8658931193599c867fd6974fa184ec34af16c
http://dev.omapzoom.org/?p=santosh/kernel-omap4-base.git;a=commit;h=ae6948048c417d429b8a0f85fad13e483f7cc1a3

(Continue reading)

Per Fransson | 1 Nov 17:36 2010

[RFC 1/2] Turn off MMU in cpu_v7_reset

Signed-off-by: Per Fransson <per.xx.fransson@...>
---
 arch/arm/mm/proc-v7.S |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index 2b5b20b..b249143 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
 <at>  <at>  -61,6 +61,9  <at>  <at>  ENDPROC(cpu_v7_proc_fin)
  */
 	.align	5
 ENTRY(cpu_v7_reset)
+	mrc	p15, 0, ip, c1, c0, 0		 <at>  ctrl register
+	bic	ip, ip, #0x0001			 <at>  ...............m
+	mcr	p15, 0, ip, c1, c0, 0		 <at>  ctrl register
 	mov	pc, r0
 ENDPROC(cpu_v7_reset)

--

-- 
1.7.2.2
Per Fransson | 1 Nov 17:36 2010

[RFC 2/2] Selective MMU identity mapping for kexec

Signed-off-by: Per Fransson <per.xx.fransson@...>
---
 arch/arm/kernel/machine_kexec.c   |   27 +++++++++++++++++++++-
 arch/arm/kernel/relocate_kernel.S |   23 +++++++++++++++++++
 arch/arm/mm/mmu.c                 |   44 +++++++++++++++++++++++++++++++++++++
 arch/arm/mm/proc-v7.S             |    1 +
 4 files changed, 94 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index 3a8fd51..d5bb12f 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
 <at>  <at>  -17,12 +17,20  <at>  <at>  extern const unsigned char relocate_new_kernel[];
 extern const unsigned int relocate_new_kernel_size;

 extern void setup_mm_for_reboot(char mode);
+extern void identity_map(unsigned long, pgd_t*, pgd_t**);

 extern unsigned long kexec_start_address;
 extern unsigned long kexec_indirection_page;
 extern unsigned long kexec_mach_type;
 extern unsigned long kexec_boot_atags;

+typedef struct {
+	pgd_t *ptr;
+	pgd_t store;
+} kexec_mmu_ent_t;
+
+extern kexec_mmu_ent_t kexec_mmu_ents[4];
+
(Continue reading)

Jamie Bennett | 1 Nov 17:42 2010

Linaro 10.11 Release Candidate available

Hi,

We are nearly there! In 9 days the 10.11 Final image will be released 
to the world and in preparation for this the Release Candidate image is 
now available. Please download and test as much as possible to ensure
the final release is of the highest quality.

This milestone release is the first to utilise the new build process of
separate hardware packs and generic images. To build a complete image 
one hardware pack and one generic image is combined with the 
linaro-media-create tool. Please take the time to read the installation
instructions for more information:

    http://wiki.linaro.org/Releases/MilestoneBuilds

More Information on this development release as well as download and
installation instructions can be found at:

    http://wiki.linaro.org/Releases/1011/ReleaseCandidate

More information on Linaro in general and the 10.11 plans can be
found at:

 * Homepage: http://www.linaro.org
 * Wiki: http://wiki.linaro.org
 * 10.11: http://wiki.linaro.org/Releases/1011

Also subscribe to the important Linaro mailing lists and join our IRC
channels to stay on top of Linaro developments:

(Continue reading)

Simon Horman | 2 Nov 13:59 2010
Picon

Re: [RFC 0/2] Selective identity mapping for kexec

On Mon, Nov 01, 2010 at 05:36:52PM +0100, Per Fransson wrote:
> Hi,
> 
> I would appreciate your input on some kexec related changes.

Hi,

It would be useful to CC kexec <at> lists.infradead.org on kexec patches.
Also, I seem to be missing patch 1/2. Did it have a different CC list?
Simon Horman | 2 Nov 14:05 2010
Picon

Re: [RFC 0/2] Selective identity mapping for kexec

On Tue, Nov 02, 2010 at 09:59:10PM +0900, Simon Horman wrote:
> On Mon, Nov 01, 2010 at 05:36:52PM +0100, Per Fransson wrote:
> > Hi,
> > 
> > I would appreciate your input on some kexec related changes.
> 
> Hi,
> 
> It would be useful to CC kexec <at> lists.infradead.org on kexec patches.
> Also, I seem to be missing patch 1/2. Did it have a different CC list?

Scratch the second comment, I see 1/2 in your second posting of the patches.
Peter Pearse | 2 Nov 16:23 2010

C/C++ eclipse projects for testing Natty eclipse-cdt

Hi list

As part of https://blueprints.edge.launchpad.net/ubuntu/+spec/other-linaro-n-eclipse-cdt

I want to import some extant, known good C and/or C++ eclipse projects
into the Natty CDT for testing.

Can anyone point me at any?

Regards

Peter
Paul Larson | 2 Nov 22:04 2010

Re: C/C++ eclipse projects for testing Natty eclipse-cdt

On Tue, Nov 2, 2010 at 10:23 AM, Peter Pearse <peter.pearse <at> linaro.org> wrote:
Hi list

As part of https://blueprints.edge.launchpad.net/ubuntu/+spec/other-linaro-n-eclipse-cdt

I want to import some extant, known good C and/or C++ eclipse projects
into the Natty CDT for testing.

Can anyone point me at any?
I don't know much about eclipse, and have never used cdt, but I found a few things that might be worth checking out:

http://forge.mysql.com/wiki/Eclipse/CDT_on_Linux_and_Mac_OS_X
This one is linked to from the the page you reference above and seems to be about setting up mysql to build under cdt

http://sourceforge.net/projects/ffmpeg-examples/
Nothing elaborate here, just some examples with ffmpeg.  But they are supposed to build under Linux, and the author said they were done in cdt.  It may be worth searching more on places like sourceforge for things like this.

http://sourceforge.net/projects/gcov-eclipse/
You mention testing with other plugins.  Not sure how mature this one is, but it sounds like one that would be interesting to test with cdt. :)

-Paul Larson
_______________________________________________
linaro-dev mailing list
linaro-dev@...
http://lists.linaro.org/mailman/listinfo/linaro-dev
Amit Kucheria | 3 Nov 07:37 2010

Getting code into mainline for 11.05

Hi,

As discussed at UDS/LDS, there is a very good chance that the next
Linaro release will be based on kernel version 2.6.38.

What that means is that we still have 4-6 weeks to get some code into
various maintainer trees before the 2.6.38 merge window opens in early
January. If you are working on consolidation of some feature across
SoCs, it might be nice to get this code in before then so that we
don't have to backport patches for the release.

/Amit
Gadiyar, Anand | 3 Nov 20:00 2010
Picon

Re: Pull request (v2) for OMAP4 Pandaboard support

(+linaro-dev@... Apologies for not copying the list
earlier. I thought I had added to CC)

On Wed, Nov 3, 2010 at 9:59 PM, Anand Gadiyar <gadiyar@...> wrote:
> Nicolas,
>
> This is v2 of a pull-request I sent a few minutes ago for getting OMAP4
> Pandaboard support on linux-linaro-2.6.35. Change from v1 is a different
> branch being used, and the commits were cherry picked with the -x option.
>
> MMC support is still work in progress. I'll try and get that working ASAP,
> so we can have a slightly more useful kernel.
>
> - Anand
>
> The following changes since commit 5c1ae6d7d1035a335cc66b1636ed7bdff7fd0e7b:
>  Felipe Contreras (1):
>        video: omap: vram: remove from normal memory
>
> are available in the git repository at:
>
>  git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb.git for-linaro-v2
>
> David Anders (1):
>      omap4: Panda: Add DEBUG_LL support
>
> Santosh Shilimkar (3):
>      omap4: Update id.c and cpu.h for es2.0
>      omap4: l2x0: Fix init parameter for es2.0
>      omap4: Fix bootup crash observed with higher CPU clocks
>
>  arch/arm/mach-omap2/id.c                     |   38
> +++++++++++++++++++++-----
>  arch/arm/mach-omap2/omap4-common.c           |   10 +++++--
>  arch/arm/plat-omap/dmtimer.c                 |    2 +-
>  arch/arm/plat-omap/include/plat/cpu.h        |    5 +++-
>  arch/arm/plat-omap/include/plat/uncompress.h |    1 +
>  5 files changed, 44 insertions(+), 12 deletions(-)
>

Gmane