linux-remoteproc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/6] remoteproc: imx_rproc: support firmware in DDR
@ 2023-02-09  6:38 Peng Fan (OSS)
  2023-02-09  6:38 ` [PATCH V3 1/6] remoteproc: imx_rproc: correct i.MX8MQ DDR Code alias mapping Peng Fan (OSS)
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Peng Fan (OSS) @ 2023-02-09  6:38 UTC (permalink / raw)
  To: andersson, mathieu.poirier, shawnguo, s.hauer, arnaud.pouliquen,
	daniel.baluta, iuliana.prodan
  Cc: kernel, festevam, linux-imx, linux-remoteproc, linux-arm-kernel,
	linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

V3:
 
 Daniel, Iuliana

   Please help review this patchset per Mathieu's comments.

 Thanks,
 Peng.

 Move patch 3 in v2 to 1st patch in v3 and add Fixes tag Per Daniel
 IMX_RPROC_ANY in patch 3 Per Mathieu
 Update comment and commit log in patch 5, 6.

 NXP SDK provides ".interrupts" section, but I am not sure how others
 build the firmware. So I still keep patch 6 as v2, return bootaddr
 if there is no ".interrupts" section.

V2:
 patch 4 is introduced for sparse check warning fix
 
This pachset is to support i.MX8M and i.MX93 Cortex-M core firmware could
be in DDR, not just the default TCM.

i.MX8M needs stack/pc value be stored in TCML entry address[0,4], the
initial value could be got from firmware first section ".interrupts".
i.MX93 is a bit different, it just needs the address of .interrupts
section. NXP SDK always has .interrupts section.

So first we need find the .interrupts section from firmware, so patch 1
is to reuse the code of find_table to introduce a new API
rproc_elf_find_shdr to find shdr, the it could reused by i.MX driver.

Patch 2 is introduce devtype for i.MX8M/93

Although patch 3 is correct the mapping, but this area was never used
by NXP SW team, we directly use the DDR region, not the alias region.
Since this patchset is first to support firmware in DDR, mark this patch
as a fix does not make much sense.

patch 4 and 5 is support i.MX8M/93 firmware in DDR with parsing .interrupts
section. Detailed information in each patch commit message.

Patches were tested on i.MX8MQ-EVK i.MX8MP-EVK i.MX93-11x11-EVK


Peng Fan (6):
  remoteproc: imx_rproc: correct i.MX8MQ DDR Code alias mapping
  remoteproc: elf_loader: introduce rproc_elf_find_shdr
  remoteproc: imx_rproc: add devtype
  remoteproc: imx_rproc: force pointer type
  remoteproc: imx_rproc: set Cortex-M stack/pc to TCML
  remoteproc: imx_rproc: set address of .interrupts section as bootaddr

 drivers/remoteproc/imx_rproc.c             | 57 +++++++++++--
 drivers/remoteproc/imx_rproc.h             |  7 ++
 drivers/remoteproc/remoteproc_elf_loader.c | 93 +++++++++++++---------
 drivers/remoteproc/remoteproc_internal.h   |  2 +
 4 files changed, 114 insertions(+), 45 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-03-27 15:10 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09  6:38 [PATCH V3 0/6] remoteproc: imx_rproc: support firmware in DDR Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 1/6] remoteproc: imx_rproc: correct i.MX8MQ DDR Code alias mapping Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 2/6] remoteproc: elf_loader: introduce rproc_elf_find_shdr Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 3/6] remoteproc: imx_rproc: add devtype Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 4/6] remoteproc: imx_rproc: force pointer type Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 5/6] remoteproc: imx_rproc: set Cortex-M stack/pc to TCML Peng Fan (OSS)
2023-02-09  6:38 ` [PATCH V3 6/6] remoteproc: imx_rproc: set address of .interrupts section as bootaddr Peng Fan (OSS)
2023-02-09 14:04 ` [PATCH V3 0/6] remoteproc: imx_rproc: support firmware in DDR Daniel Baluta
2023-02-10 13:52 ` Iuliana Prodan
2023-02-12  7:43   ` Peng Fan
2023-02-13 10:15     ` Iuliana Prodan
2023-02-13 17:50       ` Mathieu Poirier
2023-02-14  9:56         ` Iuliana Prodan
2023-03-04  7:59         ` Peng Fan
2023-03-07 20:26           ` Mathieu Poirier
2023-03-22 10:59             ` Frieder Schrempf
2023-03-22 15:13               ` Mathieu Poirier
2023-03-24 10:20               ` Peng Fan
2023-03-27 15:09                 ` Frieder Schrempf
2023-03-22 11:14           ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).