Re: OMAP2 not booting in 2.6.27-rc9?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jarkko,

On Thu, 9 Oct 2008, Jarkko Nikula wrote:

> At least N810 hangs somewhere executing local_flush_tlb_all() in
> omap_map_sram. Last printk is before that call.

does the following patch fix the problem for you?

- Paul

Author: Paul Walmsley <paul@xxxxxxxxx>
Date:   Thu Oct 9 07:27:38 2008 -0600

    Commit 1c957036bbd912322793da676d05e169abf24782 breaks booting on
    OMAP2; the SRAM is mapped on top of the L4 interconnect.  This causes
    the system to hang early in boot in omap_map_sram() during a TLB flush.
    Fix by moving SRAM elsewhere in the memory map.
    
    Reported by Jarkko Nikula <jarkko.nikula@xxxxxxxxx>.  This patch is a
    collaboration with Tony Lindgren <tony@xxxxxxxxxxx> and
    Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>.
    
    Tested on 2430SDP.
    
    Signed-off-by: Paul Walmsley <paul@xxxxxxxxx>
    Cc: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx>
    Cc: Jarkko Nikula <jarkko.nikula@xxxxxxxxx>
    Cc: Tony Lindgren <tony@xxxxxxxxxxx>
    Cc: Måns Rullgård <mans@xxxxxxxxx>

diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 853048d..ca4c276 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -37,8 +37,8 @@
 #define OMAP1_SRAM_VA		VMALLOC_END
 #define OMAP2_SRAM_PA		0x40200000
 #define OMAP2_SRAM_PUB_PA	0x4020f800
-#define OMAP2_SRAM_VA		VMALLOC_END
-#define OMAP2_SRAM_PUB_VA	(VMALLOC_END + 0x800)
+#define OMAP2_SRAM_VA		0xe1000000
+#define OMAP2_SRAM_PUB_VA	(OMAP2_SRAM_VA + 0x800)
 #define OMAP3_SRAM_PA           0x40200000
 #define OMAP3_SRAM_VA           0xd7000000
 #define OMAP3_SRAM_PUB_PA       0x40208000

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux