[PATCH V5 0/5] Enable crashdump collection support for IPQ9574

Poovendhan Selvaraj posted 5 patches 2 years, 6 months ago
There is a newer version of this series
.../bindings/firmware/qcom,scm.yaml           |  1 +
.../devicetree/bindings/mfd/qcom,tcsr.yaml    |  1 +
arch/arm64/boot/dts/qcom/ipq9574.dtsi         | 25 +++++++++++++++++++
drivers/firmware/qcom_scm.c                   | 21 ++++++++++++----
4 files changed, 43 insertions(+), 5 deletions(-)
[PATCH V5 0/5] Enable crashdump collection support for IPQ9574
Posted by Poovendhan Selvaraj 2 years, 6 months ago
Crashdump collection is enabled based on the DLOAD bit in the TCSR register.
This bit is set during bootup and clearing during shutdown. During crash,
dload bit is not cleared, due to which uboot starts crashdump collection.

Enable the support for download mode to collect the crashdumps if
system crashes, to debug crashes extensively.

During the bootup, bootloaders initialize the SMEM. However the bootup
after crash, SMEM will not be initialized again. If the memory for the
SMEM is not reserved, linux consumes that region, which leads to the
loss of SMEM data. So, during the next bootup after crash, bootloaders
will hang due to invalid data present in the SMEM region. Due to this,
added the SMEM support along with crashdump collection series.

This patch series adds the support for crashdump collection.

DTS patch depends on the IPQ9574 baseport series
	https://lore.kernel.org/linux-arm-kernel/20230214163116.9924-1-quic_devipriy@quicinc.com/

V5:
	- change logs are added to the respective patches.

V4 can be found at
	https://lore.kernel.org/linux-arm-kernel/20230214051414.10740-1-quic_poovendh@quicinc.com/

V3 can be found at
	https://lore.kernel.org/linux-arm-msm/20230208053332.16537-1-quic_poovendh@quicinc.com/

Changes in V2:
	- rebased on linux-next/master
	- dropped co-developed by tag wherever applicable
	- V1 can be found at
	  https://lore.kernel.org/linux-arm-kernel/20230113160012.14893-1-quic_poovendh@quicinc.com/

Poovendhan Selvaraj (5):
  dt-bindings: scm: Add compatible for IPQ9574
  dt-bindings: mfd: Add the tcsr compatible for IPQ9574
  arm64: dts: qcom: ipq9574: Enable the download mode support
  arm64: dts: qcom: ipq9574: Add SMEM support
  firmware: scm: Modify only the DLOAD bit in TCSR register for download
    mode

 .../bindings/firmware/qcom,scm.yaml           |  1 +
 .../devicetree/bindings/mfd/qcom,tcsr.yaml    |  1 +
 arch/arm64/boot/dts/qcom/ipq9574.dtsi         | 25 +++++++++++++++++++
 drivers/firmware/qcom_scm.c                   | 21 ++++++++++++----
 4 files changed, 43 insertions(+), 5 deletions(-)


base-commit: 509583475828c4fd86897113f78315c1431edcc3
-- 
2.17.1
Re: (subset) [PATCH V5 0/5] Enable crashdump collection support for IPQ9574
Posted by Bjorn Andersson 2 years, 5 months ago
On Thu, 16 Feb 2023 17:30:07 +0530, Poovendhan Selvaraj wrote:
> Crashdump collection is enabled based on the DLOAD bit in the TCSR register.
> This bit is set during bootup and clearing during shutdown. During crash,
> dload bit is not cleared, due to which uboot starts crashdump collection.
> 
> Enable the support for download mode to collect the crashdumps if
> system crashes, to debug crashes extensively.
> 
> [...]

Applied, thanks!

[1/5] dt-bindings: scm: Add compatible for IPQ9574
      commit: 81ac39144bf65c5f8ee00e61308fe1f3399b347c

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>