[Patch v6 01/12] firmware: qcom_scm: Refactor code to support multiple dload mode

2023-11-24 Thread Mukesh Ojha
Currently on Qualcomm SoC, download_mode is enabled if CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT is selected. Refactor the code such that it supports multiple download modes and drop CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT config instead, give interface to set the download mode from module parameter. S

[Patch v6 00/12] Add Qualcomm Minidump driver related support

2023-11-24 Thread Mukesh Ojha
Hi, Just for information, We have recently presented at LPC2023 Abstract and PDF here: https://lpc.events/event/17/contributions/1468/ Video: 07:09:00 hrs at https://www.youtube.com/watch?v=68EBBgEltXA This series should be applied on top of below series of some SCM patches sent here. https:/

[Patch v6 04/12] soc: qcom: Add qcom_rproc_minidump module

2023-11-24 Thread Mukesh Ojha
Add qcom_rproc_minidump module in a preparation to remove minidump specific code from driver/remoteproc/qcom_common.c and provide needed exported API, this as well helps to abstract minidump specific data layout from qualcomm's remoteproc driver. It is just a copying of qcom_minidump() functionali

[Patch v6 02/12] firmware/qcom: qcom_scm: Add multiple download mode support

2023-11-24 Thread Mukesh Ojha
Currently, scm driver only supports full dump when download mode is selected. Add support to enable minidump as well as enable it along with fulldump. Signed-off-by: Mukesh Ojha --- drivers/firmware/qcom/qcom_scm.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/

[Patch v6 03/12] docs: qcom: Add qualcomm minidump guide

2023-11-24 Thread Mukesh Ojha
Add the qualcomm minidump guide for the users which tries to cover the dependency, API use and the way to test and collect minidump on Qualcomm supported SoCs. Signed-off-by: Mukesh Ojha --- Documentation/admin-guide/index.rst | 1 + Documentation/admin-guide/qcom_minidump.rst | 272 ++

[Patch v6 05/12] remoteproc: qcom_q6v5_pas: Use qcom_rproc_minidump()

2023-11-24 Thread Mukesh Ojha
Now, as all the minidump specific data structure is moved to minidump specific files and implementation wise qcom_rproc_minidump() and qcom_minidump() exactly same and the name qcom_rproc_minidump make more sense as it happen to collect the minidump for the remoteproc processors. So, let's use qcom

[Patch v6 07/12] init: export linux_banner data variable

2023-11-24 Thread Mukesh Ojha
Some debug loadable module like minidump is interested in knowing the kernel version against which it is being build. Let's export linux_banner. Signed-off-by: Mukesh Ojha --- include/linux/init.h | 3 +++ init/version-timestamp.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/inclu

[Patch v6 06/12] remoteproc: qcom: Remove minidump related data from qcom_common.c

2023-11-24 Thread Mukesh Ojha
As minidump specific data structure and functions move under config QCOM_RPROC_MINIDUMP, so remove minidump specific data from driver/remoteproc/qcom_common.c . Signed-off-by: Mukesh Ojha --- drivers/remoteproc/qcom_common.c | 160 --- 1 file changed, 160 dele

[Patch v6 10/12] pstore/ram: Add dynamic ramoops region support through commandline

2023-11-24 Thread Mukesh Ojha
The reserved memory region for ramoops is assumed to be at a fixed and known location when read from the devicetree. This may not be required for something like Qualcomm's minidump which is interested in knowing addresses of ramoops region but it does not put hard requirement of address being fixed

[Patch v6 09/12] MAINTAINERS: Add entry for minidump related files

2023-11-24 Thread Mukesh Ojha
Add the entries into maintainer file for all the minidump related modules. Signed-off-by: Mukesh Ojha --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f2b2cd60eb20..53b9f22816c2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18016,6

[Patch v6 12/12] soc: qcom: register ramoops region with APSS minidump

2023-11-24 Thread Mukesh Ojha
Register ramoops region with APSS minidump so that these region gets captured on system crash. Signed-off-by: Mukesh Ojha --- drivers/soc/qcom/qcom_minidump.c | 62 1 file changed, 62 insertions(+) diff --git a/drivers/soc/qcom/qcom_minidump.c b/drivers/

[Patch v6 11/12] pstore/ram: Add ramoops ready notifier support

2023-11-24 Thread Mukesh Ojha
Client like minidump, is only interested in ramoops region addresses/size so that it could register them with its table and also it is only deals with ram backend and does not use pstorefs to read the records. Let's introduce a client notifier in ramoops which gets called when ramoops driver probes

[Patch v6 08/12] soc: qcom: Add Qualcomm APSS minidump kernel driver

2023-11-24 Thread Mukesh Ojha
Minidump is a best effort mechanism to collect useful and predefined data for first level of debugging on end user devices running on Qualcomm SoCs. It is built on the premise that System on Chip (SoC) or subsystem part of SoC crashes, due to a range of hardware and software bugs. Hence, the abilit