All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: Fix oops with LPAE and more than 2GB of memory
@ 2015-10-13 23:13 ` Tony Lindgren
  0 siblings, 0 replies; 28+ messages in thread
From: Tony Lindgren @ 2015-10-13 23:13 UTC (permalink / raw)
  To: linux-omap
  Cc: Dmitry Lifshitz, Enric Balletbo Serra, Dr. H. Nikolaus Schaller,
	Grazvydas Ignotas, Benoit Cousson, Javier Martinez Canillas,
	Robert Nelson, Marek Belisko, linux-arm-kernel

On boards with more than 2GB of RAM booting goes wrong with things not working
and we're getting lots of l3 warnings:

WARNING: CPU: 0 PID: 1 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x260/0x384()
44000000.ocp:L3 Custom Error: MASTER MMC6 TARGET DMM1 (Idle): Data Access in User mode during Functional access
...
[<c044e158>] (scsi_add_host_with_dma) from [<c04705c8>] (ata_scsi_add_hosts+0x5c/0x18c)
[<c04705c8>] (ata_scsi_add_hosts) from [<c046b13c>] (ata_host_register+0x150/0x2cc)
[<c046b13c>] (ata_host_register) from [<c046b38c>] (ata_host_activate+0xd4/0x124)
[<c046b38c>] (ata_host_activate) from [<c047f42c>] (ahci_host_activate+0x5c/0x194)
[<c047f42c>] (ahci_host_activate) from [<c0480854>] (ahci_platform_init_host+0x1f0/0x3f0)
[<c0480854>] (ahci_platform_init_host) from [<c047c9dc>] (ahci_probe+0x70/0x98)
[<c047c9dc>] (ahci_probe) from [<c04220cc>] (platform_drv_probe+0x54/0xb4)

Let's fix the issue by enabling ZONE_DMA for LPAE.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/mach-omap2/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index b3a0dff..33d1460 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -49,6 +49,7 @@ config SOC_OMAP5
 	select OMAP_INTERCONNECT
 	select OMAP_INTERCONNECT_BARRIER
 	select PM_OPP if PM
+	select ZONE_DMA if ARM_LPAE
 
 config SOC_AM33XX
 	bool "TI AM33XX"
@@ -78,6 +79,7 @@ config SOC_DRA7XX
 	select OMAP_INTERCONNECT
 	select OMAP_INTERCONNECT_BARRIER
 	select PM_OPP if PM
+	select ZONE_DMA if ARM_LPAE
 
 config ARCH_OMAP2PLUS
 	bool
-- 
2.1.4

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

end of thread, other threads:[~2015-10-19 15:46 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 23:13 [PATCH] ARM: OMAP2+: Fix oops with LPAE and more than 2GB of memory Tony Lindgren
2015-10-13 23:13 ` Tony Lindgren
2015-10-14  3:46 ` Lokesh Vutla
2015-10-14  3:46   ` Lokesh Vutla
2015-10-14 16:02   ` Tony Lindgren
2015-10-14 16:02     ` Tony Lindgren
2015-10-15  7:55     ` Lokesh Vutla
2015-10-15  7:55       ` Lokesh Vutla
2015-10-15 14:05       ` Tony Lindgren
2015-10-15 14:05         ` Tony Lindgren
2015-10-15 15:14         ` Lokesh Vutla
2015-10-15 15:14           ` Lokesh Vutla
2015-10-16 19:23           ` Tony Lindgren
2015-10-16 19:23             ` Tony Lindgren
2015-10-19 13:56             ` Lokesh Vutla
2015-10-19 13:56               ` Lokesh Vutla
2015-10-19 15:46               ` Tony Lindgren
2015-10-19 15:46                 ` Tony Lindgren
2015-10-14  9:15 ` Arnd Bergmann
2015-10-14  9:15   ` Arnd Bergmann
2015-10-14 16:17   ` Tony Lindgren
2015-10-14 16:17     ` Tony Lindgren
2015-10-14 20:12     ` Arnd Bergmann
2015-10-14 20:12       ` Arnd Bergmann
2015-10-14 20:28       ` Suman Anna
2015-10-14 20:28         ` Suman Anna
2015-10-14 20:44         ` Tony Lindgren
2015-10-14 20:44           ` Tony Lindgren

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.