mbox series

[V7,0/2] Enable crashdump collection support for IPQ9574

Message ID 20230511075814.2370-1-quic_poovendh@quicinc.com
Headers show
Series Enable crashdump collection support for IPQ9574 | expand

Message

Poovendhan Selvaraj May 11, 2023, 7:58 a.m. UTC
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-msm/20230425084010.15581-1-quic_devipriy@quicinc.com/
V7:
	- [1/2] Sorted the firmware node alphabetically
	- [2/2] No changes

V6 can be found at
	  https://lore.kernel.org/linux-arm-msm/20230328102013.21361-1-quic_poovendh@quicinc.com/
	  
V5 can be found at
	  https://lore.kernel.org/linux-arm-kernel/20230216120012.28357-1-quic_poovendh@quicinc.com/

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 (2):
  arm64: dts: qcom: ipq9574: Enable the download mode support
  arm64: dts: qcom: ipq9574: Add SMEM support

 arch/arm64/boot/dts/qcom/ipq9574.dtsi | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)


base-commit: aabe491169befbe5481144acf575a0260939764a

Comments

Bjorn Andersson May 15, 2023, 3:33 a.m. UTC | #1
On Thu, 11 May 2023 13:28:12 +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/2] arm64: dts: qcom: ipq9574: Enable the download mode support
      commit: 590db411752dd8ef6504113643fc6c4f68660ffd
[2/2] arm64: dts: qcom: ipq9574: Add SMEM support
      commit: 46384ac7a61885ee29cf918777d5f81a6446e9e6

Best regards,