[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 bb75

[PATCH] test/vsock: add install target

2024-07-09 Thread Peng Fan (OSS)
From: Peng Fan Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan --- tools/testing/vsock/Makefile | 12 1 file changed, 12 insertions(+) diff --git a/tools/testing/vsock/Makefile b/tools/testing/vsock/Makefile index a7f56a09ca9f..5c844

[PATCH V2] test/vsock: add install target

2024-07-10 Thread Peng Fan (OSS)
From: Peng Fan Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan --- V2: Use VSOCK_INSTALL_PATH, drop INSTALL_PATH tools/testing/vsock/Makefile | 13 + 1 file changed, 13 insertions(+) diff --git a/tools/testing/vsock/Makefile b/tool

[PATCH 0/6] remoteproc: imx_rproc: various patches for misc

2024-07-12 Thread Peng Fan (OSS)
This patchset is to upstream a few patches that in NXP downstream for quite sometime. For patches directly cherry-picked from NXP downstream, I keep the R-b tags. Patch 1 is a minor fix to DDR alias. Patch 2 was sent out before, https://patchwork.kernel.org/project/linux-remoteproc/patch/202201110

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

2024-07-12 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 Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 2/6] remoteproc: imx_rproc: use imx specific hook for find_loaded_rsc_table

2024-07-12 Thread Peng Fan (OSS)
From: Peng Fan If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP SDK that Resource Domain Control(RDC) enabled to protect TCM, l

[PATCH 3/6] remoteproc: imx_rproc: initialize workqueue earlier

2024-07-12 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. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 ins

[PATCH 4/6] remoteproc: imx_rproc: merge TCML/U

2024-07-12 Thread Peng Fan (OSS)
From: Peng Fan Merge contiguous TCML/U regions into one to avoid load elf files which has large sections failure. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/

[PATCH 5/6] remoteproc: imx_rproc: allow tx_block to be set

2024-07-12 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. Reviewed-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 12 ++-

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

2024-07-12 Thread Peng Fan (OSS)
From: Peng Fan The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to configure the i.MX7ULP power controller properly. However the reboot

[PATCH v2 0/4] remoteproc: imx_rproc: various patches for misc

2024-07-19 Thread Peng Fan (OSS)
This patchset is to upstream a few patches that in NXP downstream for quite sometime. For patches directly cherry-picked from NXP downstream, I keep the R-b tags. Patch 1 is a minor fix to DDR alias. Patch 2 was sent out before, https://patchwork.kernel.org/project/linux-remoteproc/patch/202201110

[PATCH v2 2/4] remoteproc: imx_rproc: use imx specific hook for find_loaded_rsc_table

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP SDK that Resource Domain Control(RDC) enabled to protect TCM, l

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

2024-07-19 Thread Peng Fan (OSS)
The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to configure the i.MX7ULP power controller properly. However the reboot and restart kern

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

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to configure the i.MX7ULP power controller properly. However the reboot

[PATCH v2 4/4] remoteproc: imx_rproc: merge TCML/U

2024-07-19 Thread Peng Fan (OSS)
From: Peng Fan Merge contiguous TCML/U regions into one to avoid load elf files which has large sections failure. Reviewed-by: Iuliana Prodan Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/driv

