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

From: Lucas Stach
Date: Mon Sep 20 2021 - 13:19:54 EST


Am Montag, dem 20.09.2021 um 18:14 +0200 schrieb Marek Vasut:
> 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.
>
Yep, most of the systems we ship do work with the ROM firmware, which
should be picked when firmware loading fails.

The RAM firmware is useful in some cases like multichannel SAI or now
to work around the SPI DMA issue on i.MX6.

Regards,
Lucas