debug: improve ftrace_ramoops for io trace [2/2]
authorJianxin Pan <jianxin.pan@amlogic.com>
Wed, 3 Apr 2019 11:16:50 +0000 (19:16 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 17 Apr 2019 06:43:49 +0000 (23:43 -0700)
commit715be69c3dc4d124970eb55860e7ae2cc41a2554
tree4151af47a79360cb7f507a82d5347299915de978
parentc5801145d301e38f7f59e5edf79ca588ca14e882
debug: improve ftrace_ramoops for io trace [2/2]

PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
21 files changed:
MAINTAINERS
arch/arm/include/asm/io.h
arch/arm64/include/asm/io.h
arch/arm64/kernel/io.c
drivers/amlogic/debug/Kconfig
drivers/amlogic/debug/Makefile
drivers/amlogic/debug/debug_ftrace_ramoops.c [new file with mode: 0644]
drivers/amlogic/iomap/iomap.c
drivers/amlogic/media/common/arch/registers/register_map.c
drivers/amlogic/media/common/arch/registers/register_ops_m8.c
drivers/amlogic/uart/meson_uart.c
drivers/irqchip/irq-gic.c
fs/pstore/ftrace.c
fs/pstore/inode.c
fs/pstore/internal.h
fs/pstore/ram.c
fs/pstore/ram_core.c
include/linux/amlogic/debug_ftrace_ramoops.h [new file with mode: 0644]
include/linux/amlogic/iomap.h
include/linux/pstore_ram.h
lib/ioremap.c