Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Bisson <gary.bisson@boundarydevices.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/freescale-imx/firmware-imx: fix sdma support for imx8m family
Date: Thu, 16 Jul 2020 16:14:45 +0200	[thread overview]
Message-ID: <20200716141445.GA575512@p1g2> (raw)
In-Reply-To: <20200716160745.2c845a4e@windsurf.home>

On Thu, Jul 16, 2020 at 04:07:45PM +0200, Thomas Petazzoni wrote:
> On Thu, 16 Jul 2020 15:52:50 +0200
> Gary Bisson <gary.bisson@boundarydevices.com> wrote:
> 
> > > Thanks for looking into this. Another possible solution if we have more
> > > of this in the future (we already have it for vpu and sdma) would be to
> > > drop the NEEDS_XYZ_FW options and instead do this:
> > > 
> > > config BR2_PACKAGE_FIRMWARE_IMX_VPU_FW_NAME
> > > 	string
> > > 	default "imx53" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53
> > > 	default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
> > > 	default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM
> > > 	default "imx7d" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN
> > > 
> > > and then in the .mk file, we rely on
> > > BR2_PACKAGE_FIRMWARE_IMX_VPU_FW_NAME being empty or not to decide
> > > whether the VPU firmware should be installed. And because this variable
> > > is not just a boolean, it also tells us what is the firmware name.  
> > 
> > Yes it looks like a better option, we could even do the same for VPU
> > then.
> > Are we all ok with such approach?
> 
> I think it doesn't add more lines, and will avoid the calculation of
> FIRMWARE_IMX_PLATFORM_LOWER.

Agreed, let's do it then. I'll offer another patch, not a v2 per se as
it will also modify VPU copy.

> > Note the '*' which makes everything works ;)
> > That is why imx7 will properly the imx7d binary and the imx27 will copy
> > the imx27_TO2 one.
> 
> Ah indeed, and that's another thing we could get rid of with the
> proposal above, as we would have the exact firmware name.

Unfortunately no, I don't believe it will be the best option as imx31
for instance has 2 possible sdma firmware (to1 and to2).
Same goes for imx35 sdma firmware.
Same goes for imx27 vpu firmware... and so on.

Still looks acceptable to me, but let me know if you think otherwise.

Regards,
Gary

      reply	other threads:[~2020-07-16 14:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-16 13:03 [Buildroot] [PATCH] package/freescale-imx/firmware-imx: fix sdma support for imx8m family Gary Bisson
2020-07-16 13:21 ` Stephane Viau
2020-07-16 13:46 ` Thomas Petazzoni
2020-07-16 13:52   ` Gary Bisson
2020-07-16 14:07     ` Thomas Petazzoni
2020-07-16 14:14       ` Gary Bisson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200716141445.GA575512@p1g2 \
    --to=gary.bisson@boundarydevices.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox