Commit Graph

12 Commits

Author SHA1 Message Date
Huibin Hong 6de3d51dcd soc: rockchip: debug: don't enable Serror when panic
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I5cf12effecefe9cf31113f0453e1f9672f1d868c
2023-11-09 19:07:05 +08:00
Huibin Hong 4217f795ff soc: rockchip: debug: rcu stall and hard lock have own notifier_block
Add rockchip_hardlock_notify to save pc of the cpu that is hard lock,
the pc is used for minidump cpu hard lock stack.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie542d981f3f12ac1eb3a2f425b76780a04f220cf
2023-09-27 18:18:21 +08:00
Tao Huang 19b5bab46b soc: rockchip: Move drivers/staging/android/fiq_debugger/ to drivers/soc/rockchip/fiq_debugger/
drivers/staging/android/ is removed on upstream.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifef3f52f9212cb79a028fc8f56052b156cc428ae
2023-04-19 10:39:50 +08:00
Huibin Hong f8080404df soc: rockchip: debug: rockchip_show_interrupts print all cpu
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I929a9cee5d596a8d9f1280f8232eefc2fecf2f31
2022-12-07 17:37:42 +08:00
Huibin Hong 3bc2463118 soc: rockchip: debug: rockchip_panic_notify_dump_irqs
Dump irqs in one second when hard lock or rcu stall, panic and so on.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ia35d02eef17055bf4f793b72a11c4b7711d81972
2022-08-30 15:49:44 +08:00
Huibin Hong 3095b83bfc soc: rockchip: debug: print pcsr when hardlock or rcu stall
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I7673aa509e15df550fecc3f970ea64c34199a4f9
2022-08-11 20:33:45 +08:00
Huibin Hong bd0d6dbc3f soc: rockchip: debug: fix issue when reading pcsr if cpu is power down
When enable cpu auto power down, reading pcsr causes "synchronous
external abort" when cpu is power down. Disable the SError during
reading pcsr, and skip reading pcsr if cpu is power down.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Id02b998f621daf440a602faf10439612868d731f
2022-05-11 15:20:57 +08:00
Huibin Hong ada1d837e6 soc: rockchip: debug: support pmu pcsr for rk356x
RK356x doesn't support EDPCSR, but support pmupcsr of pmu

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: If588f4cc11909a57ded61937e4266ab7fd3fab17
2020-12-03 19:34:05 +08:00
Huibin Hong d756cc25eb soc: rockchip: debug: support module
1.support module
2.export symbol of rockchip_debug_dump_pcsr,
rockchip_debug_dump_pcsr is called by fiq debugger

Change-Id: I28776fa2f6c34042a3771de82d43f1365bd01f4c
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2020-09-15 19:36:36 +08:00
Huibin Hong c3a11b6021 soc: rockchip: debug: access dbgpcsr when cpu is up
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I8ac1e3dba85c69e6a1febf9e3259bb0417fc6509
2020-04-28 15:05:42 +08:00
Huibin Hong 475d3d26ba soc: rockchip: debug: adjust log print
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I7cc461fde40bc38b23d4a55b090b7a7a45e6f8df
2020-04-08 17:05:41 +08:00
Huibin Hong f901b81c85 soc: rockchip: debug: print dbgpcsr of cpus when panic
Change-Id: I4a3d60986b0bd23d43fa7fd5479b43cb65662996
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2020-04-08 14:38:21 +08:00