[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 changed, 1 in

[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/remoteproc/i

[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 | 12 ++--

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

2024-08-22 Thread Peng Fan (OSS)
The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4 to configure the i.MX7ULP power controller properly. However the reboot and restart kern

[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-off-by: Peng Fan

[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 d

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 patc

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 6/8] remoteproc: imx_rproc: support i.MX8MQ/M

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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 a/drive

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 > > V2: > > patch 1, 2, 3 is new > > patch 4 is not cha

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. > > Signed-off-by: Peng Fan > --- > .../binding

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

2021-04-15 Thread Peng Fan (OSS)
> Subject: Re: [PATCH V3 8/8] remoteproc: imx_rproc: support i.MX8MN/P Hi Mathieu, Your all comments are good suggestion in the patchset, I not reply your comment one by one for each patch. In V4 patchset, hope I have fixed all the issues you pointed. Thanks for your reviewing. Thanks, Peng. >

[PATCH 0/3] tools/virtio: support aarch64 cross compiling

2020-12-09 Thread Peng Fan (OSS)
From: Peng Fan Not sure whether this is correct fix for aarch64 build, just a try. I still need to drop -Werror to make it build, but not included in this patchset. Peng Fan (3): tools/virtio: include asm/bug.h tools/virtio: add krealloc_array tools/virtio: add barrier for aarch64 tools/

[PATCH 2/3] tools/virtio: add krealloc_array

2020-12-09 Thread Peng Fan (OSS)
From: Peng Fan krealloc_array is used in drivers/vhost/vringh.c, add it to avoid build failure. Drop WARN_ON_ONCE, because duplicated with the one in bug.h Signed-off-by: Peng Fan --- tools/virtio/linux/kernel.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

[PATCH 3/3] tools/virtio: add barrier for aarch64

2020-12-09 Thread Peng Fan (OSS)
From: Peng Fan Add barrier for aarch64 for cross compiling, and most are from Linux Kernel. Signed-off-by: Peng Fan --- tools/virtio/asm/barrier.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/virtio/asm/barrier.h b/tools/virtio/asm/barrier.h index 04d563fc9b95..468435

[PATCH 1/3] tools/virtio: include asm/bug.h

2020-12-09 Thread Peng Fan (OSS)
From: Peng Fan WARN_ON is used in drivers/vhost/vringh.c, to avoid build failure, need include asm/bug.h Signed-off-by: Peng Fan --- tools/virtio/linux/bug.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virtio/linux/bug.h b/tools/virtio/linux/bug.h index b14c2c3b6b85..813baf13f6

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

2020-12-03 Thread Peng Fan (OSS)
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 other alignment

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

2020-12-03 Thread Peng Fan (OSS)
From: Peng Fan Add elf memory hooks according to elf_mem_hook setting in the platform configuration dcfg. Acked-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/dr

[PATCH V3 3/7] remoteproc: imx_rproc: correct err message

2020-12-03 Thread Peng Fan (OSS)
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Acked-by: Richard Zhu Reviewed-by: Mathieu Poirier Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH V3 4/7] remoteproc: imx_rproc: use devm_ioremap

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

[PATCH V3 0/7] remoteproc: imx_rproc: support iMX8MQ/M

2020-12-03 Thread Peng Fan (OSS)
From: Peng Fan V3: Since I was quite busy in the past days, V3 is late Rebased on Linux-next Add R-b tags 1/7: Add R-b tag of Mathieu, add comments 4/7: Typo fix 5/7: Add R-b tag of Mathieu, drop index Per Mathieu's comments 6/7: Add R-b tag of Mathieu 7/7: Add comment for vqid << 16, dro

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

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

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

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

[PATCH V3 7/7] remoteproc: imx_proc: enable virtio/mailbox

2020-12-03 Thread Peng Fan (OSS)
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 133 - 1 file changed, 130 insertions(+

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 memory node from patch 2 per Rob's comment. >

[PATCH] arm64: Kconfig: select ZONE_DMA

2020-12-16 Thread Peng Fan (OSS)
From: Peng Fan ZONE_DMA should not be disabled, otherwise arm64_dma_phys_limit is left uninitialized and cause swiotlb have IO TLB above 4GB which might crash some platforms Signed-off-by: Peng Fan --- Not sure whether need to address code to initialize the variables or force select ZONE_DMA

[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 starting rpr

[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 now. Reuse the commit lo

[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 starting rpr

[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. The workqueue may e

[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.com/ Cc: Andrew Davis Signed-o

[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) proto

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

2025-06-24 Thread Peng Fan (OSS)
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) protocol and CPU proto

[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/Documentation

[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/imx95

[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/imx_rproc.

[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) proto

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

2025-06-05 Thread Peng Fan (OSS)
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) protocol and CPU proto

[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 found

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

2025-06-03 Thread Peng Fan (OSS)
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) protocol and CPU proto

[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 found

[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 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) proto

[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/im

[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/