diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-11-10 10:45:18 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-10 12:51:13 +0100 |
commit | 108409a8a4e325db38f27258da68d7207a0ad433 (patch) | |
tree | 6f71393049e8da262710ad6d78c61195ac2ccaf0 /drivers/video/omap2/vram.c | |
parent | sisfb: limit POST memory test according to PCI resource length (diff) | |
download | linux-108409a8a4e325db38f27258da68d7207a0ad433.tar.xz linux-108409a8a4e325db38f27258da68d7207a0ad433.zip |
OMAP: VRAM: improve VRAM error prints
Improve the error prints to give more information about the offending
address & size.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/omap2/vram.c')
-rw-r--r-- | drivers/video/omap2/vram.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/video/omap2/vram.c b/drivers/video/omap2/vram.c index fed2a72bc6b6..bb5ee0663e65 100644 --- a/drivers/video/omap2/vram.c +++ b/drivers/video/omap2/vram.c @@ -554,9 +554,15 @@ void __init omap_vram_reserve_sdram_memblock(void) size = PAGE_ALIGN(size); if (paddr) { - if ((paddr & ~PAGE_MASK) || - !memblock_is_region_memory(paddr, size)) { - pr_err("Illegal SDRAM region for VRAM\n"); + if (paddr & ~PAGE_MASK) { + pr_err("VRAM start address 0x%08x not page aligned\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; } |