Commit 108409a8 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Paul Mundt

OMAP: VRAM: improve VRAM error prints

Improve the error prints to give more information about the offending
address & size.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 32ed3036
...@@ -554,9 +554,15 @@ void __init omap_vram_reserve_sdram_memblock(void) ...@@ -554,9 +554,15 @@ void __init omap_vram_reserve_sdram_memblock(void)
size = PAGE_ALIGN(size); size = PAGE_ALIGN(size);
if (paddr) { if (paddr) {
if ((paddr & ~PAGE_MASK) || if (paddr & ~PAGE_MASK) {
!memblock_is_region_memory(paddr, size)) { pr_err("VRAM start address 0x%08x not page aligned\n",
pr_err("Illegal SDRAM region for VRAM\n"); paddr);
return;
}
if (!memblock_is_region_memory(paddr, size)) {
pr_err("Illegal SDRAM region 0x%08x..0x%08x for VRAM\n",
paddr, paddr + size - 1);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment