Commit Graph

13 Commits

Author SHA1 Message Date
song.han 4e675645ef debug: lockup and panic flow optimize [1/1]
PD#SWPL-144359

Problem:
add debug feature

Solution:
show sysrq't' when rcu stall panic
fiq dump other cpu stack when hardlockup panic
improve watchdog panic notifier priority
disable watchdog when set panic_print

Verify:
s4

Change-Id: I6af43456105a3cf802d54608d62cbb25d327a73e
Signed-off-by: song.han <song.han@amlogic.com>
2023-11-06 14:42:38 +08:00
Huqiang Qin 014c1e6212 wdt: stop watchdog after panic [1/1]
PD#SWPL-143567

Problem:
When debugging, there will be a lot of printing to be
output after the panic, so it is very time-consuming.
In order to prevent the watchdog from causing a reset,
we stop it after panic.

Solution:
Add functions and provide two ways to enable:
1. Add wdt_stop_after_panic=1 to bootargs.
2. echo 1 > /sys/module/amlogic_watchdog/parameters/stop_after_panic

Verify:
T3/T982

Change-Id: I3f54f38f3645b2fb4fdfbbc6016e6f644b91eea3
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-11-06 14:42:36 +08:00
song.han f8e060f879 watchdog: clean watchdog print [1/1]
PD#SWPL-141439

Problem:
clean print message

Solution:
clean watchdog start/stop/timeout message

Verify:
s4_aq222

Change-Id: Ie9c64a042b727bffa748f2114f3bb006ca6475c1
Signed-off-by: song.han <song.han@amlogic.com>
2023-10-07 17:38:10 +08:00
Huqiang Qin 5c856954b1 watchdog: supports dynamic enable and disable [1/1]
PD#SWPL-136243

Problem:
The watchdog needs to be disabled dynamically when debugging

Solution:
You have two ways to disable the watchdog:
1. Add watchdog_enabled=0 to bootargs
2. Execution command: echo false > /sys/kernel/debug/watchdog/enabled

Verify:
SC2/AH212

Change-Id: I774fcb625ab800a8cd6973e2c89f0c00d172da53
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-08-21 00:08:54 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
Hanjie Lin 908c1c3c19 debug: fix iotrace break gki issue [2/3]
PD#SWPL-94447

Problem:
iotrace break gki10

Solution:
modify iotrace still builtin but not break gki10
also enabled DEBUG_PRINTK

Verify:
sc2

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: Iffc6a21f28de871b7289ca671c2c226c40e9a66a
2022-10-15 03:28:18 -07:00
song.han b7fc4f5f71 iotrace: add iotrace function [2/2]
PD#SWPL-92722

Problem:
iotrace miss function

Solution:
add function in iotrace driver,like smc/sched/clk/pw

Verify:
S4D_AP222

Change-Id: Ie59bac5863e5a4420b90d95a0ecae0bcb0584fb6
Signed-off-by: song.han <song.han@amlogic.com>
2022-09-22 22:54:00 -07:00
wanwei.jiang 087c5c79c2 gki: modify select to depends on [1/1]
PD#SWPL-88872

Problem:
modify select to depends on

Solution:
modify select to depends on

Verify:
SC2

Change-Id: I9e295d17f5c03a6c49b001c18129fc1bc0eaee69
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:42 +08:00
Qianggui Song bea44ff9af watchdog: rework single path usage of watchdog feature [1/1]
PD#SWPL-69364

Problem:
watchdog can be operated in both user space and kernel
space simultaneously that make watchdog work in chaos.

Solution:
Make watchdog can only work in one space in GKI environment.

Verify:
s4d_aq222

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: Ia5c8429ade70908fb5999e24f1a7458d8d1d19da
2022-02-27 22:26:30 -07:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
Lei Zhang 19ade02a8e watchdog: support watchdog driver for c2 [1/1]
PD#SWPL-71030

Problem:
support watchdog driver for c2

Solution:
support watchdog driver for c2

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I2892da889e50512c94a32fc122ea4d8911f54046
2022-01-24 01:20:35 -07:00
wanwei.jiang 3162d8a17e watchdog: porting watchdog driver [1/1]
PD#SWPL-69191

Problem:
porting watchdog driver

Solution:
1. porting watchdog driver
2. revert a3ac1039c77651e915d8d7e2d392a73eb6ae4eca
3. define DEFAULT_TIMEOUT 60

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: I21d7358adb96a78508a62aa48dd002e9dc62fe69
2022-01-05 17:25:31 +08:00