RE: [PATCH 04/10] remoteproc: imx_rproc: make syscon optional

2020-08-19 Thread Peng Fan
> Subject: Re: [PATCH 04/10] remoteproc: imx_rproc: make syscon optional > > On Wed, Aug 19, 2020 at 12:51:27AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH 04/10] remoteproc: imx_rproc: make syscon > > > optional > > > > > > Hi Peng, > > >

RE: [PATCH 04/10] remoteproc: imx_rproc: make syscon optional

2020-08-18 Thread Peng Fan
> Subject: Re: [PATCH 04/10] remoteproc: imx_rproc: make syscon optional > > Hi Peng, > > On Fri, Jul 24, 2020 at 04:08:07PM +0800, Peng Fan wrote: > > Make syscon optional, since i.MX8QM/QXP/7ULP not have SRC to control > M4. > > But currently i.MX8QM/QXP/7ULP no

[PATCH] perf bench numa: Remove dead code in parse_nodes_opt()

2020-08-14 Thread Peng Fan
In the function parse_nodes_opt(), the statement "return 0;" is dead code, remove it. Signed-off-by: Peng Fan --- tools/perf/bench/numa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 5797253..70c8c2c 100644 --- a/tools/

[PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ

2020-07-30 Thread peng . fan
From: Peng Fan Add the cm4 reset used by the remoteproc driver Signed-off-by: Peng Fan --- drivers/reset/reset-imx7.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index d170fe663210..87b6e2d46fb6 100644 --- a/drivers/reset

[PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset

2020-07-30 Thread peng . fan
From: Peng Fan Add the m4 reset used by the remoteproc driver Signed-off-by: Peng Fan --- include/dt-bindings/reset/imx8mq-reset.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/imx8mq-reset.h b/include/dt-bindings/reset/imx8mq-reset.h index

RE: [PATCH] remoteproc: virtio: support sharing vdev buffer

2020-07-30 Thread Peng Fan
Hi Mathieu, > Subject: Re: [PATCH] remoteproc: virtio: support sharing vdev buffer > > Hi Peng, > > On Wed, Jul 22, 2020 at 09:15:43PM +0800, Peng Fan wrote: > > Support sharing vdev buffer between multiple vdevs by using name > > "vdevbuffer". > > &

RE: [PATCH 1/2] clk: imx: imx8m: avoid memory leak

2020-07-28 Thread Peng Fan
> Subject: Re: [PATCH 1/2] clk: imx: imx8m: avoid memory leak > > Quoting peng@nxp.com (2020-07-27 19:54:48) > > From: Peng Fan > > > > Use devm_kzalloc to avoid memory leak when probe fail. > > Please add () to functions in commit text. V2 is just out,

RE: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-28 Thread Peng Fan
> Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > boot > > On Tue, Jul 28, 2020 at 07:50:04AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and > > > early boot > > > > > >

[PATCH 2/2] remoteproc: imx_rproc: add elf memory hooks

2020-07-28 Thread peng . fan
From: Peng Fan Please not apply 2/2 for now, this 2/2 has not gone through test on all i.MX8 platforms. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c

[PATCH 1/2] remoteproc: elf: support platform specific memory hook

2020-07-28 Thread peng . fan
From: Peng Fan To arm64, "dc zva, dst" is used in memset. Per ARM DDI 0487A.j, chapter C5.3.8 DC ZVA, Data Cache Zero by VA, "If the memory region being zeroed is any type of Device memory, this instruction can give an alignment fault which is prioritized in the same way as

[PATCH 1/2] remoteproc: elf: support platform specific memory hook

2020-07-28 Thread peng . fan
From: Peng Fan To arm64, "dc zva, dst" is used in memset. Per ARM DDI 0487A.j, chapter C5.3.8 DC ZVA, Data Cache Zero by VA, "If the memory region being zeroed is any type of Device memory, this instruction can give an alignment fault which is prioritized in the same way as

[PATCH 2/2] remoteproc: imx_rproc: add elf memory hooks

2020-07-28 Thread peng . fan
From: Peng Fan Please not apply 2/2 for now, this 2/2 has not gone through test on all i.MX8 platforms. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c

[PATCH v2 2/2] clk: imx: imx8m: use devm_of_clk_add_hw_provider()

2020-07-28 Thread peng . fan
From: Peng Fan Use devm_of_clk_add_hw_provider() to simplify code. To i.MX8MP, also add err handling. Signed-off-by: Peng Fan --- V2: Add () to functions in commit log drivers/clk/imx/clk-imx8mm.c | 9 ++--- drivers/clk/imx/clk-imx8mn.c | 9 ++--- drivers/clk/imx/clk-imx8mp.c | 8

[PATCH v2 1/2] clk: imx: imx8m: avoid memory leak

2020-07-28 Thread peng . fan
From: Peng Fan Use devm_kzalloc() to avoid memory leak when probe fail. Signed-off-by: Peng Fan --- V2: Add () to functions in commit log drivers/clk/imx/clk-imx8mm.c | 3 +-- drivers/clk/imx/clk-imx8mn.c | 15 +-- drivers/clk/imx/clk-imx8mp.c | 2 +- drivers/clk/imx/clk

[PATCH] ARM: imx_v6_v7_defconfig: Support i.MX8MN/P/Q

2020-07-28 Thread peng . fan
From: Peng Fan i.MX8MN/P/Q is built with AArch64 hardware, this is to support it could run in AArch32 mode with clock and pinctrl driver enabled. Signed-off-by: Peng Fan --- arch/arm/configs/imx_v6_v7_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs

RE: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-28 Thread Peng Fan
> Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > boot > > On Mon, Jul 27, 2020 at 09:18:31AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and > > > early boot > > > > > >

[PATCH 1/2] clk: imx: imx8m: avoid memory leak

2020-07-27 Thread peng . fan
From: Peng Fan Use devm_kzalloc to avoid memory leak when probe fail. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 3 +-- drivers/clk/imx/clk-imx8mn.c | 15 +-- drivers/clk/imx/clk-imx8mp.c | 2 +- drivers/clk/imx/clk-imx8mq.c | 3 +-- 4 files changed, 8

[PATCH 2/2] clk: imx: imx8m: use devm_of_clk_add_hw_provider

2020-07-27 Thread peng . fan
From: Peng Fan Use devm_of_clk_add_hw_provider to simplify code. To i.MX8MP, also add err handling. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 9 ++--- drivers/clk/imx/clk-imx8mn.c | 9 ++--- drivers/clk/imx/clk-imx8mp.c | 8 ++-- drivers/clk/imx/clk-imx8mq.c | 9

RE: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-27 Thread Peng Fan
> Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > boot > > On Mon, Jul 27, 2020 at 06:44:32AM +0000, Peng Fan wrote: > > Hi Oleksij, > > > > > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and > > > early bo

RE: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Peng Fan
> Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > On Mon, Jul 27, 2020 at 06:51:00AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > > > On Mon, Jul 27, 2020 at 06:28:20AM +

RE: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Peng Fan
> Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > On Mon, Jul 27, 2020 at 06:28:20AM +0000, Peng Fan wrote: > > Hi Oleksij, > > > > > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > > > > > On Fri, Jul 24, 2020

RE: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-27 Thread Peng Fan
Hi Oleksij, > Subject: Re: [PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early > boot > > Hi, > > On Fri, Jul 24, 2020 at 04:08:03PM +0800, Peng Fan wrote: > > This patchset is to support i.MX8MQ/M coproc booted before linux. > > Since i.MX8MQ/M was

RE: [PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-27 Thread Peng Fan
Hi Oleksij, > Subject: Re: [PATCH 03/10] remoteproc: imx: use devm_ioremap > > On Fri, Jul 24, 2020 at 04:08:06PM +0800, Peng Fan wrote: > > We might need to map an region multiple times, becaue the region might > > be shared between remote processors, such i.MX8QM with dual

[PATCH 10/10] remoteproc: imx_rproc: support coproc booting before Linux

2020-07-24 Thread Peng Fan
Detect Coproc booted or not and Parse resource table Set remoteproc state to RPROC_DETACHED when M4 is booted early Add attach hook Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 75 -- 1 file changed, 73 insertions(+), 2 deletions(-) diff

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

2020-07-24 Thread 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 --- drivers/remoteproc/imx_rproc.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/remoteproc

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

2020-07-24 Thread 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 --- drivers/remoteproc/imx_rproc.c | 99 +- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/drivers

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

2020-07-24 Thread Peng Fan
Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add delayed work to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 102 +++-- 1 file changed, 99 insertions(+), 3

[PATCH 04/10] remoteproc: imx_rproc: make syscon optional

2020-07-24 Thread Peng Fan
Make syscon optional, since i.MX8QM/QXP/7ULP not have SRC to control M4. But currently i.MX8QM/QXP/7ULP not added, so still check regmap when start/stop to avoid unhappy things. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 11 +-- 1 file changed

[PATCH 00/10] remoteproc: imx_rproc: support iMX8M and early boot

2020-07-24 Thread Peng Fan
/syscon optional patch for i.MX8QM/QXP was still kept here to avoid rebase error. Peng Fan (10): dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M remoteproc: imx_rproc: correct err message remoteproc: imx: use devm_ioremap remoteproc: imx_rproc: make syscon optional remoteproc: imx_rproc

[PATCH 05/10] remoteproc: imx_rproc: make clk optional

2020-07-24 Thread Peng Fan
To i.MX7ULP Dual Boot, 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/remoteproc

[PATCH 06/10] remoteproc: imx_rproc: add load hook

2020-07-24 Thread Peng Fan
, dst" will trigger abort. So add i.MX specific loader to address the TCM write issue. The change not impact i.MX6/7 function. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 76 ++ 1 file changed, 76 insertions(+) diff --git a/drivers/re

[PATCH 02/10] remoteproc: imx_rproc: correct err message

2020-07-24 Thread 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 --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c

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

2020-07-24 Thread Peng Fan
Add i.MX8MQ/M compatible string Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/remoteproc/imx-rproc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt b/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt

[PATCH 03/10] remoteproc: imx: use devm_ioremap

2020-07-24 Thread 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: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 5 +++-- 1 file

RE: [PATCH v6 0/9] remoteproc: Add support for attaching with rproc

2020-07-24 Thread Peng Fan
> Subject: [PATCH v6 0/9] remoteproc: Add support for attaching with rproc For the series, Tested-by: Peng Fan Regards, Peng. > > This set provides functionality allowing the remoteproc core to attach to a > remote processor that was started by another entity. > > New

[PATCH] tracing/uprobe: Remove dead code in trace_uprobe_register()

2020-07-23 Thread Peng Fan
In the function trace_uprobe_register(), the statement "return 0;" out of switch case is dead code, remove it. Signed-off-by: Peng Fan --- kernel/trace/trace_uprobe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c ind

[PATCH] remoteproc: virtio: support sharing vdev buffer

2020-07-22 Thread Peng Fan
Support sharing vdev buffer between multiple vdevs by using name "vdevbuffer". Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/remoteproc_virtio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/

RE: [PATCH 2/7] firmware: imx: scu: Support reception of messages of any size

2020-07-20 Thread Peng Fan
> Subject: [PATCH 2/7] firmware: imx: scu: Support reception of messages of > any size Could fast_ipc be used for your case? I am not fans to use the legacy method which is error prone. Thanks, Peng. > > From: Franck LENORMAND > > The word of a message can arrive in any order and the current

RE: [PATCH 1/7] firmware: imx: scu-rm: Add Resource Management APIs

2020-07-20 Thread Peng Fan
Hi Franck, > Subject: [PATCH 1/7] firmware: imx: scu-rm: Add Resource Management APIs Are you using an old base? This was already in tree. Regards, Peng. > > From: Franck LENORMAND > > This patch adds the imx_sc_rm_is_resource_owned indicating if a specific > resource is owned by the

[PATCH v2] mips/vdso: Fix resource leaks in genvdso.c

2020-07-14 Thread Peng Fan
Close "fd" before the return of map_vdso() and close "out_file" in main(). Signed-off-by: Peng Fan --- v2: - add one missing fclose() --- arch/mips/vdso/genvdso.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/vdso/genvdso.c b/arch/mips/

[PATCH] mips/vdso: Fix resource leaks in genvdso.c

2020-07-14 Thread Peng Fan
Close "fd" before the return of map_vdso() and close "out_file" in main(). Signed-off-by: Peng Fan --- arch/mips/vdso/genvdso.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/vdso/genvdso.c b/arch/mips/vdso/genvdso.c index be57b832..f459c7a 100644

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-07-12 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > Sorry for the late reply -- a couple of conferences kept me busy. > > > On Wed, 1 Jul 2020, Michael S. Tsirkin wrote: > > On Wed, Jul 01, 2020 at 10:34:53AM -0700, Stefano Stabellini wrote: > > > Would you be in favor of a more

[PATCH] ARM: imx_v6_v7_defconfig: Support i.MX8MM

2020-07-09 Thread peng . fan
From: Peng Fan i.MX8MM is built with AArch64 hardware, this is to support it could run in Aarch32 mode with clock and pinctrl driver enabled. Signed-off-by: Peng Fan --- To make kernel boot, needs the GIC_V3 select patch: https://patchwork.kernel.org/patch/11655383/ arch/arm/configs

[PATCH V2] soc: imx: select ARM_GIC_V3 for i.MX8M

2020-07-09 Thread peng . fan
From: Peng Fan Select ARM_GIC_V3, then it is able to use gic v3 driver in aarch32 mode linux on aarch64 hardware. For aarch64 mode, it not hurts to select ARM_GIC_V3. Acked-by: Arnd Bergmann Signed-off-by: Peng Fan --- V2: Select GIC V3 when ARCH_MXC is selected to avoid compile test error

Re: Re: linux-next: build warning after merge of the spi tree

2020-07-09 Thread Peng Fan
Hi, Browm, Stephen Firstly, feel sorry for the problem introduced by me. I think I must modify my bad,but should I send another patch to delete the label "out_free" or re-send patch of v2(which maybe need to go back)? Could you give me some advices? Sorry again. Thanks Pen

Re: linux-next: build warning after merge of the spi tree

2020-07-08 Thread Peng Fan
Very sorry for that, I will re-send v2 later. Stephen Rothwell s...@canb.auug.org.auwrote: > Hi all, > > After merging the spi tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/spi/spi-atmel.c: In function 'atmel_spi_probe': >

[PATCH] spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed

2020-07-07 Thread Peng Fan
There is no need to call spi_master_put() if spi_alloc_master() failed, it should return -ENOMEM directly. Signed-off-by: Peng Fan --- drivers/spi/spi-atmel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 57ee8c3

RE: [PATCH V3 0/3] ARM: imx: move cpu code to drivers/soc/imx

2020-07-03 Thread Peng Fan
> Subject: Re: [PATCH V3 0/3] ARM: imx: move cpu code to drivers/soc/imx > > On 5/20/2020 9:01 AM, Peng Fan wrote: > > From: Peng Fan > > > > V3: > > Rebased to latest next tree > > Resolved the conflicts with vf610 soc patch > > > > V2: >

[PATCH] power: supply: rt5033_battery: Fix error code in rt5033_battery_probe()

2020-07-02 Thread Peng Fan
In the function rt5033_battery_probe(), it should return -ENOMEM instead of -EINVAL when call function devm_kzalloc() failed. Signed-off-by: Peng Fan --- drivers/power/supply/rt5033_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Peng Fan
> Subject: RE: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, 29 Jun 2020, Peng Fan wrote: > > > > If that is the case, how is it possible that virtio breaks on ARM > > > > using the default dma_ops? The breakage is not Xen related (except > > >

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, Jun 29, 2020 at 06:25:41AM +0000, Peng Fan wrote: > > > > > > Anyway, re-reading the last messages of the original thread > > > > > > [1], it looks like Peng had a clear idea

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, Jun 29, 2020 at 03:05:19AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > > > > > On Thu, Jun 25, 2020 at 10:31:27AM -0700, Stefano Stabellini wrote: &g

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > On Wed, Jun 24, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > > > > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > > > On Wed, Jun 24, 2020 at 05:17:32PM +08

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
4, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > > > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > > On Wed, Jun 24, 2020 at 05:17:32PM +0800, Peng Fan wrote: > > > > > > > Export xen_swiotlb for all platforms using xen swiot

[PATCH] xen: introduce xen_vring_use_dma

2020-06-24 Thread Peng Fan
Export xen_swiotlb for all platforms using xen swiotlb Use xen_swiotlb to determine when vring should use dma APIs to map the ring: when xen_swiotlb is enabled the dma API is required. When it is disabled, it is not required. Signed-off-by: Peng Fan --- V2: This is a modified version from

[PATCH] fs/read_write.c: Fix memory leak in read_write.c

2020-06-23 Thread Peng Fan
sful, then the block of memory will not be released, because it is necessary to determine whether they are equal. So we need to change the order. Signed-off-by: Peng Fan --- fs/read_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/read_write.c b/fs/read_write.c index b

RE: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases

2020-06-23 Thread Peng Fan
Hi Shawn, > Subject: Re: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases > > On Mon, Jun 01, 2020 at 10:06:19AM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > The devices could be enumerated properly with aliases. > > > > Signed-off-by: Pen

[PATCH V2 0/3] arm64: dts: imx8qxp: dtb aliases fix/update

2020-06-23 Thread peng . fan
From: Peng Fan V2: Fix order in patch 2/3, no other changes Minor patchset to fix and update alias for i.MX8QXP Peng Fan (3): arm64: dts: imx8qxp: add alias for lsio MU arm64: dts: imx8qxp: add i2c aliases arm64: dts: imx8qxp: Add ethernet alias arch/arm64/boot/dts/freescale

[PATCH V2 1/3] arm64: dts: imx8qxp: add alias for lsio MU

2020-06-23 Thread peng . fan
From: Peng Fan Add lsio mu alias for all lsio MUs that could communicate with SCU, imx_scu_enable_general_irq_channel will parse the alias to get the mu resource id, if using other MU, not MU1, the `mu_resource_id` is not what we expect, so add alias to fix this issue. Signed-off-by: Peng Fan

[PATCH V2 2/3] arm64: dts: imx8qxp: add i2c aliases

2020-06-23 Thread peng . fan
From: Peng Fan The devices could be enumerated properly with aliases. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index

[PATCH V2 3/3] arm64: dts: imx8qxp: Add ethernet alias

2020-06-23 Thread peng . fan
From: Peng Fan Add ethernet alias, so bootloader code can use this to find the primary ethernet device, and set the MAC address. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale

[PATCH] tools: PCI: Fix memory leak in run_test

2020-06-11 Thread Peng Fan
We should free "test" before the return of run_test. Signed-off-by: Peng Fan --- tools/pci/pcitest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/pci/pcitest.c b/tools/pci/pcitest.c index 0a1344c..7c20332 100644 --- a/tools/pci/pcitest.c +++ b/tools/pci/pcitest.c @@ -

[PATCH V3 0/3] firmware: imx: fix/update cm4 and add resource check

2020-06-04 Thread peng . fan
From: Peng Fan V3: Fix comments Add R-b tag V2: Add R-b tag Drop patch 3/4 from V1 Add comments and update Copyright for patch 2/3 keep code consistency in Patch 3/3 V1: https://patchwork.kernel.org/cover/11505045/ Fix cm40 power domain, update to add more cm4 resources Add resource

[PATCH V3 3/3] firmware: imx: scu-pd: add more cm4 resources

2020-06-04 Thread peng . fan
From: Peng Fan Add more cm4 resources, then linux could use cm4's i2c/lpuart and could kick cm4 core. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/firmware/imx/scu-pd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/imx

[PATCH V3 1/3] firmware: imx: scu-pd: fix cm40 power domain

2020-06-04 Thread peng . fan
From: Peng Fan The postfix needs to be false. Alought compiler use 0 for postfix now, and take start_from as 0, it is better we add explicit false to postfix. Fixes: 705dcca91d0a("firmware: imx: scu-pd: add power domain for I2C and INTMUX in CM40 SS") Signed-off-by: Peng Fan Reviewe

[PATCH V3 2/3] firmware: imx: add resource management api

2020-06-04 Thread peng . fan
From: Peng Fan Add resource management API, when we have multiple partition running together, resources not owned to current partition should not be used. Reviewed-by: Leonard Crestez Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/firmware/imx/Makefile | 2 +- drivers

RE: [PATCH V2 2/3] firmware: imx: add resource management api

2020-06-04 Thread Peng Fan
> Subject: RE: [PATCH V2 2/3] firmware: imx: add resource management api > [...] > > +/* > > + * Copyright (C) 2016 Freescale Semiconductor, Inc. > > + * Copyright 2017-2020 NXP > > + * > > + * Header file containing the public API for the System Controller > > +(SC) > > + * Power Management

[PATCH] soc: imx: scu: use devm_kasprintf

2020-06-03 Thread peng . fan
From: Peng Fan Use devm_kasprintf to simplify code Signed-off-by: Peng Fan --- drivers/soc/imx/soc-imx-scu.c | 37 +++-- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/drivers/soc/imx/soc-imx-scu.c b/drivers/soc/imx/soc-imx-scu.c index

[PATCH V4 1/2] arm64: dts: imx8m: add mu node

2020-06-02 Thread peng . fan
From: Peng Fan Add mu node to let A53 could communicate with M Core. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 8 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 8

[PATCH V4 2/2] clk: imx8mp: add mu root clk

2020-06-02 Thread peng . fan
From: Peng Fan Add mu root clk for mu mailbox usage. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index b4d9db9d5bf1..ca747712400f 100644

[PATCH V4 0/2] imx8m: add mu support

2020-06-02 Thread peng . fan
From: Peng Fan V4: Drop patch 1/3, since https://lkml.org/lkml/2020/6/1/370 already has the yaml changes V3: Add R-b tag Remove undocumented property V2: Add dt-bindings Merge dts changes into one patch, since all is to add mu node Add mu dt bindings Add mu node Add i.MX8MP mu root clk

[PATCH V2 1/3] firmware: imx: scu-pd: fix cm40 power domain

2020-06-02 Thread peng . fan
From: Peng Fan The postfix needs to be false. Alought compiler use 0 for postfix now, and take start_from as 0, it is better we add explicit false to postfix. Fixes: 705dcca91d0a("firmware: imx: scu-pd: add power domain for I2C and INTMUX in CM40 SS") Signed-off-by: Peng Fan Reviewe

[PATCH V2 2/3] firmware: imx: add resource management api

2020-06-02 Thread peng . fan
From: Peng Fan Add resource management API, when we have multiple partition running together, resources not owned to current partition should not be used. Reviewed-by: Leonard Crestez Signed-off-by: Peng Fan --- drivers/firmware/imx/Makefile | 2 +- drivers/firmware/imx/rm.c

[PATCH V2 3/3] firmware: imx: scu-pd: add more cm4 resources

2020-06-02 Thread peng . fan
From: Peng Fan Add more cm4 resources, then linux could use cm4's i2c/lpuart and could kick cm4 core. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/firmware/imx/scu-pd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/imx

[PATCH V2 0/3] firmware: imx: fix/update cm4 and add resource check

2020-06-02 Thread peng . fan
From: Peng Fan V2: Add R-b tag Drop patch 3/4 from V1 Add comments and update Copyright for patch 2/3 keep code consistency in Patch 3/3 V1: https://patchwork.kernel.org/cover/11505045/ Fix cm40 power domain, update to add more cm4 resources Add resource owner check, to not register

RE: [PATCH V3 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M

2020-06-02 Thread Peng Fan
> Subject: [PATCH V3 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M I'll drop this patch for yaml update, since https://lkml.org/lkml/2020/6/1/370 includes imx8mq/mm/n/p. Thanks, Peng. > > From: Peng Fan > > Add i.MX8MQ/M/N/P compatible string to support i.MX8M SoCs > &

RE: [PATCH 2/4] firmware: imx: add resource management api

2020-06-02 Thread Peng Fan
> Subject: RE: [PATCH 2/4] firmware: imx: add resource management api > > > From: Peng Fan > > Sent: Tuesday, June 2, 2020 12:51 PM > > > > > > > From: Peng Fan > > > > Sent: Monday, June 1, 2020 8:40 PM > > > > > > >

RE: [PATCH V3 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M

2020-06-01 Thread Peng Fan
Hi Oleksij, > Subject: Re: [PATCH V3 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M > > On Mon, Jun 01, 2020 at 04:20:00PM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > Add i.MX8MQ/M/N/P compatible string to support i.MX8M SoCs > > > > Re

RE: [PATCH 2/4] firmware: imx: add resource management api

2020-06-01 Thread Peng Fan
> Subject: RE: [PATCH 2/4] firmware: imx: add resource management api > > > From: Peng Fan > > Sent: Thursday, April 23, 2020 3:00 PM > > > > Add resource management API, when we have multiple partition running > > together, resources not owned to

RE: [PATCH 2/4] firmware: imx: add resource management api

2020-06-01 Thread Peng Fan
> Subject: RE: [PATCH 2/4] firmware: imx: add resource management api > > > From: Peng Fan > > Sent: Monday, June 1, 2020 8:40 PM > > > > > > > From: Peng Fan > > > > Sent: Friday, April 24, 2020 9:12 AM > > > > > > > &g

RE: [PATCH 2/4] firmware: imx: add resource management api

2020-06-01 Thread Peng Fan
> Subject: RE: [PATCH 2/4] firmware: imx: add resource management api > > > From: Peng Fan > > Sent: Friday, April 24, 2020 9:12 AM > > > > > > > From: Peng Fan > > > > Sent: Thursday, April 23, 2020 6:57 PM > > > > > &g

[PATCH V3 0/3] imx8m: add mu support

2020-06-01 Thread peng . fan
From: Peng Fan V3: Add R-b tag Remove undocumented property V2: Add dt-bindings Merge dts changes into one patch, since all is to add mu node Add mu dt bindings Add mu node Add i.MX8MP mu root clk Peng Fan (3): dt-bindings: mailbox: imx-mu: support i.MX8M arm64: dts: imx8m: add mu

[PATCH V3 2/3] arm64: dts: imx8m: add mu node

2020-06-01 Thread peng . fan
From: Peng Fan Add mu node to let A53 could communicate with M Core. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 8 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 8 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 8 arch/arm64/boot/dts

[PATCH V3 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M

2020-06-01 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M/N/P compatible string to support i.MX8M SoCs Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/mailbox/fsl,mu.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox

[PATCH V3 3/3] clk: imx8mp: add mu root clk

2020-06-01 Thread peng . fan
From: Peng Fan Add mu root clk for mu mailbox usage. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index b4d9db9d5bf1..ca747712400f 100644

RE: [PATCH V2 2/3] arm64: dts: imx8m: add mu node

2020-06-01 Thread Peng Fan
> Subject: RE: [PATCH V2 2/3] arm64: dts: imx8m: add mu node > > > From: Peng Fan > > Sent: Monday, June 1, 2020 11:43 AM > > > > Add mu node to let A53 could communicate with M Core. > > > > Signed-off-by: Peng Fan > > --- > > arch/arm64

[PATCH V2 3/3] clk: imx8mp: add mu root clk

2020-05-31 Thread peng . fan
From: Peng Fan Add mu root clk for mu mailbox usage. Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng --- drivers/clk/imx/clk-imx8mp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index b4d9db9d5bf1..ca747712400f 100644

[PATCH V2 2/3] arm64: dts: imx8m: add mu node

2020-05-31 Thread peng . fan
From: Peng Fan Add mu node to let A53 could communicate with M Core. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 9 + arch/arm64/boot/dts/freescale/imx8mn.dtsi | 9 + arch/arm64/boot/dts/freescale/imx8mp.dtsi | 9 + arch/arm64/boot/dts

[PATCH V2 1/3] dt-bindings: mailbox: imx-mu: support i.MX8M

2020-05-31 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M/N/P compatible string to support i.MX8M SoCs Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/mailbox/fsl,mu.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/fsl,mu.txt b

[PATCH V2 0/3] imx8m: add mu support

2020-05-31 Thread peng . fan
From: Peng Fan V2: Add dt-bindings Merge dts changes into one patch, since all is to add mu node Add mu dt bindings Add mu node Add i.MX8MP mu root clk Peng Fan (3): dt-bindings: mailbox: imx-mu: support i.MX8M arm64: dts: imx8m: add mu node clk: imx8mp: add mu root clk Documentation

[PATCH 3/3] arm64: dts: imx8qxp: Add ethernet alias

2020-05-31 Thread peng . fan
From: Peng Fan Add ethernet alias, so bootloader code can use this to find the primary ethernet device, and set the MAC address. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale

[PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases

2020-05-31 Thread peng . fan
From: Peng Fan The devices could be enumerated properly with aliases. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index

[PATCH 1/3] arm64: dts: imx8qxp: add alias for lsio MU

2020-05-31 Thread peng . fan
From: Peng Fan Add lsio mu alias for all lsio MUs that could communicate with SCU, imx_scu_enable_general_irq_channel will parse the alias to get the mu resource id, if using other MU, not MU1, the `mu_resource_id` is not what we expect, so add alias to fix this issue. Signed-off-by: Peng Fan

[PATCH 0/3] arm64: dts: imx8qxp: dtb aliases fix/update

2020-05-31 Thread peng . fan
From: Peng Fan Minor patchset to fix and update alias for i.MX8QXP Peng Fan (3): arm64: dts: imx8qxp: add alias for lsio MU arm64: dts: imx8qxp: add i2c aliases arm64: dts: imx8qxp: Add ethernet alias arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 ++ 1 file changed, 10

RE: [PATCH v1 2/2] arm64: dts: imx8mn-ddr4-evk: correct ldo1/ldo2 voltage range

2020-05-21 Thread Peng Fan
> Subject: [PATCH v1 2/2] arm64: dts: imx8mn-ddr4-evk: correct ldo1/ldo2 > voltage range > > Correct ldo1 voltage range from wrong high group(3.0v~3.3v) to low group > (1.6v~1.9v) because the ldo1 should be 1.8v. Actually, two voltage groups > have been supported at bd718x7-regulator driver,

RE: [PATCH V2 0/3] ARM: imx: move cpu code to drivers/soc/imx

2020-05-20 Thread Peng Fan
Hi Shawn, > Subject: Re: [PATCH V2 0/3] ARM: imx: move cpu code to drivers/soc/imx > > On Wed, May 20, 2020 at 8:57 AM Shawn Guo > wrote: > > > > On Wed, Apr 29, 2020 at 05:17:20PM +0800, peng@nxp.com wrote: > > > From: Peng Fan > > >

[PATCH V3 0/3] ARM: imx: move cpu code to drivers/soc/imx

2020-05-20 Thread peng . fan
From: Peng Fan V3: Rebased to latest next tree Resolved the conflicts with vf610 soc patch V2: Keep i.MX1/2/3/5 cpu type for completness Correct return value in patch 1/3 use CONFIG_ARM to guard compile soc-imx.c in patch 3/3 V1: https://patchwork.kernel.org/cover/11433689/ RFC version

[PATCH V3 2/3] ARM: imx: move cpu definitions into a header

2020-05-20 Thread peng . fan
From: Peng Fan The soc device register code will be moved to drivers/soc/imx/, the code needs the cpu type definitions. So let's move the cpu type definitions to a header. Signed-off-by: Peng Fan --- arch/arm/mach-imx/mxc.h | 28 +--- include/soc/imx/cpu.h | 36

[PATCH V3 1/3] ARM: imx: use device_initcall for imx_soc_device_init

2020-05-20 Thread peng . fan
From: Peng Fan This is preparation to move imx_soc_device_init to drivers/soc/imx/ There is no reason to must put dt devices under /sys/devices/soc0, they could also be under /sys/devices/platform, so we could pass NULL as parent when calling of_platform_default_populate. Following soc-imx8.c

[PATCH V3 3/3] soc: imx: move cpu code to drivers/soc/imx

2020-05-20 Thread peng . fan
From: Peng Fan Move the soc device register code to drivers/soc/imx to align with i.MX8. Signed-off-by: Peng Fan --- arch/arm/mach-imx/cpu.c | 182 --- drivers/soc/imx/Makefile | 3 + drivers/soc/imx/soc-imx.c | 192

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