Message ID | 20200211005059.1377279-1-bjorn.andersson@linaro.org |
---|---|
Headers | show |
Series | remoteproc: qcom: post mortem debug support | expand |
Quoting Bjorn Andersson (2020-02-10 16:50:55) > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi > index 4ee1e3d5f123..f539293b875c 100644 > --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi > +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi > @@ -997,6 +997,19 @@ blsp2_spi0: spi@7af5000 { > status = "disabled"; > }; > > + imem@8600000 { > + compatible = "syscon", "simple-mfd"; > + reg = <0x08600000 0x1000>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + > + pil-reloc@94c { > + compatible ="qcom,pil-reloc-info"; > + reg = <0x94c 200>; Is it 200 in decimal? It looks weird that this is basically the only thing that isn't in hexadecimal. > + }; > + }; > +
Quoting Bjorn Andersson (2020-02-10 16:50:59) > diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c > index 19f784adf91c..822881534d37 100644 > --- a/drivers/remoteproc/qcom_q6v5_adsp.c > +++ b/drivers/remoteproc/qcom_q6v5_adsp.c > @@ -291,12 +291,20 @@ static void *adsp_da_to_va(struct rproc *rproc, u64 da, int len) > return adsp->mem_region + offset; > } > > +static unsigned int adsp_panic(struct rproc *rproc) > +{ > + struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv; We don't need to cast from void. Please drop the cast. > + > + return qcom_q6v5_panic(&adsp->q6v5); > +} > + > static const struct rproc_ops adsp_ops = { > .start = adsp_start, > .stop = adsp_stop, > .da_to_va = adsp_da_to_va, > .parse_fw = qcom_register_dump_segments, > .load = adsp_load, > + .panic = adsp_panic, > }; > > static int adsp_init_clock(struct qcom_adsp *adsp, const char **clk_ids) > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index d20ce3c62256..ac38624fb14d 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -242,12 +242,20 @@ static void *adsp_da_to_va(struct rproc *rproc, u64 da, int len) > return adsp->mem_region + offset; > } > > +static unsigned int adsp_panic(struct rproc *rproc) > +{ > + struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv; Same. > + > + return qcom_q6v5_panic(&adsp->q6v5); > +}
On Mon, Feb 10, 2020 at 04:50:55PM -0800, Bjorn Andersson wrote: > Add a simple-mfd representing IMEM on QCS404 and define the PIL > relocation info region, so that post mortem tools will be able to locate > the loaded remoteprocs. > > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > --- > > Changes since v2: > - Replace offset with reg > > arch/arm64/boot/dts/qcom/qcs404.dtsi | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi > index 4ee1e3d5f123..f539293b875c 100644 > --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi > +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi > @@ -997,6 +997,19 @@ blsp2_spi0: spi@7af5000 { > status = "disabled"; > }; > > + imem@8600000 { > + compatible = "syscon", "simple-mfd"; > + reg = <0x08600000 0x1000>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + > + pil-reloc@94c { > + compatible ="qcom,pil-reloc-info"; s/="/= " > + reg = <0x94c 200>; > + }; > + }; > + > intc: interrupt-controller@b000000 { > compatible = "qcom,msm-qgic2"; > interrupt-controller; > -- > 2.24.0 >