Re: [PATCH v4 5/9] ARM: imx_v6_v7_defconfig: build imx sdma driver as module

From: Marek Vasut
Date: Mon Sep 20 2021 - 12:16:54 EST


On 9/20/21 5:55 PM, Marcel Ziswiler wrote:
On Mon, 2021-09-20 at 16:52 +0200, Marek Vasut wrote:
On 9/20/21 4:49 PM, Marcel Ziswiler wrote:
From: Marcel Ziswiler <marcel.ziswiler@xxxxxxxxxxx>

Build CONFIG_IMX_SDMA as a module to avoid the following boot issue:

[    5.214751] imx-sdma 20ec000.sdma: Direct firmware load for
  imx/sdma/sdma-imx6q.bin failed with error -2
[    5.215762] imx-sdma 20ec000.sdma: Falling back to sysfs fallback
  for: imx/sdma/sdma-imx6q.bin

Isn't there some ROM-side SDMA firmware baked into the MX6 which is used
as a fallback if loading newer one from filesystem fails ? I suspect the
default ROM firmware might be buggy.

I'm not so sure about this. At least it seems to fail if no external firmware can be loaded.

See e.g. SDMA chapter in MX6SDLRM or similar, it does talk about 4k boot ROM, which contains scripts and utilities later referenced by scripts in RAM. It might be worth looking into that a bit further, but that seems like a separate topic from this patch.