mbox series

[v7,0/5] remoteproc: qcom: PIL info support

Message ID 20200622191942.255460-1-bjorn.andersson@linaro.org
Headers show
Series remoteproc: qcom: PIL info support | expand

Message

Bjorn Andersson June 22, 2020, 7:19 p.m. UTC
Introduce support for filling out the relocation information in IMEM, to aid
post mortem debug tools to locate the various remoteprocs.

Bjorn Andersson (5):
  dt-bindings: remoteproc: Add Qualcomm PIL info binding
  remoteproc: qcom: Introduce helper to store pil info in IMEM
  remoteproc: qcom: Update PIL relocation info on load
  arm64: dts: qcom: qcs404: Add IMEM and PIL info region
  arm64: dts: qcom: sdm845: Add IMEM and PIL info region

 .../bindings/remoteproc/qcom,pil-info.yaml    |  44 ++++++
 arch/arm64/boot/dts/qcom/qcs404.dtsi          |  15 ++
 arch/arm64/boot/dts/qcom/sdm845.dtsi          |  15 ++
 drivers/remoteproc/Kconfig                    |   8 ++
 drivers/remoteproc/Makefile                   |   1 +
 drivers/remoteproc/qcom_pil_info.c            | 129 ++++++++++++++++++
 drivers/remoteproc/qcom_pil_info.h            |   9 ++
 drivers/remoteproc/qcom_q6v5_adsp.c           |  16 ++-
 drivers/remoteproc/qcom_q6v5_mss.c            |   3 +
 drivers/remoteproc/qcom_q6v5_pas.c            |  15 +-
 drivers/remoteproc/qcom_q6v5_wcss.c           |  14 +-
 drivers/remoteproc/qcom_wcnss.c               |  14 +-
 12 files changed, 271 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml
 create mode 100644 drivers/remoteproc/qcom_pil_info.c
 create mode 100644 drivers/remoteproc/qcom_pil_info.h

-- 
2.26.2

Comments

Rishabh Bhatnagar July 10, 2020, 4:33 p.m. UTC | #1
On 2020-06-22 12:19, Bjorn Andersson wrote:
> Add a devicetree binding for the Qualcomm peripheral image loader

> relocation information region found in the IMEM.

> 

> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>

> Reviewed-by: Rob Herring <robh@kernel.org>

> Reviewed-by: Stephen Boyd <swboyd@chromium.org>

> Reviewed-by: Vinod Koul <vkoul@kernel.org>

> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> ---

> 

> Changes since v6:

> - None

> 

>  .../bindings/remoteproc/qcom,pil-info.yaml    | 44 +++++++++++++++++++

>  1 file changed, 44 insertions(+)

>  create mode 100644

> Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml

> 

> diff --git

> a/Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml

> b/Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml

> new file mode 100644

> index 000000000000..87c52316ddbd

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/remoteproc/qcom,pil-info.yaml

> @@ -0,0 +1,44 @@

> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

> +%YAML 1.2

> +---

> +$id: http://devicetree.org/schemas/remoteproc/qcom,pil-info.yaml#

> +$schema: http://devicetree.org/meta-schemas/core.yaml#

> +

> +title: Qualcomm peripheral image loader relocation info binding

> +

> +maintainers:

> +  - Bjorn Andersson <bjorn.andersson@linaro.org>

> +

> +description:

> +  The Qualcomm peripheral image loader relocation memory region, in 

> IMEM, is

> +  used for communicating remoteproc relocation information to post 

> mortem

> +  debugging tools.

> +

> +properties:

> +  compatible:

> +    const: qcom,pil-reloc-info

> +

> +  reg:

> +    maxItems: 1

> +

> +required:

> +  - compatible

> +  - reg

> +

> +examples:

> +  - |

> +    imem@146bf000 {

> +      compatible = "syscon", "simple-mfd";

> +      reg = <0x146bf000 0x1000>;

> +

> +      #address-cells = <1>;

> +      #size-cells = <1>;

> +

> +      ranges = <0 0x146bf000 0x1000>;

> +

> +      pil-reloc@94c {

> +        compatible = "qcom,pil-reloc-info";

> +        reg = <0x94c 0xc8>;

> +      };

> +    };

> +...

Reviewed-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>