* [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs
@ 2022-06-06 16:10 Peter Robinson
2022-06-06 16:16 ` Fabio Estevam
2022-06-09 6:12 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Peter Robinson @ 2022-06-06 16:10 UTC (permalink / raw)
To: Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
Fabio Estevam, NXP Linux Team, Anson Huang, Daniel Baluta,
Robin Gong, Angus Ainslie (Purism),
dmaengine, linux-arm-kernel
Cc: Peter Robinson, stable
The revision of the imx-sdma IP that is in the i.MX8M series is the
same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE
directive is wrapped in a condiditional which means it's not defined
when built for aarch64 SOC_IMX8M platforms and hence you get the
following errors when the driver loads on imx8m devices:
imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware
Add the SOC_IMX8M into the check so the firmware can load on i.MX8.
Fixes: 1474d48bd639 ("arm64: dts: imx8mq: Add SDMA nodes")
Fixes: 941acd566b18 ("dmaengine: imx-sdma: Only check ratio on parts that support 1:1")
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Cc: stable@vger.kernel.org # v5.2+
---
drivers/dma/imx-sdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 8535018ee7a2..900cafdaf359 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -2346,7 +2346,7 @@ MODULE_DESCRIPTION("i.MX SDMA driver");
#if IS_ENABLED(CONFIG_SOC_IMX6Q)
MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin");
#endif
-#if IS_ENABLED(CONFIG_SOC_IMX7D)
+#if IS_ENABLED(CONFIG_SOC_IMX7D) || IS_ENABLED(CONFIG_SOC_IMX8M)
MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin");
#endif
MODULE_LICENSE("GPL");
--
2.36.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs
2022-06-06 16:10 [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs Peter Robinson
@ 2022-06-06 16:16 ` Fabio Estevam
2022-06-09 6:12 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2022-06-06 16:16 UTC (permalink / raw)
To: Peter Robinson
Cc: Vinod Koul, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
NXP Linux Team, Anson Huang, Daniel Baluta, Robin Gong,
Angus Ainslie (Purism),
dmaengine,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE, stable
On Mon, Jun 6, 2022 at 1:10 PM Peter Robinson <pbrobinson@gmail.com> wrote:
>
> The revision of the imx-sdma IP that is in the i.MX8M series is the
> same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE
> directive is wrapped in a condiditional which means it's not defined
> when built for aarch64 SOC_IMX8M platforms and hence you get the
> following errors when the driver loads on imx8m devices:
>
> imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
> imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware
>
> Add the SOC_IMX8M into the check so the firmware can load on i.MX8.
>
> Fixes: 1474d48bd639 ("arm64: dts: imx8mq: Add SDMA nodes")
> Fixes: 941acd566b18 ("dmaengine: imx-sdma: Only check ratio on parts that support 1:1")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> Cc: stable@vger.kernel.org # v5.2+
Reviewed-by: Fabio Estevam <festevam@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs
2022-06-06 16:10 [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs Peter Robinson
2022-06-06 16:16 ` Fabio Estevam
@ 2022-06-09 6:12 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2022-06-09 6:12 UTC (permalink / raw)
To: Peter Robinson
Cc: Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, Anson Huang, Daniel Baluta, Robin Gong,
Angus Ainslie (Purism),
dmaengine, linux-arm-kernel, stable
On 06-06-22, 17:10, Peter Robinson wrote:
> The revision of the imx-sdma IP that is in the i.MX8M series is the
> same is that as that in the i.MX7 series but the imx7d MODULE_FIRMWARE
> directive is wrapped in a condiditional which means it's not defined
> when built for aarch64 SOC_IMX8M platforms and hence you get the
> following errors when the driver loads on imx8m devices:
>
> imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
> imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware
>
> Add the SOC_IMX8M into the check so the firmware can load on i.MX8.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-09 6:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 16:10 [PATCH] dmaengine: imx-sdma: Allow imx8m for imx7 FW revs Peter Robinson
2022-06-06 16:16 ` Fabio Estevam
2022-06-09 6:12 ` Vinod Koul
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).