Commit Graph

28 Commits

Author SHA1 Message Date
Shudan Liu
30a9789d29
Fix build issue that compiler options treat warnning as a error
type defaults to 'int' in declaration of 'md_align_offset'.
[-Werror=implicit-int].
97 | static md_align_offset;.

Change-Id: I909ad4aaa4a20e9c6291798777ebf197beb61160
Signed-off-by: Shudan Liu <quic_shudan@quicinc.com>
2024-06-29 10:57:30 +03:00
qctecmdr
4bf33cb3ab Merge "soc: qcom: minidump_log: Protect md_dump_slabinfo under SLUB_DEBUG" 2024-01-21 20:36:18 -08:00
Rohit Agarwal
ae146b9a20 soc: qcom: minidump_log: Protect md_dump_slabinfo under SLUB_DEBUG
Protect md_dump_slabinfo call only if SLUB_DEBUG is enabled.

Change-Id: I1f703e039517dd24fad303f830a6a30a3f32c3f7
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
2024-01-19 14:06:33 +05:30
Rohit Agarwal
b6d7ae331e soc: qcom: Don't print thread info for arm arch
Don't print thread info for arm arch as it is not supported
for 32 bit architecture.

Change-Id: I9327675d85670fed78e1778c993ab6fa574c972a
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
2023-12-19 13:54:47 +05:30
Deepak Dimri
9f0b6f9c8f minidump: Add support for !CONFIG_SMP kernel
__per_cpu variables are only applicable for the systems with multiple cpu
Minidump code without any check for same was causing the kernel compilation
to fail for the single core cpu where __per_cpu symbols are not applicable
so added conditional compilation to the __per_cpu code based on CONFIG_SMP.

Change-Id: I626fc3c47fd9600608ea721ef6f8811110e1ee1d
Signed-off-by: Deepak Dimri <ddimri@codeaurora.org>
2021-06-14 11:37:41 -07:00
Tengfei Fan
905e945fab soc: qcom: use MODULES_END instead of KIMAGE_VADDR
Because of KIMAGE_VADDR is not defined by ARM32, so in order to
support minidump function on ARM32, so use MODULES_END instead
of KIMAGE_VADDR, because MODULES_END are defined by ARM64 and
ARM32.

Change-Id: Ie0d990baa17a207ceb7ed56faa9b5256f31a3e17
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
2021-06-14 11:36:34 -07:00
qctecmdr
b60ed81b16 Merge "soc: qcom: Add rodata section dump in minidump" 2020-12-22 02:45:57 -08:00
Huang Yiwei
b4714026eb soc: qcom: Add rodata section dump in minidump
Since ro_after_init section content is changed during init, dump
this section also in minidump to provide more debug info.

Change-Id: I7fba1271ac4b6930bfde7bc3aafd43936d81c5ae
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
2020-11-19 15:55:26 +08:00
Huang Yiwei
2e6e946cef soc: qcom: minidump: Change the way to locate log_buf
Use the exported function instead of kallsyms_lookup to get
log_buf location, this can save a lot of time during boot up.

Change-Id: I9ec242ad6edfc3ba101198a5c1ed15bb5ad085a0
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
2020-11-11 16:31:18 +08:00
Neeraj Upadhyay
286fb48b3d soc: qcom: Conditional compile page/slub minidumps
Put page owner and slub debug entries under conditional
flag, to avoid compilation issues.

Change-Id: I2a0c20f7bc9158e7a52e58c6a28a8f0859e83983
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-23 23:22:30 +05:30
qctecmdr
87b8339dff Merge "soc: qcom: Correct idle task check for stack capture" 2020-10-09 19:37:41 -07:00
Neeraj Upadhyay
2b27a3a55f soc: qcom: Correct idle task check for stack capture
Correct the idle task check, to be done on 'next'
task, instead of current task, while registering
current task's stack.

Change-Id: I8c4fde434b3eca0543c5748234ebabbd40da8672
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-10-07 17:23:37 +05:30
Neeraj Upadhyay
2a38d35e3c soc: qcom: Create a zero filled initial buffer for ftrace/boot log
Use kzalloc() to create a zero filled initial buffer for
ftrace minidump and boot logs.

Change-Id: I1655ad4bafea35335256c0f5eb9d7bf432c675f7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-30 10:45:48 +05:30
Neeraj Upadhyay
047ca2390b soc: qcom: Add a die notifier for qcom watchdog
To give sufficient time to die notifier to complete
their work, add a watchdog die notifier, to reset the
watchdog. Also, increase priority of watchdog panic
notifier and make minidump oops notifiers run after
watchdog oops notifiers.

