RE: [PATCH] vhost: use pr_err for vq_err

2024-05-16 Thread Peng Fan
> Subject: Re: [PATCH] vhost: use pr_err for vq_err > > On Thu, May 16, 2024 at 03:46:29PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Use pr_err to print out error message without enabling DEBUG. This > > could make people catch error easier

[PATCH] vhost: use pr_err for vq_err

2024-05-16 Thread Peng Fan (OSS)
From: Peng Fan Use pr_err to print out error message without enabling DEBUG. This could make people catch error easier. Signed-off-by: Peng Fan --- drivers/vhost/vhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index

RE: [PATCH V3 8/8] remoteproc: imx_rproc: support i.MX8MN/P

2021-04-15 Thread Peng Fan (OSS)
eng. > > On Thu, Apr 08, 2021 at 09:54:58AM +0800, peng@oss.nxp.com wrote: > > From: Peng Fan > > > > Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM > > SMCCC to start/stop M core, not using regmap interface. > > > > Signed-off-

[PATCH V4 7/8] remoteproc: imx_rproc: support i.MX7ULP

2021-04-15 Thread peng . fan
From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. And the M4 core's state is default RPROC_DETACHED and remoteproc framework not able to stop the M4 core. Signed-off

[PATCH V4 8/8] remoteproc: imx_rproc: support i.MX8MN/P

2021-04-15 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 87 ++ 1 file changed, 80 insertions(+), 7 deletions

[PATCH V4 6/8] remoteproc: imx_rproc: make clk optional

2021-04-15 Thread peng . fan
From: Peng Fan To i.MX7ULP, M4 is the master to control everything, no need to provide clk from Linux side. So make clk optional when method is IMX_RPROC_NONE. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 46 -- 1 file changed, 31

[PATCH V4 5/8] remoteproc: imx_rproc: initial support for mutilple start/stop method

