From cb88759107292b4bf36d13c73129add580d4e26e Mon Sep 17 00:00:00 2001 From: Michel Lespinasse Date: Tue, 28 Jan 2014 05:06:22 -0800 Subject: [PATCH] firmware: google memconsole driver fixes The google memconsole driver is currently broken upstream, as it tries to read memory that is described as reserved in /proc/iomem, by dereferencing a pointer obtained through phys_to_virt(). This triggers a kernel fault as such regions are unmapped after early boot. The proper workaround is to use ioremap_cache() / iounmap() around such accesses. As some unrelated changes, I also converted some printks to use pr_info() and added some missing __init annotations. Tested: booted dbg build, verified I could read /sys/firmware/log Signed-off-by: Michel Lespinasse Acked-by: Mike Waychison Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed