Commit Graph
10 Commits
Author SHA1 Message Date
a17671 ece2bbacc3 Add watchdog_cpu_dump and tzlog_dump support on 5.4
Add watchdog_cpu context and tzlog dump support
For 5.4 or later kernel, there is no way to browse the
Symbols without breaking the GKI rules
So read the ttbl1_el1 to get the init_mm->pgd instead of
The old symbols browsing
Update module dependencies

Change-Id: I26aca73f4a879f9504ecd5443c458e154cf48fe9
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1975101
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2022-01-11 02:28:00 -06:00
xizx bc00b7fe1a mmi_annotate: add unpersist annotate memory region to minidump
For the minidump region of mmi_annotate, should record volatile memory
instead of persist memory when platform doesn't support persist memory.

Change-Id: I94afe0b8ff5eda3686e2957f00747a4cb4582a89
Reviewed-on: https://gerrit.mot.com/2160648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2022-01-03 22:50:21 -06:00
xizx 15f84bb003 mmi_annotate: write info mem when persist mem unsupported
From 8450 platform, Qcom doesn't support warmreset, so pstore memory
cannot work again. All persist memory data should be writtle into
memory.

Change-Id: I9f20a35b50a10c69b7df96037a27b965e130b5f9
Reviewed-on: https://gerrit.mot.com/2152098
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-12-23 00:54:01 -06:00
qianlong 9b51ad3de8 mmi_annotate: support minidump store
Support minidump feature, store annotate mem
into md_ANNOTATE.BIN.

Change-Id: I70cf17c9a965182b7b56ca45c20f64609a81c1af
Signed-off-by: qianlong <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2031194
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2021-08-04 06:42:39 -05:00
xizx f9b4963d4d mmi_annotate: support build in kernel-5.10
build error:
make[2]: Entering directory '/home/xizx/work/moto/8450/pine_20210507_08_userdebug/out/msm-waipio-waipio-gki/common'
  CC [M]  /home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:229:15: error: incompatible pointer types passing 'const struct file_operations *' to parameter of type 'const struct proc_ops *' [-Werror,-Wincompatible-pointer-types]
                0444, NULL, &mmi_annotate_operations);
                            ^~~~~~~~~~~~~~~~~~~~~~~~
/home/xizx/work/moto/8450/pine_20210507_08_userdebug/kernel_platform/common/include/linux/proc_fs.h:109:122: note: passing argument to parameter 'proc_ops' here
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
                                                                                                                         ^
1 error generated.

Change-Id: I6bc25e9e74cae7582862b83b29796538271e9406
Reviewed-on: https://gerrit.mot.com/1949924
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xianshan Wang <wangxs8@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2021-05-28 05:28:06 -05:00
xizx be58275032 mmi_annotate: vmap the physical ram in kernel 5.4
The dma_remap() is not supported again in GKI kernel 5.4, so use vmap
to remap the reserved memory.

build error:
  make[1]: Entering directory `/home/xizx/work/moto/8350/8350_mainline_0626_kernel/out/target/product/jordan/obj/kernel/msm-5.4'
    CC [M]  ../../motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.o
  /home/xizx/work/moto/8350/8350_mainline_0626_kernel/kernel/msm-5.4/../../motorola/kernel/modules/drivers/mmi_annotate/mmi_annotate.c:143:17: error: implicit declaration of function 'dma_remap'

Change-Id: I47a32fdcd98d92428223ec481a90c51875baaac6
Reviewed-on: https://gerrit.mot.com/1651707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2020-07-28 02:14:14 -05:00
Ryan Lattrel 29dfe98601 mmi_annotate: Fix clang compile issues
Fix missing includes and warnings that show up when
building with the clang compiler.

Change-Id: I3eadc724df1598c4c2efe0ca1e18d6a6b7013367
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1401055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Curtis Porter <porterc@motorola.com>
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2019-08-15 21:10:13 +00:00
sunyue5 9ec07a3e00 drivers: fix compile error for 32 bits
change zx% instead of lx% for print pdata->mem_size which type is size_t

Change-Id: I42500d60c02ab75bd27450967aa57f299bb7a13d
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1208529
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Hao Li <lihao24@motorola.com>
2018-07-15 20:40:29 -05:00
Ryan Lattrel 9684c2a207 drivers: mmi_annotate: fix 4.14 build error
Update includes to resolve kernel 4.14 build.

Change-Id: I8236ab966120d42292916ccc2f5177f9e32aa8d6
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1201402
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-07-03 11:19:38 -05:00
Ryan Lattrel f99876f575 modules: create mmi_annotate driver
Add a driver to replace the pstore annotated
region additions in the kernel.

Change-Id: If0fc6e46fe14562e846b8f356e6b75b71ae43307
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1132069
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-04-12 08:31:53 -05:00