Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-21 Thread Peng Fan
On Mon, Jul 21, 2025 at 08:23:42AM -0600, Mathieu Poirier wrote: >On Sun, 20 Jul 2025 at 21:08, Peng Fan wrote: >> >> On Fri, Jul 18, 2025 at 11:06:04AM -0600, Mathieu Poirier wrote: >> >On Fri, Jul 18, 2025 at 04:20:34PM +0800, Peng Fan wrote: >> >> On T

Re: [PATCH v3 1/2] dt-bindings: remoteproc: qcom,milos-pas: Document remoteprocs

2025-07-21 Thread Peng Fan
On Mon, Jul 21, 2025 at 01:38:59PM +0200, Krzysztof Kozlowski wrote: >On 21/07/2025 08:42, Peng Fan wrote: >>> + >>> + interrupt-names: >>> +minItems: 6 >>> +maxItems: 6 >> >> Ditto. >> >> Do you need to define the li

Re: [PATCH 1/2] remoteproc: xlnx: disable unsupported features

2025-07-20 Thread Peng Fan
On Wed, Jul 16, 2025 at 02:30:47PM -0700, Tanmay Shah wrote: >AMD-Xilinx platform driver does not support iommu or recovery mechanism >yet. Disable both features in platform driver. > >Signed-off-by: Tanmay Shah >--- > drivers/remoteproc/xlnx_r5_remoteproc.c | 2 ++ > 1 file changed, 2 insertions(+

Re: [PATCH v3 1/2] dt-bindings: remoteproc: qcom,milos-pas: Document remoteprocs

2025-07-20 Thread Peng Fan
On Wed, Jul 09, 2025 at 01:13:07PM +0200, Luca Weiss wrote: >Document the bindings for the ADSP, CDSP, MPSS and WPSS PAS on the Milos >(e.g. SM7635) SoC. > >Signed-off-by: Luca Weiss >--- > .../bindings/remoteproc/qcom,milos-pas.yaml| 201 + > 1 file changed, 201 inserti

Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-20 Thread Peng Fan
On Fri, Jul 18, 2025 at 11:06:04AM -0600, Mathieu Poirier wrote: >On Fri, Jul 18, 2025 at 04:20:34PM +0800, Peng Fan wrote: >> On Thu, Jul 17, 2025 at 08:48:43AM -0600, Mathieu Poirier wrote: >> >On Mon, Jul 14, 2025 at 11:52:05AM +, Peng Fan wrote: >> >>

RE: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-18 Thread Peng Fan
> Subject: Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95 > > On 18/07/2025 10:20, Peng Fan wrote: > > On Thu, Jul 17, 2025 at 08:48:43AM -0600, Mathieu Poirier wrote: > >> On Mon, Jul 14, 2025 at 11:52:05AM +, Peng Fan wrote: > >>>> Subject: R

Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-18 Thread Peng Fan
On Thu, Jul 17, 2025 at 08:48:43AM -0600, Mathieu Poirier wrote: >On Mon, Jul 14, 2025 at 11:52:05AM +0000, Peng Fan wrote: >> > Subject: Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95 >> > >> [...] >> > New warnings running 'make CHECK_DTBS

RE: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-14 Thread Peng Fan
> Subject: Re: [PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95 > [...] > New warnings running 'make CHECK_DTBS=y for > arch/arm64/boot/dts/freescale/' for 20250710-imx95-rproc-1-v4-0- > a7123e857...@nxp.com: > > arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dtb: > scmi (arm,scmi

[PATCH v4 5/5] arm64: dts: imx95-19x19-evk: Add CM7 nodes and vdev related memory regions

2025-07-10 Thread Peng Fan
Add CM7 nodes, vdev related memory regions for remoteproc. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 41 +++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts

[PATCH v4 4/5] arm64: dts: imx95: Add SCMI LMM/CPU nodes

2025-07-10 Thread Peng Fan
Add SCMI LMM/CPU nodes which is for remoteproc to handle remote cores. Reviewed-by: Frank Li Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts

[PATCH v4 2/5] remoteproc: imx_rproc: Add support for System Manager API

2025-07-10 Thread Peng Fan
ouple U-Boot and Linux. Reviewed-by: Daniel Baluta Reviewed-by: Frank Li Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 122 - drivers/remoteproc/imx_rproc.h | 5 ++ 2 files changed, 124 insertions(+), 3 deletions(-) diff --git a/dr

[PATCH v4 3/5] remoteproc: imx_rproc: Add support for i.MX95

2025-07-10 Thread Peng Fan
Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping. Add i.MX95 of_device_id entry. Reviewed-by: Daniel Baluta Reviewed-by: Frank Li Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers

[PATCH v4 1/5] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-07-10 Thread Peng Fan
Add compatible string for the Cortex-M7 core in i.MX95 Reviewed-by: Frank Li Acked-by: Krzysztof Kozlowski Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

[PATCH v4 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-10 Thread Peng Fan
ut to list. Signed-off-by: Peng Fan --- Changes in v4: - Move the lmm permission check code to a separate function(imx_rproc_sm_lmm_prepare) in patch 3. - Check return value of scmi_imx_cpu_started in patch 3 - Rebased to next-20250710 and tested on i.MX95-19x19-EVK - Add R-b from Frank for patc

RE: [PATCH v3 2/5] remoteproc: imx_rproc: Add support for System Manager API

2025-07-09 Thread Peng Fan
> Subject: Re: [PATCH v3 2/5] remoteproc: imx_rproc: Add support for > System Manager API > ... > > > > > >This is set all the time imx_rproc_prepare() is called - isn't there > > >a way to set it once at initialisation time? > > > > Yeah. Moving this to probe path should be ok, such as in > imx_r

Re: [PATCH v3 2/5] remoteproc: imx_rproc: Add support for System Manager API

2025-07-09 Thread Peng Fan
Hi Mathieu, On Tue, Jul 08, 2025 at 10:32:34AM -0600, Mathieu Poirier wrote: >Good day, Thanks, good day. > >On Wed, Jun 25, 2025 at 10:23:28AM +0800, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and >&g

Re: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM regions

2025-07-09 Thread Peng Fan
On Tue, Jul 08, 2025 at 02:29:53PM -0300, Hiago De Franco wrote: >Hi Peng, Mathieu, > >On Mon, Jul 07, 2025 at 10:13:02AM -0600, Mathieu Poirier wrote: >> On Fri, Jul 04, 2025 at 04:08:16PM -0300, Hiago De Franco wrote: >> > Hi Mathieu, >> > >> > On Fri, Jul 04, 2025 at 10:25:19AM -0600, Mathieu P

Re: [PATCH v3 3/5] remoteproc: imx_rproc: Add support for i.MX95

2025-07-08 Thread Peng Fan
Hi Mathieu, On Tue, Jul 08, 2025 at 10:39:55AM -0600, Mathieu Poirier wrote: >On Wed, Jun 25, 2025 at 10:23:29AM +0800, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping. >> Add i.MX95 of_device_id entry. >&g

RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM regions

2025-07-05 Thread Peng Fan
> Subject: RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > regions > > > Subject: Re: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > > regions > > > > Hi Mathieu, > > > > On Fri, Jul 04, 2025 at 10:25:19AM -0600, Mathieu Poirier wrote: > > > Good morning, > > > > > > On Thu, Jul 03,

RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM regions

2025-07-05 Thread Peng Fan
> Subject: Re: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > regions > > Hi Mathieu, > > On Fri, Jul 04, 2025 at 10:25:19AM -0600, Mathieu Poirier wrote: > > Good morning, > > > > On Thu, Jul 03, 2025 at 10:08:31AM -0300, Hiago De Franco wrote: > > > From: Hiago De Franco > > > > > > Merg

Re: [PATCH v3 0/5] remoteproc: imx_rproc: Support i.MX95

2025-07-02 Thread Peng Fan
Hi Mathieu, On Wed, Jun 25, 2025 at 10:23:26AM +0800, Peng Fan (OSS) wrote: >i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and >--- >Peng Fan (5): > dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95 > remoteproc: imx_rproc: Add support for Sys

RE: [PATCH v3 5/5] arm64: dts: imx95-19x19-evk: Add CM7 nodes and vdev related memory regions

2025-06-26 Thread Peng Fan
> Subject: Re: [PATCH v3 5/5] arm64: dts: imx95-19x19-evk: Add CM7 > nodes and vdev related memory regions > > On Wed, Jun 25, 2025 at 10:23:31AM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Add CM7 nodes, vdev related memory regions for remoteproc. >

Re: [PATCH v3 0/5] remoteproc: imx_rproc: Support i.MX95

2025-06-25 Thread Peng Fan
Hi Rob, On Wed, Jun 25, 2025 at 03:25:18PM -0500, Rob Herring (Arm) wrote: > >On Wed, 25 Jun 2025 10:23:26 +0800, Peng Fan (OSS) wrote: >> i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and >> one Cortex-M7 core. The System Control Management Interface(SCMI) >>

[PATCH v3 5/5] arm64: dts: imx95-19x19-evk: Add CM7 nodes and vdev related memory regions

2025-06-25 Thread Peng Fan (OSS)
From: Peng Fan Add CM7 nodes, vdev related memory regions for remoteproc. Enable MU7. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b

[PATCH v3 3/5] remoteproc: imx_rproc: Add support for i.MX95

2025-06-25 Thread Peng Fan (OSS)
From: Peng Fan Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping. Add i.MX95 of_device_id entry. Reviewed-by: Daniel Baluta Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/remoteproc

[PATCH v3 4/5] arm64: dts: imx95: Add SCMI LMM/CPU nodes

2025-06-24 Thread Peng Fan (OSS)
From: Peng Fan Add SCMI LMM/CPU nodes which is for remoteproc to handle remote cores. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale

[PATCH v3 2/5] remoteproc: imx_rproc: Add support for System Manager API

2025-06-24 Thread Peng Fan (OSS)
From: Peng Fan i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and one Cortex-M7 core. The System Control Management Interface(SCMI) firmware runs on the M33 core. The i.MX95 SCMI firmware named System Manager(SM) includes vendor extension protocols, Logical Machine Management(LMM

[PATCH v3 1/5] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-06-24 Thread Peng Fan (OSS)
From: Peng Fan Add compatible string for the Cortex-M7 core in i.MX95 Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b

[PATCH v3 0/5] remoteproc: imx_rproc: Support i.MX95

2025-06-24 Thread Peng Fan (OSS)
) imx-boot-imx95-19x19-lpddr5-evk-sd.bin-flash_all (M7 not under A55 control) Patchset was tested again with rebase on next-20250623 Patchset is re-based on next-20250603. Thanks for Daniel/Frank helping review the patchset before posting out to list. Signed-off-by: Peng Fan --- Changes in v3: -

RE: [PATCH v2 1/3] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-06-24 Thread Peng Fan
> Subject: Re: [PATCH v2 1/3] dt-bindings: remoteproc: fsl,imx-rproc: > Add support for i.MX95 > > On 06/06/2025 03:55, Peng Fan (OSS) wrote: > >fsl,entry-address: > > $ref: /schemas/types.yaml#/definitions/uint32 > > description: >

Re: [PATCH v2 0/3] remoteproc: imx_rproc: Support i.MX95

2025-06-19 Thread Peng Fan
On Fri, Jun 06, 2025 at 09:55:11AM +0800, Peng Fan (OSS) wrote: >i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and >one Cortex-M7 core. The System Control Management Interface(SCMI) >firmware runs on the M33 core. The i.MX95 SCMI firmware named System >Manager(SM) inc

Re: [PATCH v5 0/3] remoteproc: imx_rproc: allow attaching to running core kicked by the bootloader

2025-06-19 Thread Peng Fan
domain: core: introduce dev_pm_genpd_is_on() > remoteproc: imx_rproc: skip clock enable when M-core is managed by the >SCU > remoteproc: imx_rproc: detect and attach to pre-booted remote cores Reviewed-by: Peng Fan > > drivers/pmdomain/core.c| 33 +++ > drivers/remoteproc/imx_rproc.c | 41 -- > include/linux/pm_domain.h | 6 + > 3 files changed, 73 insertions(+), 7 deletions(-) > >-- >2.39.5 >

Re: [PATCH v2 1/3] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-06-16 Thread Peng Fan
Hi Daniel, On Mon, Jun 16, 2025 at 04:07:02PM +0300, Daniel Baluta wrote: >On Fri, Jun 6, 2025 at 4:57???AM Peng Fan (OSS) wrote: >> >> From: Peng Fan >> >> i.MX95 has a System Manager(SM) core runs the System Control Management >> Interface(SCMI) firmware. Ve

Re: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to pre-booted remote cores

2025-06-16 Thread Peng Fan
On Mon, Jun 16, 2025 at 01:05:11PM -0300, Hiago De Franco wrote: >Hi Peng, > >On Thu, Jun 12, 2025 at 02:03:17PM -0300, Hiago De Franco wrote: >> Hi Peng, >> >> On Wed, Jun 11, 2025 at 03:27:09AM +, Peng Fan wrote: >> > > >> > > Sorry for

Re: [PATCH v2] remoteproc: xlnx: allow single core use in split mode

2025-06-10 Thread Peng Fan
On Tue, Jun 10, 2025 at 12:27:38PM -0700, Tanmay Shah wrote: >It's a valid use case to have only one core enabled in cluster in split >mode. Remove exact core count expecatation from the driver. > >Signed-off-by: Tanmay Shah Reviewed-by:

Re: [PATCH 2/2] drivers: remoteproc: Add C906L controller for Sophgo CV1800B SoC

2025-06-10 Thread Peng Fan
On Tue, Jun 10, 2025 at 03:42:57AM +, Junhui Liu wrote: >Hi Peng, >Thanks for your review. > >On 09/06/2025 16:43, Peng Fan wrote: >> On Sun, Jun 08, 2025 at 10:37:40AM +0800, Junhui Liu wrote: >>>Add initial support for the C906L remote processor found in the Sophg

RE: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to pre-booted remote cores

2025-06-10 Thread Peng Fan
> Subject: Re: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach > to pre-booted remote cores > > On Wed, Jun 04, 2025 at 03:19:52AM +0000, Peng Fan wrote: > > > Subject: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach > to > > > pre-booted remote

RE: [PATCH] remoteproc: xlnx: allow single core use in split mode

2025-06-09 Thread Peng Fan
> Subject: [PATCH] remoteproc: xlnx: allow single core use in split mode > > It's a valid use case to have only one core enabled in cluster in split > mode. Remove exact core count expecatation from the driver. > > Signed-off-by: Tanmay Shah > --- > drivers/remoteproc/xlnx_r5_remoteproc.c | 3 -

Re: [PATCH 2/2] drivers: remoteproc: Add C906L controller for Sophgo CV1800B SoC

2025-06-09 Thread Peng Fan
On Sun, Jun 08, 2025 at 10:37:40AM +0800, Junhui Liu wrote: >Add initial support for the C906L remote processor found in the Sophgo >CV1800B SoC. The C906L is an asymmetric core typically used to run an >RTOS. This driver enables firmware loading and start/stop control of the >C906L processor via t

[PATCH v2 3/3] remoteproc: imx_rproc: Add support for i.MX95

2025-06-05 Thread Peng Fan (OSS)
From: Peng Fan Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping Add i.MX95 of_device_id entry Reviewed-by: Daniel Baluta Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/remoteproc

[PATCH v2 2/3] remoteproc: imx_rproc: Add support for System Manager API

2025-06-05 Thread Peng Fan (OSS)
From: Peng Fan i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and one Cortex-M7 core. The System Control Management Interface(SCMI) firmware runs on the M33 core. The i.MX95 SCMI firmware named System Manager(SM) includes vendor extension protocols, Logical Machine Management(LMM

[PATCH v2 1/3] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-06-05 Thread Peng Fan (OSS)
From: Peng Fan i.MX95 has a System Manager(SM) core runs the System Control Management Interface(SCMI) firmware. Vendor extenions are implemented in the firmware, Logical Machine Management(LMM) protocol to manage Logical Machines and CPU protocol to manage cores. The documentation could be

[PATCH v2 0/3] remoteproc: imx_rproc: Support i.MX95

2025-06-05 Thread Peng Fan (OSS)
-boot-imx95-19x19-lpddr5-evk-sd.bin-flash_a55 (M7 not under A55 control) imx-boot-imx95-19x19-lpddr5-evk-sd.bin-flash_all (M7 not under A55 control) Patchset is re-based on next-20250603. Thanks for Daniel helping review the patchset before posting out to list. Signed-off-by: Peng Fan --- Chang

RE: [PATCH 2/3] remoteproc: imx_rproc: Add support for System Manager API

2025-06-04 Thread Peng Fan
> Subject: Re: [PATCH 2/3] remoteproc: imx_rproc: Add support for > System Manager API > > Hi Peng, > > Thanks a lot for the patches. Comments inline: > > On Wed, Jun 4, 2025 at 5:36 AM Peng Fan (OSS) > wrote: > > > > From: Peng Fan > > > >

RE: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to pre-booted remote cores

2025-06-03 Thread Peng Fan
> Subject: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to > pre-booted remote cores > > From: Hiago De Franco > > When the remote core is started before Linux boots (e.g., by the > bootloader), the driver currently is not able to attach because it only > checks for cores running in d

[PATCH 2/3] remoteproc: imx_rproc: Add support for System Manager API

2025-06-03 Thread Peng Fan (OSS)
From: Peng Fan i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and one Cortex-M7 core. The System Control Management Interface(SCMI) firmware runs on the M33 core. The i.MX95 SCMI firmware named System Manager(SM) includes vendor extension protocols, Logical Machine Management(LMM

[PATCH 3/3] remoteproc: imx_rproc: Add support for i.MX95

2025-06-03 Thread Peng Fan (OSS)
From: Peng Fan Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping Add i.MX95 of_device_id entry Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index

[PATCH 1/3] dt-bindings: remoteproc: fsl,imx-rproc: Add support for i.MX95

2025-06-03 Thread Peng Fan (OSS)
From: Peng Fan i.MX95 has a System Manager(SM) core runs the System Control Management Interface(SCMI) firmware. Vendor extenions are implemented in the firmware, Logical Machine Management(LMM) protocol to manage Logical Machines and CPU protocol to manage cores. The documentation could be

[PATCH 0/3] remoteproc: imx_rproc: Support i.MX95

2025-06-03 Thread Peng Fan (OSS)
pddr5-evk-sd.bin-flash_a55 (M7 not under A55 control) imx-boot-imx95-19x19-lpddr5-evk-sd.bin-flash_all (M7 not under A55 control) Patchset is re-based on next-20250603. Thanks for Daniel helping review the patchset before posting out to list. Signed-off-by: Peng Fan --- Peng Fan (3): dt-bin

RE: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-28 Thread Peng Fan
> Subject: Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode > check for remote core attachment > > On Tue, May 27, 2025 at 10:45:25AM -0300, Hiago De Franco wrote: > > [...] > > > > > > > Thanks for the detailed analysis! > > > > > > This is a very similar issue as many other genpd provi

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-26 Thread Peng Fan
On Mon, May 26, 2025 at 09:05:10PM -0300, Hiago De Franco wrote: >On Mon, May 26, 2025 at 12:07:49PM +0200, Ulf Hansson wrote: >> On Fri, 23 May 2025 at 21:17, Hiago De Franco wrote: >> > >> > Hi Ulf, >> > >> > On Wed, May 21, 2025 at 02:11:02PM +0200, Ulf Hansson wrote: >> > > You should not prov

Re: [PATCH v3 0/3] remoteproc: imx_rproc: allow attaching to running core kicked by the bootloader

2025-05-20 Thread Peng Fan
On Mon, May 19, 2025 at 02:15:11PM -0300, Hiago De Franco wrote: >From: Hiago De Franco Let's wait for V2 discussion a bit, then I will give a look if we reach an agreement on using firmware power API here. Thanks, Peng

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-20 Thread Peng Fan
On Wed, May 21, 2025 at 12:13:06PM +0800, Peng Fan wrote: >Hi Ulf, > >On Tue, May 20, 2025 at 02:21:49PM +0200, Ulf Hansson wrote: >>On Mon, 19 May 2025 at 19:24, Hiago De Franco wrote: >>> >>> Hi Ulf, >>> >>> On Mon, May 19, 2025 at 04:33:30PM

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-20 Thread Peng Fan
it only >> > > > > > > checks for cores running in different partitions. If the core >> > > > > > > was kicked >> > > > > > > by the bootloader, it is in the same partition as Linux and it is >> > > > > &g

Re: [PATCH v2 1/3] firmware: imx: move get power mode function from scu-pd.c to misc.c

2025-05-12 Thread Peng Fan
Hi Hiago, On Wed, May 07, 2025 at 01:00:54PM -0300, Hiago De Franco wrote: >From: Hiago De Franco > >Move imx_sc_get_pd_power() from pmdomain/imx/scu-pd.c to >firmware/imx/misc.c and rename it to imx_sc_pm_get_resource_power_mode() >to maintain the same naming logic with other functions in misc.c

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-11 Thread Peng Fan
it is >> > > > already up and running. >> > > > >> > > > This adds power mode verification through the SCU interface, enabling >> > > > the driver to detect when the remote core is already running and >> > > > properly

Re: [PATCH v2 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-11 Thread Peng Fan
rface, enabling >> the driver to detect when the remote core is already running and >> properly attach to it. >> >> Signed-off-by: Hiago De Franco >> Suggested-by: Peng Fan >> --- >> v2: Dropped unecessary include. Removed the imx_rproc_is_on function, as >

Re: [PATCH v2 0/4] of: Common "memory-region" parsing

2025-05-06 Thread Peng Fan
e_wc() > remoteproc: Use of_reserved_mem_region_* functions for "memory-region" > > drivers/of/device.c | 31 +--- > drivers/of/of_reserved_mem.c | 80 +++ > drivers/remoteproc/imx_dsp_rproc.c| 4

Re: [PATCH v3 0/2] Fix two memory leaks in rproc_attach()

2025-05-06 Thread Peng Fan
: cleanup acquired resources when rproc_handle_resources() >fails in rproc_attach() > remoteproc: core: release rproc->clean_table after rproc_attach() >fails > > drivers/remoteproc/remoteproc_core.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Peng Fan

Re: [PATCH 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-06 Thread Peng Fan
> >Signed-off-by: Hiago De Franco >Suggested-by: Peng Fan >--- > drivers/remoteproc/imx_rproc.c | 23 +++ > 1 file changed, 23 insertions(+) > >diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c >index 627e57a88db2..86541d9d8640

Re: [PATCH 1/3] remoteproc: imx_rproc: skip clock enable when M-core is managed by the SCU

2025-05-06 Thread Peng Fan
ock. " You may update if you wanna. > >Signed-off-by: Hiago De Franco >Suggested-by: Peng Fan -> peng@nxp.com Thanks, Peng >--- > drivers/remoteproc/imx_rproc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers/remoteproc

Re: [PATCH 2/3] firmware: imx: move get power mode function from scu-pd.c to misc.c

2025-05-06 Thread Peng Fan
On Mon, May 05, 2025 at 12:48:48PM -0300, Hiago De Franco wrote: >From: Hiago De Franco > >Move imx_sc_get_pd_power() from pmdomain/imx/scu-pd.c to >firmware/imx/misc.c and rename it to imx_sc_pm_get_resource_power_mode() >to maintain the same naming logic with other functions in misc.c. > >This m

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-05-06 Thread Peng Fan
On Wed, Apr 09, 2025 at 02:46:10PM +0800, Peng Fan wrote: >On Tue, Apr 08, 2025 at 10:59:58AM -0600, Mathieu Poirier wrote: >>On Tue, 8 Apr 2025 at 09:02, Peng Fan wrote: >>> >>> On Thu, Apr 03, 2025 at 10:32:39PM +0800, Peng Fan wrote: >>> >Hi Bjorn, &g

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-29 Thread Peng Fan
On Mon, Apr 28, 2025 at 02:12:57PM -0300, Hiago De Franco wrote: >On Sat, Apr 26, 2025 at 09:49:58PM +0800, Peng Fan wrote: >> On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: >> >Hi Mathieu, >> > >> >On Wed, Apr 23, 2025 at 11:14:17AM -060

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread Peng Fan
safe. >> >> On Sat, 26 Apr 2025 at 07:46, xiaolei wang >> wrote: >> > >> > On 4/26/25 21:18, Peng Fan wrote: >> > > CAUTION: This email comes from a non Wind River email account! >> > > Do not click links or open attachments unless

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-26 Thread Peng Fan
On Sat, Apr 26, 2025 at 03:47:50PM -0600, Mathieu Poirier wrote: >On Sat, 26 Apr 2025 at 06:41, Peng Fan wrote: >> >> On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: >> >Hi Mathieu, >> > >> >On Wed, Apr 23, 2025 at 11:14:17AM -0600,

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-26 Thread Peng Fan
On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: >Hi Mathieu, > >On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: >> Good morning, >> >> On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: >> > From: Hiago De Franco >> > >> > The "clocks" device tree

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread Peng Fan
On Sat, Apr 26, 2025 at 02:53:47PM +0800, Xiaolei Wang wrote: >When rproc->state = RPROC_DETACHED and rproc_attach() is used >to attach to the remote processor, if rproc_handle_resources() >returns a failure, the resources allocated by rproc_prepare_device() >should be released, otherwise the follo

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-04-08 Thread Peng Fan
On Tue, Apr 08, 2025 at 10:59:58AM -0600, Mathieu Poirier wrote: >On Tue, 8 Apr 2025 at 09:02, Peng Fan wrote: >> >> On Thu, Apr 03, 2025 at 10:32:39PM +0800, Peng Fan wrote: >> >Hi Bjorn, >> > >> > >> >Thanks for replying this thread. >&

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-04-08 Thread Peng Fan
On Thu, Apr 03, 2025 at 10:32:39PM +0800, Peng Fan wrote: >Hi Bjorn, > > >Thanks for replying this thread. > >On Wed, Apr 02, 2025 at 08:48:58AM -0500, Bjorn Andersson wrote: >>On Wed, Apr 02, 2025 at 09:43:55AM +0800, Peng Fan wrote: >>> On Tue, Apr 01, 2025 at

[PATCH] remoteproc: imx_rproc: Add mutex protection for workqueue

2025-04-05 Thread Peng Fan (OSS)
From: Peng Fan Same as commit 47e6ab07018e ("remoteproc: imx_dsp_rproc: Add mutex protection for workqueue") and commit 35bdafda40cc ("remoteproc: stm32_rproc: Add mutex protection for workqueue"), imx_rproc driver also has similar issue, although no issue reported until no

Re: [PATCH] remoteproc: imx_rproc: Add mutex protection for workqueue

2025-04-04 Thread Peng Fan
On Mon, Mar 31, 2025 at 07:22:45PM +0800, Peng Fan (OSS) wrote: >From: Peng Fan > >Same as >commit 47e6ab07018e ("remoteproc: imx_dsp_rproc: Add mutex >protection for workqueue") and commit 35bdafda40cc ("remoteproc: >stm32_rproc: Add mutex protection for workqu

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-04-03 Thread Peng Fan
Hi Bjorn, Thanks for replying this thread. On Wed, Apr 02, 2025 at 08:48:58AM -0500, Bjorn Andersson wrote: >On Wed, Apr 02, 2025 at 09:43:55AM +0800, Peng Fan wrote: >> On Tue, Apr 01, 2025 at 10:05:03AM -0600, Mathieu Poirier wrote: >> >On Tue, Apr 01, 2025 at 09:41:24AM +08

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-04-01 Thread Peng Fan
On Tue, Apr 01, 2025 at 10:05:03AM -0600, Mathieu Poirier wrote: >On Tue, Apr 01, 2025 at 09:41:24AM +0800, Peng Fan wrote: >> On Mon, Mar 31, 2025 at 09:40:41AM -0600, Mathieu Poirier wrote: >> >On Sat, Mar 29, 2025 at 08:56:29PM +0800, Peng Fan wrote: >> >> On F

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-04-01 Thread Peng Fan
On Mon, Mar 31, 2025 at 09:40:41AM -0600, Mathieu Poirier wrote: >On Sat, Mar 29, 2025 at 08:56:29PM +0800, Peng Fan wrote: >> On Fri, Mar 28, 2025 at 08:14:41AM -0600, Mathieu Poirier wrote: >> >On Fri, Mar 28, 2025 at 12:50:12PM +0800, Peng Fan wrote: >> >> On T

[PATCH V2] remoteproc: imx_rproc: Add mutex protection for workqueue

2025-04-01 Thread Peng Fan (OSS)
From: Peng Fan Same as commit 47e6ab07018e ("remoteproc: imx_dsp_rproc: Add mutex protection for workqueue") and commit 35bdafda40cc ("remoteproc: stm32_rproc: Add mutex protection for workqueue"), imx_rproc driver also has similar issue, although no issue reported until now

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-29 Thread Peng Fan
On Fri, Mar 28, 2025 at 08:14:41AM -0600, Mathieu Poirier wrote: >On Fri, Mar 28, 2025 at 12:50:12PM +0800, Peng Fan wrote: >> On Thu, Mar 27, 2025 at 11:46:33AM -0600, Mathieu Poirier wrote: >> >Hi, >> > >> >On Wed, Mar 26, 2025 at 10:02:14AM +0800, Peng F

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-27 Thread Peng Fan
On Thu, Mar 27, 2025 at 11:46:33AM -0600, Mathieu Poirier wrote: >Hi, > >On Wed, Mar 26, 2025 at 10:02:14AM +0800, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> There is case as below could trigger kernel dump: >> Use U-Boot to start remote processor(rproc) with

[PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-25 Thread Peng Fan (OSS)
From: Peng Fan There is case as below could trigger kernel dump: Use U-Boot to start remote processor(rproc) with resource table published to a fixed address by rproc. After Kernel boots up, stop the rproc, load a new firmware which doesn't have resource table ,and start rproc. When sta

[PATCH] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-19 Thread Peng Fan (OSS)
From: Peng Fan There is case as below could trigger kernel dump: Use U-Boot to start remote processor(rproc) with resource table published to a fixed address by rproc. After Kernel boots up, stop the rproc, load a new firmware which doesn't have resource table ,and start rproc. When sta

RE: [PATCH v4 7/8] reset: imx8mp-audiomix: Add support for DSP run/stall

2025-03-06 Thread Peng Fan
> Reviewed-by: Frank Li > Signed-off-by: Daniel Baluta Reviewed-by: Peng Fan

RE: [PATCH v4 5/8] reset: imx8mp-audiomix: Prepare the code for more reset bits

2025-03-05 Thread Peng Fan
ore reset bits in the > future. > > Reviewed-by: Frank Li > Signed-off-by: Daniel Baluta Reviewed-by: Peng Fan > ---

RE: [PATCH v4 3/8] arm64: dts: imx8mp: Use resets property

2025-03-05 Thread Peng Fan
> Subject: [PATCH v4 3/8] arm64: dts: imx8mp: Use resets property > > Add resets property to dsp node in order to be able to control the dsp > run/stall bit from audio block control. > > Reviewed-by: Frank Li > Signed-off-by: Daniel Baluta > --- Reviewed-by: Peng Fan

Re: [PATCH 1/5] reset: imx8mp-audiomix: Add prefix for internal macro

2025-02-18 Thread Peng Fan
On Tue, Feb 18, 2025 at 10:57:08AM +0200, Daniel Baluta wrote: >This adds IMX8MP_AUDIOMIX_ prefix to internal macros >in order to show that specific macros are related to >audiomix. > >Signed-off-by: Daniel Baluta Reviewed-by: Peng Fan

Re: [PATCH 5/5] imx_dsp_rproc: Use reset controller API to control the DSP

2025-02-18 Thread Peng Fan
On Tue, Feb 18, 2025 at 10:57:12AM +0200, Daniel Baluta wrote: >Use the reset controller API to control the DSP on i.MX8MP. This way >we can have a better control of the resources and avoid using a syscon >to access the audiomix bits. > >Signed-off-by: Daniel Baluta LGTM: Reviewed-by: Peng Fan

Re: [PATCH 3/5] reset: imx8mp-audiomix: Introduce active_low configuration option

2025-02-18 Thread Peng Fan
n future in case. If you tend to use bool, also ok to me: Reviewed-by: Peng Fan

Re: [PATCH 4/5] reset: imx8mp-audiomix: Add support for DSP run/stall

2025-02-18 Thread Peng Fan
On Tue, Feb 18, 2025 at 10:57:11AM +0200, Daniel Baluta wrote: >We can Run/Stall the DSP via audio block control bits found in audiomix. >Implement this functionality using the reset controller and use assert >for Stall and deassert for Run. > >Signed-off-by: Daniel Baluta >--- > drivers/reset/res

Re: [PATCH 2/5] reset: imx8mp-audiomix: Prepare the code for more reset bits

2025-02-18 Thread Peng Fan
On Tue, Feb 18, 2025 at 10:57:09AM +0200, Daniel Baluta wrote: >Current code supports EARC PHY Software Reset and EARC Software >Reset but it is not easily extensible to more reset bits. > >So, refactor the code in order to easily allow more reset bits >in the future. > >Signed-off-by: Dani

[PATCH] remoteproc: omap: add comment for is_iomem

2025-02-17 Thread Peng Fan (OSS)
From: Peng Fan Address warning: "Function parameter or struct member 'is_iomem' not described in 'omap_rproc_da_to_va'" with adding comment for is_iomem. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502161648.wzwrfv7i-...@intel

[PATCH v3 2/2] remoteproc: imx_rproc: Add support for poweroff and reboot

2024-08-22 Thread Peng Fan (OSS)
From: Peng Fan On some NXP platforms (e.g i.MX7ULP) the poweroff and reboot operations are done via a separate remote core. Typically Linux needs to send a message to the remote core and requests for poweroff or reboot. By default the communication between Linux core and the remote core is is

[PATCH v3 1/2] remoteproc: imx_rproc: Allow setting of the mailbox transmit mode

2024-08-22 Thread Peng Fan (OSS)
From: Peng Fan Current mailbox is blocking by default, but there are cases where we don't need to wait for a response. Linux just needs to send data to the remote processor, so let's allow tx_block mode to be set (true/false) depending on usecase. No functional changes. Signed-of

[PATCH v3 0/2] remoteproc: imx_rproc: support non-blocking tx for i.MX7ULP

2024-08-22 Thread Peng Fan (OSS)
tion_timeout. In the poweroff or restart case, there is no need to wait, because after M4 got the message, M4 will put A7 to reboot or poweroff. patch 1 is to support non-blocking tx mailbox channel patch 2 is to switch to non-blocking tx for system poweroff or restart. Signed-off-by: Peng Fan --

RE: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-08-14 Thread Peng Fan
> Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off > for i.MX7ULP > > On Fri, Aug 02, 2024 at 04:59:45AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system > off > > > for i.MX7ULP > > > >

RE: [PATCH 6/6] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-08-07 Thread Peng Fan
> Subject: Re: [PATCH 6/6] remoteproc: imx_rproc: handle system off for > i.MX7ULP > > On Fri, Jul 12, 2024 at 04:34:59PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The > i.MX7ULP > > L

RE: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-08-01 Thread Peng Fan
> Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off > for i.MX7ULP > > On Tue, Jul 30, 2024 at 08:06:22AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system > off > > > for i.MX7ULP > > > >

RE: [PATCH] remoteproc: Use of_property_present()

2024-07-31 Thread Peng Fan
ers/remoteproc/xlnx_r5_remoteproc.c | 6 +++--- > 3 files changed, 5 insertions(+), 5 deletions(-) For i.MX: Acked-by: Peng Fan

RE: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-07-30 Thread Peng Fan
> Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off > for i.MX7ULP > > On Fri, Jul 19, 2024 at 04:49:04PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The > i.MX7ULP > > L

[PATCH v2 1/2] remoteproc: imx_rproc: allow tx_block to be set

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan Current tx_block is set to true, but there is case that no need to wait response. Linux just needs to send data to remote processor, so let's allow tx_block could be set to false. No functional changes. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c

[PATCH v2 3/4] remoteproc: imx_rproc: initialize workqueue earlier

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan Initialize workqueue before requesting mailbox channel, otherwise if mailbox interrupt comes before workqueue ready, the imx_rproc_rx_callback will trigger issue. Fixes: 2df7062002d0 ("remoteproc: imx_proc: enable virtio/mailbox") Signed-off-by: Peng Fan --- drivers/

[PATCH v2 1/4] remoteproc: imx_rproc: correct ddr alias for i.MX8M

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan The DDR Alias address should be 0x4000 according to RM, so correct it. Fixes: 4ab8f9607aad ("remoteproc: imx_rproc: support i.MX8MQ/M") Reported-by: Terry Lv Reviewed-by: Iuliana Prodan Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file

  1   2   3   4   5   6   7   8   9   10   >