14 Dec, 2020
20 commits
-
With rpmsg.dtb, but when M core not kicked by U-Boot, we need set auto_boot
as false. For early boot case, we need set auto_boot as true.Tested-by: Shengjiu Wang
Reviewed-by: Richard Zhu
Reviewed-by: Shengjiu Wang
Signed-off-by: Peng Fan -
Parse auto boot from dtb. Currently auto boot is default
set. This will make non-m4 image suspend dump if the firmware loading
workqueue not finished. So only enable auto boot for userspace loading
when fsl,rproc-auto-boot available.Reviewed-by: Anson Huang
Reported-by: Anson Huang
Signed-off-by: Peng Fan -
Merge contiguous TCML/U regions into one to avoid load elf files which
has large sections failure.Reviewed-by: Ye Li
Signed-off-by: Peng Fan -
The DDR Alias address should be 0x40000000 according to RM, so correct
Reviewed-by: Fugang Duan
Reported-by: Terry Lv
Signed-off-by: Peng Fan -
Address i.MX8QM dual M4 core case
Reviewed-by: Richard Zhu
Signed-off-by: Peng Fan -
Misc fix to elf load and export rsc_va always.
Reviewed-by: Richard Zhu
Signed-off-by: Peng Fan -
To i.MX7ULP, we have no vdevbuffer, so no need to bypass the
1st one.Reviewed-by: Richard Zhu
Signed-off-by: Peng Fan -
Add i.MX8QM/8QXP support
Acked-by: Richard Zhu
Signed-off-by: Peng Fan -
In i.MX7ULP dual boot mode, M4 controls everything including A7,
if M4 crashes, we assume A7 will also crash. So we only have IPC
between M4 and A7 here.Acked-by: Richard Zhu
Signed-off-by: Peng Fan -
Add doorbell support. The RX doorbell will be used to check
whether remote processor is ready. The TX doorbell will used
to notify remote processor when stop.Acked-by: Richard Zhu
Signed-off-by: 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 -
i.MX8MN/P use ARM SIP call to let ATF handle M4 start/stop.
So we add a new method named IMX_ARM_SMCCC
Acked-by: Richard Zhu
Signed-off-by: Peng Fan -
Introduce IMX_DIRECT_MMIO for regmap usage. This is to restructure
code for adding SCFW API and SMCCC call.Acked-by: Richard Zhu
Signed-off-by: Peng Fan -
Detect Coproc booted or not and Parse resource table
Set remoteproc state to RPROC_DETACHED when M4 is booted early
Add attach hookAcked-by: Richard Zhu
Signed-off-by: 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 -
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 -
The hook is used to parse memory-regions and load resource table
from the address the remote processor published.Acked-by: Richard Zhu
Signed-off-by: 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 -
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 -
Add elf memory hooks according to elf_mem_hook setting in the platform
configuration dcfg.Acked-by: Richard Zhu
Signed-off-by: Peng Fan
26 Mar, 2020
1 commit
-
With upcoming changes in elf loader for elf64 support, section size will
be a u64. When used with da_to_va, this will potentially lead to
overflow if using the current "int" type for len argument. Change
da_to_va prototype to use a size_t for len and fix all users of this
function.Reviewed-by: Bjorn Andersson
Reviewed-by: Mathieu Poirier
Signed-off-by: Clement Leger
Link: https://lore.kernel.org/r/20200302093902.27849-2-cleger@kalray.eu
Signed-off-by: Bjorn Andersson
18 Jul, 2019
1 commit
-
Pull remoteproc updates from Bjorn Andersson:
"This adds support for the STM32 remoteproc, additional i.MX platforms
with Cortex M4 remoteprocs and Qualcomm's QCS404 Compute DSP.Also initial support for vendor specific resource table entries and
support for unprocessed Qualcomm firmware files"* tag 'rproc-v5.3' of git://github.com/andersson/remoteproc:
remoteproc: stm32: fix building without ARM SMCC
remoteproc: qcom: q6v5-mss: Fix build error without QCOM_MDT_LOADER
remoteproc: copy parent dma_pfn_offset for vdev
remoteproc: qcom: q6v5-mss: Support loading non-split images
soc: qcom: mdt_loader: Support loading non-split images
remoteproc: stm32: add an ST stm32_rproc driver
dt-bindings: remoteproc: add bindings for stm32 remote processor driver
dt-bindings: stm32: add bindings for ML-AHB interconnect
remoteproc: Use struct_size() helper
remoteproc: add vendor resources handling
remoteproc: imx: Fix typo in "failed"
remoteproc: imx: Broaden the Kconfig selection logic
remoteproc,rpmsg: add missing MAINTAINERS file entries
remoteproc: qcom: qdsp6-adsp: Add support for QCS404 CDSP
dt-bindings: remoteproc: Rename and amend Hexagon v56 binding
19 Jun, 2019
1 commit
-
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundationthis program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Enrico Weigelt
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman
04 Jun, 2019
1 commit
-
There are several places where "failed" is spelled incorrectly.
Fix them all.
Reviewed-by: Oleksij Rempel
Signed-off-by: Fabio Estevam
Signed-off-by: Bjorn Andersson
19 Mar, 2018
3 commits
-
We can return directly at the beginning of the function and save the 'err'
label.
We can also explicitly return 0 when the probe succeed.Signed-off-by: Christophe JAILLET
Signed-off-by: Bjorn Andersson -
Avoid some code ducplication and be more future-proof.
Signed-off-by: Christophe JAILLET
Signed-off-by: Bjorn Andersson -
If 'of_device_get_match_data()' fails, we must undo the previous
'rproc_alloc()' call.Fixes: a0ff4aa6f010 ("remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver")
Signed-off-by: Christophe JAILLET
Signed-off-by: Bjorn Andersson
12 Oct, 2017
1 commit
-
In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should
be replaced with NULL test.Reviewed-by: Oleksij Rempel
Signed-off-by: Wei Yongjun
Signed-off-by: Bjorn Andersson
11 Oct, 2017
1 commit
-
The priv->mem[] array has IMX7D_RPROC_MEM_MAX elements so the > should
be >= to avoid writing one element beyond the end of the array.Fixes: a0ff4aa6f010 ("remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver")
Signed-off-by: Dan Carpenter
Signed-off-by: Bjorn Andersson
31 Aug, 2017
1 commit
-
Provide a basic driver to control Cortex M4 co-processor found
on NXP i.MX7D and i.MX6SX.
Currently it is able to resolve addresses between M4 and main CPU,
start and stop the co-processor. Other functionality is not provided
or test.This driver was tested on NXP i.MX7D and expected to work on
i.MX6SX as well.Signed-off-by: Oleksij Rempel
Signed-off-by: Bjorn Andersson