2021-04-15 Thread peng . fan
From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO (start/stop through mmio) and IMX_RPROC_SMC(start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in imx_rproc_detect_mode that only SoCs using IMX_RPROC_MMIO

[PATCH V4 4/8] remoteproc: imx_rproc: parse fsl,auto-boot

2021-04-15 Thread peng . fan
From: Peng Fan Parse fsl,auto-boot to indicate whether need remoteproc framework auto boot or not. When remote processor is booted before Linux Kernel up, do not parse fsl,auto-boot, so only need to parse the property when rproc state is RPROC_DETACHED. Signed-off-by: Peng Fan --- drivers

[PATCH V4 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P

2021-04-15 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

[PATCH V4 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support

2021-04-15 Thread peng . fan
From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most services used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed

[PATCH V4 1/8] dt-bindings: remoteproc: imx_rproc: add fsl,auto-boot property

2021-04-15 Thread peng . fan
From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/

[PATCH V4 0/8] remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP

2021-04-15 Thread peng . fan
From: Peng Fan V4: Typo fix patch 4: take state as a check condition patch 5: move regmap lookup/attach to imx_rproc_detect_mode patch 6: add imx_rproc_clk_enable for optional clk patch 8: use switch/case in imx_rproc_detect_mode V3: Add A-b tag for Patch 1/2 Fix the checkpatch warning

RE: [EXT] regression due to soc_device_match not handling defer (Was: [PATCH v4 4/4] soc: imx8m: change to use platform driver)

2021-04-14 Thread Peng Fan
> (Was: [PATCH v4 4/4] soc: imx8m: change to use platform driver) > > Alice Guo (OSS) wrote on Tue, Mar 30, 2021 at 02:41:23AM +: > > Thanks for reporting this issue, I'll check and add a fix to handle defer > > probe. > > I haven't seen any follow up on this, have you had a chance to take

Re: [PATCH V2 0/8] remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP

2021-04-07 Thread Peng Fan (OSS)
On 2021/4/8 0:18, Mathieu Poirier wrote: On Tue, Mar 30, 2021 at 05:12:46PM +0800, peng@oss.nxp.com wrote: From: Peng Fan V2: Patch 1/8, use fsl as vendor, typo fix Because patchset [1] has v2 version, patch 5,6,7,8 are adapted that change. This patchset is to support i.MX7ULP/8MN

[PATCH V3 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P

2021-04-07 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

[PATCH V3 8/8] remoteproc: imx_rproc: support i.MX8MN/P

2021-04-07 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++--- 1 file changed, 82 insertions(+), 7 deletions(-) diff

[PATCH V3 7/8] remoteproc: imx_rproc: support i.MX7ULP

2021-04-07 Thread peng . fan
From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 ++--- 1 file changed, 22

[PATCH V3 5/8] remoteproc: imx_rproc: parse fsl,auto-boot

2021-04-07 Thread peng . fan
From: Peng Fan Parse fsl,auto-boot to indicate whether need remoteproc framework auto boot or not. When remote processor is booted before Linux Kernel up, do not parse fsl,auto-boot. So add an entry to store the working mode of remote processor. Currently only IMX_RPROC_NORMAL

[PATCH V3 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method

2021-04-07 Thread peng . fan
From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO (start/stop through mmio) and IMX_RPROC_SMC(start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in probe that only SoCs using IMX_RPROC_MMIO needs syscon regmap

[PATCH V3 4/8] remoteproc: imx_rproc: make clk optional

2021-04-07 Thread peng . fan
From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers

[PATCH V3 1/8] dt-bindings: remoteproc: imx_rproc: add fsl,auto-boot property

2021-04-07 Thread peng . fan
From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan Acked-by: Rob Herring --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/

[PATCH V3 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support

2021-04-07 Thread peng . fan
From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed

[PATCH V3 0/8] remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP

2021-04-07 Thread peng . fan
From: Peng Fan V3: Add A-b tag for Patch 1/2 Fix the checkpatch warning for Patch 6,8 V2: Patch 1/8, use fsl as vendor, typo fix Because patchset [1] has v2 version, patch 5,6,7,8 are adapted that change. This patchset is to support i.MX7ULP/8MN/8MP, also includes a patch to parse fsl

[PATCH V3 3/4] remoteproc: imx_rproc: move memory parsing to rproc_ops

2021-04-07 Thread peng . fan
From: Peng Fan Use the rproc_ops::prepare() hook for doing memory resources reallocation when reattaching a remote procesor. Suggested-by: Mathieu Poirier Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 8 +++- 1 file changed, 3 insertions(+), 5

[PATCH V3 4/4] remoteproc: imx_rproc: support remote cores booted before Linux Kernel

2021-04-07 Thread peng . fan
From: Peng Fan - When remote cores are kicked before Linux Kernel, we are not able to get resource table from the firmware elf file, so we need to add rsc_table to hold the resource table published by remote cores and imx_rproc_get_loaded_rsc_table is to get the resource table. - Per

[PATCH V3 2/4] remoteproc: imx_rproc: enlarge IMX7D_RPROC_MEM_MAX

2021-04-07 Thread peng . fan
From: Peng Fan 8 is not enough when we need more, such as resource table for remote cores that booted before Linux Kernel, so enlarge IMX7D_RPROC_MEM_MAX to 32. And also rename it to IMX_RPROC_MEM_MAX which make more sense. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers

[PATCH V3 1/4] remoteproc: imx_rproc: add missing of_node_put

2021-04-07 Thread peng . fan
From: Peng Fan After of_parse_phandle, we need of_node_put to decrease the refcount of the device_node. Reported-by: Mathieu Poirier Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH V3 0/4] remoteproc: imx_rproc: support remote cores booted early

2021-04-07 Thread peng . fan
From: Peng Fan V3: Add R-b tag Typo fix in Patch 3 Align the patch subject using remoteproc: imx_rproc: Update commit msg in Patch 4 V2: Patch [1,3]/4 is new Patch 4/4: Update commit message, drop unneeded code that already implemented by core This patchset is to support booted remote

Re: [PATCH v1 0/7] imx-gpcv2 improvements

2021-04-07 Thread Peng Fan (OSS)
Hi Lucas, On 2021/4/8 6:13, Lucas Stach wrote: Hi Adrien, I feel like I already mentioned to you some time ago that there is already a much more complete patch series to add this functionality on the list [1]. If you want this functionality to go upstream, please help test and extend this

[PATCH V2 8/8] remoteproc: imx_rproc: support i.MX8MN/P

2021-03-30 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++--- 1 file changed, 82 insertions(+), 7 deletions(-) diff

[PATCH V2 7/8] remoteproc: imx_rproc: support i.MX7ULP

2021-03-30 Thread peng . fan
From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 25 ++--- 1 file changed, 22

[PATCH V2 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method

2021-03-30 Thread peng . fan
From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO(start/stop through mmio) and IMX_RPROC_SMC(start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in probe that only SoCs using IMX_RPROC_MMIO needs syscon regmap

[PATCH V2 5/8] remoteproc: imx_rproc: parse fsl,auto-boot

2021-03-30 Thread peng . fan
From: Peng Fan Parse fsl,auto-boot to indicate whether need remoteproc framework auto boot or not. When remote processor is booted before Linux Kernel up, do not parse fsl,auto-boot. So add an entry to store the working mode of remote processor. Currently only IMX_RPROC_NORMAL

[PATCH V2 4/8] remoteproc: imx_rproc: make clk optional

2021-03-30 Thread peng . fan
From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers

[PATCH V2 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P

2021-03-30 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan Acked-by: Rob Herring --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

[PATCH V2 1/8] dt-bindings: remoteproc: imx_rproc: add fsl,auto-boot property

2021-03-30 Thread peng . fan
From: Peng Fan Add an optional property "fsl,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/remo

[PATCH V2 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support

2021-03-30 Thread peng . fan
From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed

[PATCH V2 0/8] remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP

2021-03-30 Thread peng . fan
From: Peng Fan V2: Patch 1/8, use fsl as vendor, typo fix Because patchset [1] has v2 version, patch 5,6,7,8 are adapted that change. This patchset is to support i.MX7ULP/8MN/8MP, also includes a patch to parse imx,auto-boot This patchset depends on [1] [1] https://patchwork.kernel.org

[PATCH V2 3/4] remoteproc: imx: move memory parsing to rproc_ops

2021-03-29 Thread peng . fan
From: Peng Fan Use the rproc_ops::prepare() hook for doing memory resources reallocation when reattach an remote procesor. Suggested-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH V2 4/4] remoteproc: imx_rproc: support remote cores booted before Linux Kernel

2021-03-29 Thread peng . fan
From: Peng Fan - Add rsc_table to hold the resource table published by remote cores. - Add attach hook. - Add imx_rproc_get_loaded_rsc_table to get resource table published by remote processors. - Add imx_rproc_detect_mode to detect remote cores' working mode. Signed-off-by: Peng Fan

[PATCH V2 1/4] remoteproc: imx: add missing of_node_put

2021-03-29 Thread peng . fan
From: Peng Fan After of_parse_phandle, we need of_node_put to decrease the refcount of the device_node. Reported-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers

[PATCH V2 2/4] remoteproc: imx_rproc: enlarge IMX7D_RPROC_MEM_MAX

2021-03-29 Thread peng . fan
From: Peng Fan 8 is not enough when we need more, such as resource table for remote cores that booted before Linux Kernel, so enlarge IMX7D_RPROC_MEM_MAX to 32. And also rename it to IMX_RPROC_MEM_MAX which make more sense. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers

[PATCH V2 0/4] remoteproc: imx: support remote cores booted early

2021-03-29 Thread peng . fan
From: Peng Fan V2: Patch [1,3]/4 is new Patch 4/4: Update commit message, drop unneeded code that already implemented by core This patchset is to support booted remote cores could be attached to linux. - Add missing of_node_put to decrease device node refcount - Enlarge IMX7D_RPROC_MEM_MAX

[PATCH 8/8] remoteproc: imx_rproc: support i.MX8MN/P

2021-03-22 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) support, we are using ARM SMCCC to start/stop M core, not using regmap interface. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 89 +++--- 1 file changed, 82 insertions(+), 7 deletions(-) diff

[PATCH 4/8] remoteproc: imx_rproc: make clk optional

2021-03-22 Thread peng . fan
From: Peng Fan To i.MX7ULP, M4 is the master to control everything, so it not need clk from A7. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers

[PATCH 6/8] remoteproc: imx_rproc: initial support for mutilple start/stop method

2021-03-22 Thread peng . fan
From: Peng Fan Add three methods IMX_RPROC_NONE(no need start/stop), IMX_RPROC_MMIO(start/stop through mmio) and IMX_RPROC_SMC (start/stop through ARM SMCCC). The current SoCs supported are all using IMX_RPROC_MMIO, add a restrict in probe that only SoCs using IMX_RPROC_MMIO needs syscon regmap

[PATCH 7/8] remoteproc: imx_rproc: support i.MX7ULP

2021-03-22 Thread peng . fan
From: Peng Fan i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 18 ++ 1 file changed, 18 insertions

[PATCH 5/8] remoteproc: imx_rproc: parse imx,auto-boot

2021-03-22 Thread peng . fan
From: Peng Fan Parse imx,auto-boot to indicate whether need remoteproc framework auto boot or not. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index

[PATCH 3/8] dt-bindings: remoteproc: imx_rproc: support i.MX8MN/P

2021-03-22 Thread peng . fan
From: Peng Fan Add i.MX8MN/P remote processor(Cortex-M7) compatible string Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b

[PATCH 1/8] dt-bindings: remoteproc: imx_rproc: add imx,auto-boot property

2021-03-22 Thread peng . fan
From: Peng Fan Add an optional property "imx,auto-boot" to indicate remote processor auto boot. Signed-off-by: Peng Fan --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/remo

[PATCH 2/8] dt-bindings: remoteproc: imx_rproc: add i.MX7ULP support

2021-03-22 Thread peng . fan
From: Peng Fan Add i.MX7ULP compatible. We use i.MX7ULP dual mode and in which case i.MX7ULP A7 core runs under control of M4 core, M4 core starts by ROM and powers most serivces used by A7 core, so A7 core has no power to start and stop M4 core. So clocks and syscon are not required. Signed

[PATCH 0/8] remoteproc: imx_rproc: support i.MX7ULP/8MN/8MP

2021-03-22 Thread peng . fan
From: Peng Fan This patchset is to support i.MX7ULP/8MN/8MP, also includes a patch to parse imx,auto-boot This patchset depends on [1][2] [1] https://patchwork.kernel.org/project/linux-remoteproc/patch/20210319104708.7754-1-peng@oss.nxp.com/ [2] https://patchwork.kernel.org/project/linux

RE: [PATCH 1/1] firmware: imx: scu-pd: add missed ADC1 pd

2021-03-21 Thread Peng Fan
true, 0 }, > { "lcd", IMX_SC_R_LCD_0, 1, true, 0 }, > { "lcd0-pwm", IMX_SC_R_LCD_0_PWM_0, 1, true, 0 }, > { "lpuart", IMX_SC_R_UART_0, 4, true, 0 }, > -- Reviewed-by: Peng Fan

[PATCH 2/2] remoteproc: imx_rproc: support remote cores booted before Linux Kernel

2021-03-19 Thread Peng Fan (OSS)
From: Peng Fan Support remote cores booted before Linux Kernel booting. Add rsc_table to hold the resource table published by remote cores Add attach hook Add imx_rproc_detect_mode to detect remote cores' working mode, and if remote cores are booted before booting Linux Kernel, parse the memory

[PATCH 1/2] remoteproc: imx_rproc: enlarge IMX7D_RPROC_MEM_MAX

2021-03-19 Thread Peng Fan (OSS)
From: Peng Fan 8 is not enough when we need more, so enlarge IMX7D_RPROC_MEM_MAX to 32, and also rename it to IMX_RPROC_MEM_MAX which make more sense. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

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

2021-03-10 Thread Peng Fan (OSS)
Mathieu, > Subject: Re: [PATCH V13 00/10] remoteproc: imx_rproc: support iMX8MQ/M > > On Sat, Mar 06, 2021 at 07:24:15PM +0800, peng@oss.nxp.com wrote: > > From: Peng Fan > > > > V13: > > Add R-b tag from Rob for patch 1. > > Drop the reserved mem

[PATCH V2] arm64: dts: imx8mp: add wdog2/3 nodes

2021-03-07 Thread peng . fan
From: Peng Fan There is wdog[2,3] in i.MX8MP, so add them. Signed-off-by: Peng Fan --- V2: Update commit log arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts

[PATCH] arm64: dts: imx8mp: add wdog2/3 nodes

2021-03-06 Thread peng . fan
From: Peng Fan There is wdog[2,3] in i.MX8MP, so add them, all wdogs share the same clock root, so use the wdog1 clk here. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale

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

2021-03-06 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 V13 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-03-06 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 V13 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-03-06 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 V13 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-03-06 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 V13 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-03-06 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 V13 05/10] remoteproc: imx_rproc: correct err message

2021-03-06 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 V13 04/10] remoteproc: add is_iomem to da_to_va

2021-03-06 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 V13 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-03-06 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| 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl

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

2021-03-06 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Reviewed-by: Mathieu Poirier 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

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

2021-03-06 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Reviewed-by: Rob Herring Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 61 +++ .../bindings/remoteproc/imx-rproc.txt | 33 -- 2 files changed, 61

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

2021-03-06 Thread peng . fan
From: Peng Fan V13: Add R-b tag from Rob for patch 1. Drop the reserved memory node from patch 2 per Rob's comment. Mathieu, Bjorn Only patch 2 not have R-b/A-b tag, but since Rob's only has a minor comment, and addressed in this version, is it ok for you take into remoteproc next branch

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

2021-03-04 Thread Peng Fan
Hi Rob, > Subject: Re: [PATCH V3 4/5] dt-bindings: mmc: fsl-imx-esdhc: add clock > bindings > > On Wed, Feb 24, 2021 at 9:23 PM wrote: > > > > From: Peng Fan > > > > Add clock bindings for fsl-imx-esdhc yaml > > > > Signed-off-by: Peng Fan

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

2021-03-03 Thread Peng Fan (OSS)
Hi Rob, > Subject: [PATCH V12 01/10] dt-bindings: remoteproc: convert imx rproc > bindings to json-schema Are you fine with patch 1, 2? Thanks, Peng. > > From: Peng Fan > > Convert the imx rproc binding to DT schema format using json-schema. > >

RE: [PATCH V3 0/5] imx esdhc dt/driver update

2021-03-03 Thread Peng Fan (OSS)
Hi Shawn, > Subject: Re: [PATCH V3 0/5] imx esdhc dt/driver update > > On Thu, 25 Feb 2021 at 04:22, wrote: > > > > From: Peng Fan > > > > V3: > > Patch 1, drop unneeded pinctrl-0/1/2 > > Patch 2 is new to avoid break dt bindings check &

[PATCH V3 4/5] dt-bindings: mmc: fsl-imx-esdhc: add clock bindings

2021-02-24 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 V3 3/5] arm64: dts: imx8qxp: correct usdhc clock-names sequence

2021-02-24 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 V3 1/5] dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings

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

[PATCH V3 2/5] dt-bindings: clock: imx8qxp-lpcg: correct the example clock-names

2021-02-24 Thread peng . fan
From: Peng Fan Align with all other i.MX using the mmc controller, align the clock-names. Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/clock/imx8qxp-lpcg.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock

[PATCH V3 0/5] imx esdhc dt/driver update

2021-02-24 Thread peng . fan
From: Peng Fan V3: Patch 1, drop unneeded pinctrl-0/1/2 Patch 2 is new to avoid break dt bindings check V2: patch 1, 2, 3 is new patch 4 is not changed https://patchwork.kernel.org/project/linux-arm-kernel/cover/1611198593-16287-1-git-send-email-peng@nxp.com/ Peng Fan (5): dt

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

2021-02-24 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 V12 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-02-17 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 V12 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-02-17 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 V12 05/10] remoteproc: imx_rproc: correct err message

2021-02-17 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 V12 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-02-17 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 V12 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-02-17 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 V12 04/10] remoteproc: add is_iomem to da_to_va

2021-02-17 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 V12 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-02-17 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 V12 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-02-17 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 V12 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-02-17 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| 61 +++ .../bindings/remoteproc/imx-rproc.txt | 33 -- 2 files changed, 61 insertions(+), 33

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

2021-02-17 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 V12 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-02-17 Thread peng . fan
From: Peng Fan V12: Add maxItems to avoid dt_bindings_check fail Rebased on top of linux-next 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

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

2021-02-15 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 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-02-15 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 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-02-15 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 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-02-15 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 05/10] remoteproc: imx_rproc: correct err message

2021-02-15 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 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-02-15 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 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-02-15 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| 60 +++ .../bindings/remoteproc/imx-rproc.txt | 33 -- 2 files changed, 60 insertions(+), 33

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

2021-02-15 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-15 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-15 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 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

  1   2   3   4   5   6   7   8   9   10   >