[PATCH V10 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-02-15 Thread peng . fan
From: Peng Fan V11: Per Rob's comments, fix memory-region in patch 1/10 Rebased on top of Linux-next V10: Per Rob's comments, fix patch 1/10 V9: Per Mathieu's comments, update the tile of yaml in patch 2/10 update the Kconfig and MODULE_DESCRIPTION, I merge this change in patch 8/10

RE: [PATCH V10 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-02-13 Thread Peng Fan
> Subject: Re: [PATCH V10 01/10] dt-bindings: remoteproc: convert imx rproc > bindings to json-schema > > On Mon, Feb 08, 2021 at 04:56:02PM +0800, peng@oss.nxp.com wrote: > > From: Peng Fan > > > > Convert the imx rproc binding to DT schema format using j

[PATCH V10 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-02-08 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions

[PATCH V10 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-02-08 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 116 - 1

[PATCH V10 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-02-08 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V10 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-02-08 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed

[PATCH V10 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-02-08 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/Kconfig | 6 ++--- drivers/remoteproc/imx_rproc.c | 41

[PATCH V10 05/10] remoteproc: imx_rproc: correct err message

2021-02-08 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH V10 04/10] remoteproc: add is_iomem to da_to_va

2021-02-08 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Reported-by: kernel test robot Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c

[PATCH V10 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-02-08 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux

[PATCH V10 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-02-08 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 51 ++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

[PATCH V10 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-02-08 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V10 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-02-08 Thread peng . fan
From: Peng Fan V10: Per Rob's comments, fix patch 1/10 V9: Per Mathieu's comments, update the tile of yaml in patch 2/10 update the Kconfig and MODULE_DESCRIPTION, I merge this change in patch 8/10, since this is a minor change, I still keep Mathieu's R-b tag. If any objection, I

RE: [PATCH V2 0/4] imx esdhc dt/driver update

2021-02-07 Thread Peng Fan
> Subject: [PATCH V2 0/4] imx esdhc dt/driver update Gentle ping.. Thanks, Peng. > > From: Peng Fan > > Patch V2: > patch 1, 2, 3 is new > patch 4 is not changed > > Peng Fan (4): > dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings > dt-bindin

RE: [PATCH V9 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-26 Thread Peng Fan
or A-b tag, we could have the whole patchset merge into remoteproc tree. Thanks, Peng. > > From: Peng Fan > > Convert the imx rproc binding to DT schema format using json-schema. > > Signed-off-by: Peng Fan > --- > .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +

RE: [PATCH V2 2/4] dt-bindings: mmc: fsl-imx-esdhc: add clock bindings

2021-01-21 Thread Peng Fan
Hi Rob, > Subject: Re: [PATCH V2 2/4] dt-bindings: mmc: fsl-imx-esdhc: add clock > bindings > > On Thu, 21 Jan 2021 11:09:51 +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > Add clock bindings for fsl-imx-esdhc yaml > > > > Signed-off-by: Peng

[PATCH V2 2/4] dt-bindings: mmc: fsl-imx-esdhc: add clock bindings

2021-01-20 Thread peng . fan
From: Peng Fan Add clock bindings for fsl-imx-esdhc yaml Signed-off-by: Peng Fan --- .../devicetree/bindings/mmc/fsl-imx-esdhc.yaml| 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree

[PATCH V2 3/4] arm64: dts: imx8qxp: correct usdhc clock-names sequence

2021-01-20 Thread peng . fan
From: Peng Fan Per dt-bindings, the clock-names sequence should be ipg ahb per to pass dtbs_check. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale

[PATCH V2 1/4] dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings

2021-01-20 Thread peng . fan
From: Peng Fan Add pinctrl bindings for fsl-imx-esdhc yaml Signed-off-by: Peng Fan --- .../bindings/mmc/fsl-imx-esdhc.yaml | 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree

[PATCH V2 4/4] mmc: sdhci-esdhc-imx: validate pinctrl before use it

2021-01-20 Thread peng . fan
From: Peng Fan When imx_data->pinctrl is not a valid pointer, pinctrl_lookup_state will trigger kernel panic. When we boot Dual OS on Jailhouse hypervisor, we let the 1st Linux to configure pinmux ready for the 2nd OS, so the 2nd OS not have pinctrl settings. Similar to this com

[PATCH V2 0/4] imx esdhc dt/driver update

2021-01-20 Thread peng . fan
From: Peng Fan Patch V2: patch 1, 2, 3 is new patch 4 is not changed Peng Fan (4): dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings dt-bindings: mmc: fsl-imx-esdhc: add clock bindings arm64: dts: imx8qxp: correct usdhc clock-names sequence mmc: sdhci-esdhc-imx: validate pinctrl

RE: [PATCH V8 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-20 Thread Peng Fan
> Subject: Re: [PATCH V8 10/10] remoteproc: imx_proc: enable virtio/mailbox > > On Tue, Jan 19, 2021 at 03:35:11PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > Use virtio/mailbox to build connection between Remote Proccessors and > > Linux. Add work

[PATCH V9 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-20 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions

[PATCH V9 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-20 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/Kconfig | 6 ++--- drivers/remoteproc/imx_rproc.c | 41

[PATCH V9 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-20 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V9 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-01-20 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux

[PATCH V9 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-01-20 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed

[PATCH V9 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-20 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 116 - 1

[PATCH V9 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-01-20 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 51 ++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

[PATCH V9 05/10] remoteproc: imx_rproc: correct err message

2021-01-20 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH V9 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-20 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V9 04/10] remoteproc: add is_iomem to da_to_va

2021-01-20 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Reported-by: kernel test robot Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c

[PATCH V9 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-01-20 Thread peng . fan
From: Peng Fan V9: Per Mathieu's comments, update the tile of yaml in patch 2/10 update the Kconfig and MODULE_DESCRIPTION, I merge this change in patch 8/10, since this is a minor change, I still keep Mathieu's R-b tag. If any objection, I could remove. Add R-b tag in Patch 10/10

[PATCH V8 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-01-18 Thread peng . fan
From: Peng Fan V8: Address sparse warning in patch 4/10 reported by kernel test robot V7: Add R-b tag from Mathieu vdevbuffer->vdev0buffer in patch 1/10, 7/10 correct err msg and shutdown seq per Mathieu's comments in patch 10/10 Hope this version is ok to be merged. V6: Add R-b

[PATCH V8 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-01-18 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed

[PATCH V8 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-01-18 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux

[PATCH V8 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-18 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V8 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-18 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed, 39

[PATCH V8 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-18 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions

[PATCH V8 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-18 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 116 - 1 file changed, 113 insertions

[PATCH V8 05/10] remoteproc: imx_rproc: correct err message

2021-01-18 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH V8 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-01-18 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml

[PATCH V8 04/10] remoteproc: add is_iomem to da_to_va

2021-01-18 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Reported-by: kernel test robot Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c

[PATCH V8 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-18 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V7 05/10] remoteproc: imx_rproc: correct err message

2021-01-18 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH V7 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-18 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V7 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-18 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions

[PATCH V7 04/10] remoteproc: add is_iomem to da_to_va

2021-01-18 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 2 +- drivers

[PATCH V7 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-01-18 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml

[PATCH V7 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-18 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 116 - 1 file changed, 113 insertions

[PATCH V7 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-18 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed, 39

[PATCH V7 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-01-18 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux

[PATCH V7 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-01-18 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed

[PATCH V7 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-18 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V7 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-01-18 Thread peng . fan
From: Peng Fan V7: Add R-b tag from Mathieu vdevbuffer->vdev0buffer in patch 1/10, 7/10 correct err msg and shutdown seq per Mathieu's comments in patch 10/10 Hope this version is ok to be merged. V6: Add R-b tag from Mathieu Convert imx-rproc.txt to yaml and add dt-bindings supp

RE: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-14 Thread Peng Fan
> Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > regions > > On Thu, Jan 14, 2021 at 09:52:13AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping > > > vdev regions > > > > > >

RE: [PATCH V6 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-14 Thread Peng Fan
> Subject: Re: [PATCH V6 07/10] remoteproc: imx_rproc: add i.MX specific > parse fw hook > > On Tue, Jan 12, 2021 at 05:39:16PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > The hook is used to parse memory-regions and load resource table from > &

RE: [PATCH V6 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-14 Thread Peng Fan
> Subject: Re: [PATCH V6 10/10] remoteproc: imx_proc: enable virtio/mailbox > > On Tue, Jan 12, 2021 at 05:39:19PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > Use virtio/mailbox to build connection between Remote Proccessors and > > Linux. Add work

[PATCH] arm64: dts: imx8mq: use_dt_domains for pci node

2021-01-14 Thread Peng Fan (OSS)
From: Peng Fan We are using Jailhouse Hypervsior which has virtual pci node that use dt domains. so also use dt domains for pci node, this will avoid conflict with Jailhouse Hypervisor to trigger the following error: pr_err("Inconsistent \"linux,pci-domain\" p

[PATCH] mmc: sdhci-esdhc-imx: validate pinctrl before use it

2021-01-14 Thread Peng Fan (OSS)
From: Peng Fan When imx_data->pinctrl is not a valid pointer, pinctrl_lookup_state will trigger kernel panic. When we boot Dual OS on Jailhouse hypervisor, we let the 1st Linux to configure pinmux ready for the 2nd OS, so the 2nd OS not have pinctrl settings. Similar to this com

RE: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-14 Thread Peng Fan
> Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > regions > > On Wed, Jan 13, 2021 at 02:19:32AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping > > > vdev regions > > > > > >

RE: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread Peng Fan
> Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > regions > > On Tue, Jan 12, 2021 at 09:41:12AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping > > > vdev regions > > > > > >

[PATCH V6 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-12 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 115 - 1 file changed, 112 insertions

[PATCH V6 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-12 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed, 39

[PATCH V6 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH V6 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-01-12 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed

[PATCH V6 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-01-12 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml

[PATCH V6 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-12 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33

[PATCH V6 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-12 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Signed-off-by: Peng Fan Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V6 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-01-12 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux

[PATCH V6 05/10] remoteproc: imx_rproc: correct err message

2021-01-12 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed

[PATCH V6 04/10] remoteproc: add is_iomem to da_to_va

2021-01-12 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reported-by: kernel test robot Reported-by: kernel test robot Reviewed-by: Mathieu Poirier

[PATCH V6 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-01-12 Thread peng . fan
From: Peng Fan V6: Add R-b tag from Mathieu Convert imx-rproc.txt to yaml and add dt-bindings support for i.MX8MQ/M, patch 1/10 2/10 No other changes. V5: Apply on Linux next Add V5 subject prefix Add R-b tag from Bjorn for 1/8, 2/8, 3/8 https://patchwork.kernel.org/project/linux

RE: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread Peng Fan
> Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > regions > > On Tue, Dec 29, 2020 at 11:30:18AM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. > > They a

RE: [PATCH 2/4] arm64: dts: imx8mn: add spba bus node

2020-12-29 Thread Peng Fan
> Subject: Re: [PATCH 2/4] arm64: dts: imx8mn: add spba bus node > > On Tue, Dec 29, 2020 at 06:26:41AM -0600, Adam Ford wrote: > > On Tue, Dec 29, 2020 at 6:15 AM wrote: > > > > > > From: Peng Fan > > > > > > According to

RE: [PATCH 3/4] arm64: dts: imx8mn: add spba bus node

2020-12-29 Thread Peng Fan
> Subject: Re: [PATCH 3/4] arm64: dts: imx8mn: add spba bus node > > On Tue, Dec 29, 2020 at 08:00:44PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > According to RM, there is a spba bus inside aips3 and aips1, add it. > > This does not look like mat

[PATCH 4/4] arm64: dts: imx8mq: add spba bus node

2020-12-29 Thread peng . fan
From: Peng Fan According to RM, there is a spba bus inside aips3 and aips1, add it. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 386 +++--- 1 file changed, 201 insertions(+), 185 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi

[PATCH 3/4] arm64: dts: imx8mn: add spba bus node

2020-12-29 Thread peng . fan
From: Peng Fan According to RM, there is a spba bus inside aips3 and aips1, add it. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts

[PATCH 1/4] arm64: dts: imx8mn: add spba bus node of aips3

2020-12-29 Thread peng . fan
From: Peng Fan There is a spba bus inside aips3 space, add it. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 148 -- 1 file changed, 78 insertions(+), 70 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts

[PATCH 2/4] arm64: dts: imx8mn: add spba bus node

2020-12-29 Thread peng . fan
From: Peng Fan According to RM, there is a spba bus inside aips3 and aips1, add it. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 362 +++--- 1 file changed, 189 insertions(+), 173 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi

[PATCH 0/4] arm64: dts: imx8m: add spda bus

2020-12-29 Thread peng . fan
From: Peng Fan There is spba bus in aips1 and aips3, each spba bus has some peripherals inside, add the spba bus node Peng Fan (4): arm64: dts: imx8mn: add spba bus node of aips3 arm64: dts: imx8mn: add spba bus node arm64: dts: imx8mn: add spba bus node arm64: dts: imx8mq: add spba bus

[PATCH V5 6/8] remoteproc: imx_rproc: support i.MX8MQ/M

2020-12-28 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed, 39

[PATCH V5 8/8] remoteproc: imx_proc: enable virtio/mailbox

2020-12-28 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 115 - 1 file changed, 112 insertions

[PATCH V5 5/8] remoteproc: imx_rproc: add i.MX specific parse fw hook

2020-12-28 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Signed-off-by: Peng Fan Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file

[PATCH V5 2/8] remoteproc: add is_iomem to da_to_va

2020-12-28 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- drivers/remoteproc/ingenic_rproc.c

[PATCH V5 4/8] remoteproc: imx_rproc: use devm_ioremap

2020-12-28 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan

[PATCH V5 3/8] remoteproc: imx_rproc: correct err message

2020-12-28 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2020-12-28 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH V5 1/8] remoteproc: introduce is_iomem to rproc_mem_entry

2020-12-28 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index

[PATCH V5 0/8] remoteproc: imx_rproc: support iMX8MQ/M

2020-12-28 Thread peng . fan
From: Peng Fan V5: Apply on Linux next Add V5 subject prefix Add R-b tag from Bjorn for 1/8, 2/8, 3/8 V4: According to Bjorn's comments, add is_iomem for da to va usage 1/8, 2/8 is new patch 3/8, follow Bjorn's comments to correct/update the err msg. 6/8, new patch 8/8, use

RE: [PATCH 0/8] remoteproc: imx_rproc: support iMX8MQ/M

2020-12-21 Thread Peng Fan
Hi Bjorn, > Subject: [PATCH 0/8] remoteproc: imx_rproc: support iMX8MQ/M I forgot to add subject-prefix V4 when format-patch. Do you need to send out v5? or you could take this v4 version if it is ok for you? Thanks, Peng. > > From: Peng Fan > > V4: > According to Bjo

[PATCH 4/8] remoteproc: imx_rproc: use devm_ioremap

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- V4

[PATCH 0/8] remoteproc: imx_rproc: support iMX8MQ/M

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan V4: According to Bjorn's comments, add is_iomem for da to va usage 1/8, 2/8 is new patch 3/8, follow Bjorn's comments to correct/update the err msg. 6/8, new patch 8/8, use dev_err_probe to simplify code, use queue_work instead schedule_delayed_work https://lkml.org/lkml

[PATCH 1/8] remoteproc: introduce is_iomem to rproc_mem_entry

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Signed-off-by: Peng Fan --- V4: New patch include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index f28ee75d1005

[PATCH 5/8] remoteproc: imx_rproc: add i.MX specific parse fw hook

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Signed-off-by: Peng Fan Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier --- V4: None drivers/remoteproc/imx_rproc.c | 93

[PATCH 2/8] remoteproc: add is_iomem to da_to_va

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Signed-off-by: Peng Fan --- V4: New patch drivers/remoteproc/imx_rproc.c | 2 +- drivers/remoteproc/ingenic_rproc.c | 2

[PATCH 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan --- V4: New drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/8] remoteproc: imx_rproc: correct err message

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Signed-off-by: Peng Fan --- V4: Drop the R-b tag Follow Bjorn's comments, correct/update the err msg. drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2

[PATCH 8/8] remoteproc: imx_proc: enable virtio/mailbox

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- V4: Use dev_err_probe to simplify code Use queue_work drivers/remoteproc/imx_rproc.c | 115

[PATCH 6/8] remoteproc: imx_rproc: support i.MX8MQ/M

2020-12-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- V4: None drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed

<    1   2   3   4   5   6   7   8   9   10   >