Change-Id: Ifc53cc5c3b1ecc1554a971b9f2334319cad62bfd
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-18 12:23:57 +05:30
Neeraj Upadhyay
b6e6912193 Minidump: Dump only accessible pages data
Check for accessible pages, before capturing the
page context, while dumping pointer data, for
CPU registers.

Change-Id: If7f38f0e3cb12e5c0ad85f8ed3140ce098108f62
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-15 12:01:01 +05:30
Vijayanand Jitta
796c864c72 soc: qcom: Enable slabowner support in minidump
Register and dump slabowner on kernel panic to minidump
table.

Change-Id: I1644ead8ce75ddfca7181ccf102dedabf42c6ad7
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-10 11:48:20 +05:30
Vijayanand Jitta
3f17f5a3dc soc: qcom: Enable pageowner support in minidump
Register and dump pageowner on kernel panic to minidump
table.

Change-Id: I410fe9a6e875e1485bd2e9d0ad5798015d2ce3e6
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-10 11:34:13 +05:30
Vijayanand Jitta
65caff8352 soc: qcom: Enable slabinfo support in minidump
Register and dump slabinfo on kernel panic to minidump
table.

Change-Id: I8e2eabf63233bdb0039a7c7c962b980fba2e21ef
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-07 09:23:52 -07:00
Vijayanand Jitta
2ae883be00 soc: qcom: Enable meminfo support in minidump
Register and dump meminfo on kernel panic to minidump
table.

Change-Id: I367d09ce8aabf4feda6d352411d9e10038a37ff9
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2020-09-07 09:23:42 -07:00
Neeraj Upadhyay
1f4340c001 soc: qcom: Add module info registration to minidump
Add support for dumping active modules information,
in minidump registered region.

Change-Id: Id8e81ea7beae425a1a0f68f91a8cf9aa093b8011
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:46 -07:00
Neeraj Upadhyay
831a64e11d soc: qcom: Dump cpu registers content during panic
Add minidump entry and dump memory around addresses
contained in registers in panic.

Change-Id: Id4857e3b08838838d8aa3a51cb9d6961be37b579
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:41 -07:00
Neeraj Upadhyay
f8a6a88e57 soc: qcom: Add minidump collection on panic
Add minidump collection for cpu runqueues, on panic.

Change-Id: Ib9d313c25cb53547fff075587b3fdd9297a74756
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 05:08:36 -07:00
Neeraj Upadhyay
52a0d3dcb7 soc: qcom: Enable ftrace support in minidump
Register and dump ftrace buffer on kernel panic, to minidump
table. The dumps are collected in parsed format.

Change-Id: I10605467d2b566425cc2cb4fd67dbc59fcd592e7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-07 17:36:17 +05:30
Neeraj Upadhyay
4aa9d65d44 Minidump: Add registration/update support for suspend context
Add support for registering (and updating) suspend context in
minidump. This is helpful for cases, where suspend/resume
path is stuck.

Change-Id: I7ea9d4bcba85a4a0a2336279a3ffade918d1bd77
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-04 03:39:52 -07:00
Lingutla Chandrasekhar
c2757a4d9c Minidump: Add support for cpu current stack
Currently cpu's current stack are being dumped only in
panic path, which is not always helpful. So extend it to
be always dumped for any type of reset reasons.

For every task switch of cpu, update the minidump table with
latest stack. so that we can reconstruct callstack of cpu
for any type of resets.

Change-Id: Ia57a8e0473d3706efc9a88c91fb1dd60523648ad
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-04 03:38:58 -07:00
Lingutla Chandrasekhar
465231e616 Minidump: Add update region support for minidump regions
Add support to update client's entry physical/virtual addresses,
which is useful for DLKM, dynamic address changing clients.

Currently, msm_minidump_add_region() returns 0 on success, instead
of that, return 'region number' of the entry in the minidump table.

So clients who wants to update their address in future, needs to
book keep their entry in minidump table.

Change-Id: I03abbbd87bf6d2e11cf637525412d352772821cf
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-04 15:41:56 +05:30
Neeraj Upadhyay
b76161f6ac soc: qcom: Register irq stacks with minidump
Register irq stacks, so that irq context is correctly
captured in minidumps.

Change-Id: Iabafe0464961a0c25164d66a186846290fbfcafb
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-03 23:53:26 -07:00
Elliot Berman
6f016c2e4a soc: qcom: Add snapshot of minidump
Add snapshot of minidump as of commit <f94ba33e3b90> ("Merge "usb:
dwc3-msm: Fix GDSC collapse in host mode bus suspend"").

Change-Id: Ie322154aefa3b5d482549188096dc613bde1badf
[eberman@codeaurora.org: minidump Kconfig to tristate]
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-12-18 16:31:45 -08:00