Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b470878 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add minidump id for Lpass on atoll"

parents 0748ee34 95b18620
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ Optional properties:
			regardless of the fact that it's requested to power-off
			explicitly, the framework won't try to power it off again.

- qcom,minidump-as-elf32: Boolean. If set, minidump is collected in ELF32 format.

Example:
	qcom,venus@fdce0000 {
		compatible = "qcom,pil-tz-generic";
+2 −0
Original line number Diff line number Diff line
@@ -1693,12 +1693,14 @@
		qcom,pas-id = <1>;
		qcom,proxy-timeout-ms = <10000>;
		qcom,smem-id = <423>;
		qcom,minidump-id = <5>;
		qcom,sysmon-id = <1>;
		qcom,ssctl-instance-id = <0x14>;
		qcom,firmware-name = "adsp";
		memory-region = <&pil_adsp_mem>;
		qcom,signal-aop;
		qcom,complete-ramdump;
		qcom,minidump-as-elf32;

		/* Inputs from lpass */
		interrupts-extended = <&pdc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>,
+8 −1
Original line number Diff line number Diff line
@@ -386,6 +386,10 @@ static int pil_do_minidump(struct pil_desc *desc, void *ramdump_dev)
					      &ss_valid_seg_cnt,
					      desc->num_aux_minidump_ids);

	if (desc->minidump_as_elf32)
		ret = do_elf_ramdump(ramdump_dev, ramdump_segs,
				     ss_valid_seg_cnt);
	else
		ret = do_minidump(ramdump_dev, ramdump_segs, ss_valid_seg_cnt);
	if (ret)
		pil_err(desc, "%s: Minidump collection failed for subsys %s rc:%d\n",
@@ -1593,6 +1597,9 @@ int pil_desc_init(struct pil_desc *desc)
	if (!desc->unmap_fw_mem)
		desc->unmap_fw_mem = unmap_fw_mem;

	desc->minidump_as_elf32 = of_property_read_bool(
					ofnode, "qcom,minidump-as-elf32");

	return 0;
err_parse_dt:
	ida_simple_remove(&pil_ida, priv->id);
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -69,6 +69,7 @@ struct pil_desc {
	int minidump_id;
	int *aux_minidump_ids;
	int num_aux_minidump_ids;
	bool minidump_as_elf32;
};

/**