Linux Remote Processor Subsystem development
 help / color / mirror / Atom feed
* Re: Fix built-in early-load Intel microcode alignment
       [not found]   ` <CAHk-=wja2GChi_JBu0xBkQ96mqXC3TMKUp=YvRhgPy0+1m5YNw@mail.gmail.com>
@ 2020-01-15  2:27     ` Luis Chamberlain
  2020-01-18 20:10       ` Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Chamberlain @ 2020-01-15  2:27 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Jari Ruusu, Borislav Petkov, Fenghua Yu, johannes.berg,
	Linux Kernel Mailing List, stable, Andy Lutomirski, Hans de Goede,
	Ohad Ben-Cohen, Bjorn Andersson, linux-remoteproc

On Mon, Jan 13, 2020 at 11:44:25AM -0800, Linus Torvalds wrote:
> On Mon, Jan 13, 2020 at 7:47 AM Luis Chamberlain <mcgrof@kernel.org> wrote:
> >
> > So I'd like to determine first if we really need this. Then if so,
> > either add a new global config option, and worst comes to worst
> > figure out a way to do it per driver. I don't think we'd need it
> > per driver.
> 
> I really don't think we need to have a config option for some small
> alignment. Increasing the alignment unconditionally to 16 bytes won't
> hurt anybody.

Since you are confident in that, then simply bumping it to 16 bytes
seems fine by me.

> Now, whether there might be other firmware loaders that need even more
> alignment, that might be an interesting question, and if such an
> alignment would be _huge_ we might want to worry about actual memory
> waste.

I can only envision waste being considered due to alignent for remote
proc folks, who I *doubt* use the built-in stuff given the large size of
their blobs... but since you never know, better poke. So I've CC'd them.

> But 16-byte alignment for a fw blob? That's nothing.

Fine by me if we are sure it won't break anything and we hear no
complaints by remote proc folks.

  Luis

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

* Re: Fix built-in early-load Intel microcode alignment
  2020-01-15  2:27     ` Fix built-in early-load Intel microcode alignment Luis Chamberlain
@ 2020-01-18 20:10       ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2020-01-18 20:10 UTC (permalink / raw)
  To: Luis Chamberlain
  Cc: Linus Torvalds, Jari Ruusu, Borislav Petkov, Fenghua Yu,
	johannes.berg, Linux Kernel Mailing List, stable, Andy Lutomirski,
	Hans de Goede, Ohad Ben-Cohen, linux-remoteproc

On Tue 14 Jan 18:27 PST 2020, Luis Chamberlain wrote:

> On Mon, Jan 13, 2020 at 11:44:25AM -0800, Linus Torvalds wrote:
> > On Mon, Jan 13, 2020 at 7:47 AM Luis Chamberlain <mcgrof@kernel.org> wrote:
> > >
> > > So I'd like to determine first if we really need this. Then if so,
> > > either add a new global config option, and worst comes to worst
> > > figure out a way to do it per driver. I don't think we'd need it
> > > per driver.
> > 
> > I really don't think we need to have a config option for some small
> > alignment. Increasing the alignment unconditionally to 16 bytes won't
> > hurt anybody.
> 
> Since you are confident in that, then simply bumping it to 16 bytes
> seems fine by me.
> 
> > Now, whether there might be other firmware loaders that need even more
> > alignment, that might be an interesting question, and if such an
> > alignment would be _huge_ we might want to worry about actual memory
> > waste.
> 
> I can only envision waste being considered due to alignent for remote
> proc folks, who I *doubt* use the built-in stuff given the large size of
> their blobs... but since you never know, better poke. So I've CC'd them.
> 

I've not heard of anyone using built-in firmware with remoteproc, but as
you say firmware used with remoteproc is large. So I can't see there
being a problem of potentially wasting 8 bytes...

> > But 16-byte alignment for a fw blob? That's nothing.
> 
> Fine by me if we are sure it won't break anything and we hear no
> complaints by remote proc folks.
> 

Go for it.

Regards,
Bjorn

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

end of thread, other threads:[~2020-01-18 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CACMCwJK-2DHZDA_F5Z3wsEUEKJSc3uOwwPD4HRoYGW7A+kA75w@mail.gmail.com>
     [not found] ` <20200113154739.GB11244@42.do-not-panic.com>
     [not found]   ` <CAHk-=wja2GChi_JBu0xBkQ96mqXC3TMKUp=YvRhgPy0+1m5YNw@mail.gmail.com>
2020-01-15  2:27     ` Fix built-in early-load Intel microcode alignment Luis Chamberlain
2020-01-18 20:10       ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox