summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-11-10 10:45:18 +0100
committerPaul Mundt <lethal@linux-sh.org>2010-11-10 12:51:13 +0100
commit108409a8a4e325db38f27258da68d7207a0ad433 (patch)
tree6f71393049e8da262710ad6d78c61195ac2ccaf0 /drivers
parentsisfb: limit POST memory test according to PCI resource length (diff)
downloadlinux-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')
-rw-r--r--drivers/video/omap2/vram.c12
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;
}