lkml.org 
[lkml]   [2020]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/1] soc: keembay: Add Keem Bay IMR driver
From
Date
Thanks for your feedback.

>
> First off, there is a "proper" way to send patches to the kernel
> community that Intel has that I do not think you are
> following. Please
> work with the Intel "Linux group" to do that first, as odds are they
> would have caught all of these issues beforehand (hint, which is why
> that process is in place...)
>

I actually followed that process and got the OK to try to upstream.

I think the issues you identified went uncaught mainly due to the
limited Linux ARM expertise within that group (and Intel in general).

Anyway, I'll keep working with our Linux Kernel people to try to reduce
the burden on you and the other kernel maintainers.

> > diff --git a/drivers/soc/keembay/Kconfig
> > b/drivers/soc/keembay/Kconfig
> > new file mode 100644
> > index 000000000000..2161bce131b3
> > --- /dev/null
> > +++ b/drivers/soc/keembay/Kconfig
> > @@ -0,0 +1,22 @@
> > +# SPDX-License-Identifier: GPL-2.0-only
> > +#
> > +# Keem Bay SoC drivers.
> > +#
> > +
> > +menu "Keem Bay SoC drivers"
> > +
> > +config KEEMBAY_IMR
> > + bool "Clean-up Keem Bay bootloader IMR at boot"
> > + depends on ARM64
> > + help
> > + This option makes the Kernel clean up the Isolated Memory
> > Region
> > + (IMR) set up by Keem Bay bootloader (U-boot) to protect
> > itself during
> > + early boot.
> > +
> > + The IMR number to be cleaned up is taken from the device tree
> > + (property 'u-boot-imr' of the 'chosen' node).
> > +
> > + If you are compiling the Kernel for a Keem Bay SoC select Y,
> > + otherwise select N.
>
> No module support?
>
> What about kernels that support more than one ARM device in the same
> kernel, you just broke that :(
>

<cut>

>
> > +}
> > +early_initcall(kmb_imr_init);
>
> Like I said above, you just broke multi-system kernels by always
> trying
> to do this. Trigger off of a hardware device that only your platform
> has in order to properly load and run. As-is, you don't want to do
> this.

My bad, I didn't consider the issue of multi-platform ARM kernels.

The problem is that I need this code to be run early at boot, so I
don't think I can make this a module.

But I'm sure there is a proper way to achieve what I need without
breaking multi-system kernels. I'll do my homework and try to find it.

>
> Anyway, Intel owes me more liquor for this review as the resources
> you
> had to get review of this were obviously not taken advantage of.
>
> greg k-h

\
 
 \ /
  Last update: 2020-05-01 13:51    [W:0.074 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site