All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ramoops appears geared to not support ARM
@ 2011-10-28 23:21 Bryan Freed
  2011-10-28 23:21 ` [PATCH] ramoops: Add support for ARM systems Bryan Freed
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Bryan Freed @ 2011-10-28 23:21 UTC (permalink / raw)
  To: linux-kernel
  Cc: sergiu, akpm, msb, marco.stornelli, seiji.aguchi, Bryan Freed

I had some difficulty in getting ramoops to work on our ARM systems.
The driver maps memory with ioremap() which is supposed to map IO memory,
not physical RAM.  This happens to work on x86 and apparently some other
architectures, but it does not work on ARM.
Specifically, I see this comment in __arm_ioremap_pfn_caller():
	Don't allow RAM to be mapped - this causes problems with ARMv6+

So here is a patch that hacks around the issue using page_is_ram() to
differentiate between the two.

Am I missing something here?
Is ramoops working on any ARM systems yet, and I am just doing something wrong?

My ARM platform reserves a section of RAM for use by ramoops, but it is still
mapped along with the rest of main memory.  This is so /dev/mem can find it
with xlate_dev_mem_ptr().
On x86, I see our BIOS reserves the memory so that it is not counted as main
memory, and it is not mapped until ramoops ioremaps it.

Bryan Freed (1):
  ramoops: Add support for ARM systems.

 drivers/char/ramoops.c |   67 +++++++++++++++++++++++++++++++++++++----------
 1 files changed, 52 insertions(+), 15 deletions(-)

-- 
1.7.3.1


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

end of thread, other threads:[~2011-11-01  8:58 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 23:21 [PATCH] ramoops appears geared to not support ARM Bryan Freed
2011-10-28 23:21 ` [PATCH] ramoops: Add support for ARM systems Bryan Freed
2011-10-29  8:39 ` [PATCH] ramoops appears geared to not support ARM Marco Stornelli
2011-10-29  8:39   ` Marco Stornelli
2011-10-29  9:34   ` Russell King - ARM Linux
2011-10-29  9:34     ` Russell King - ARM Linux
2011-10-29 11:04     ` Marco Stornelli
2011-10-29 11:04       ` Marco Stornelli
2011-10-29 11:55       ` Russell King - ARM Linux
2011-10-29 11:55         ` Russell King - ARM Linux
2011-10-29 12:42         ` Marco Stornelli
2011-10-29 12:42           ` Marco Stornelli
2011-10-29 12:53           ` Russell King - ARM Linux
2011-10-29 12:53             ` Russell King - ARM Linux
2011-10-29 14:22 ` Marco Stornelli
     [not found]   ` <CAEYUcX1PUgniJLqYXKM5pf_9T06OPFg4q0ZUCFc8Deu1J_R9-A@mail.gmail.com>
2011-10-30 11:33     ` Marco Stornelli
2011-10-31  6:03       ` Bryan Freed
2011-10-31  8:57         ` Marco Stornelli
2011-10-31 23:03           ` Bryan Freed
2011-11-01  8:52             ` Marco Stornelli

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.