* [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP
@ 2021-08-25 13:56 Oleksandr Suvorov
2021-08-25 14:13 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Oleksandr Suvorov @ 2021-08-25 13:56 UTC (permalink / raw)
To: u-boot; +Cc: Ricardo Salveti, Oleksandr Suvorov, Masahiro Yamada
From: Ricardo Salveti <ricardo@foundries.io>
The CAAM on IMX7ULP doesn't support public key hardware acceleration
(PKHA), as in other NXP parts. Disable RSA_FREESCALE_EXP for IMX7ULP
too.
Fixed: f4e9ff7135 ("Kconfig: Don't use RSA_FREESCALE_EXP on IMX")
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
---
lib/rsa/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
index a90d67e5a8..55e17596f0 100644
--- a/lib/rsa/Kconfig
+++ b/lib/rsa/Kconfig
@@ -1,6 +1,6 @@
config RSA
bool "Use RSA Library"
- select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
+ select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX7ULP && !ARCH_MX6 && !ARCH_MX5
select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
help
RSA support. This enables the RSA algorithm used for FIT image
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP
2021-08-25 13:56 [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP Oleksandr Suvorov
@ 2021-08-25 14:13 ` Tom Rini
2021-08-28 7:39 ` Oleksandr Suvorov
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2021-08-25 14:13 UTC (permalink / raw)
To: Oleksandr Suvorov; +Cc: u-boot, Ricardo Salveti, Masahiro Yamada
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
On Wed, Aug 25, 2021 at 04:56:51PM +0300, Oleksandr Suvorov wrote:
> From: Ricardo Salveti <ricardo@foundries.io>
>
> The CAAM on IMX7ULP doesn't support public key hardware acceleration
> (PKHA), as in other NXP parts. Disable RSA_FREESCALE_EXP for IMX7ULP
> too.
>
> Fixed: f4e9ff7135 ("Kconfig: Don't use RSA_FREESCALE_EXP on IMX")
> Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
> ---
>
> lib/rsa/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
> index a90d67e5a8..55e17596f0 100644
> --- a/lib/rsa/Kconfig
> +++ b/lib/rsa/Kconfig
> @@ -1,6 +1,6 @@
> config RSA
> bool "Use RSA Library"
> - select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
> + select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX7ULP && !ARCH_MX6 && !ARCH_MX5
> select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
> help
> RSA support. This enables the RSA algorithm used for FIT image
What iMX families does this work on? I think we need to look at fixing
the logic to be a bit more restrictive to start with, instead of opting
families out.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP
2021-08-25 14:13 ` Tom Rini
@ 2021-08-28 7:39 ` Oleksandr Suvorov
0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr Suvorov @ 2021-08-28 7:39 UTC (permalink / raw)
To: Tom Rini; +Cc: u-boot, Ricardo Salveti, Masahiro Yamada
On Wed, Aug 25, 2021 at 5:13 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Wed, Aug 25, 2021 at 04:56:51PM +0300, Oleksandr Suvorov wrote:
>
> > From: Ricardo Salveti <ricardo@foundries.io>
> >
> > The CAAM on IMX7ULP doesn't support public key hardware acceleration
> > (PKHA), as in other NXP parts. Disable RSA_FREESCALE_EXP for IMX7ULP
> > too.
> >
> > Fixed: f4e9ff7135 ("Kconfig: Don't use RSA_FREESCALE_EXP on IMX")
> > Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
> > Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
> > ---
> >
> > lib/rsa/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
> > index a90d67e5a8..55e17596f0 100644
> > --- a/lib/rsa/Kconfig
> > +++ b/lib/rsa/Kconfig
> > @@ -1,6 +1,6 @@
> > config RSA
> > bool "Use RSA Library"
> > - select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
> > + select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX7ULP && !ARCH_MX6 && !ARCH_MX5
> > select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
> > help
> > RSA support. This enables the RSA algorithm used for FIT image
>
> What iMX families does this work on? I think we need to look at fixing
> the logic to be a bit more restrictive to start with, instead of opting
> families out.
Frankly, I dunno. We fix what doesn't work. Investigating all imx families
and reworking everything around would take much more time and can't be done
right now.
Anyway, thanks for your question, I rechecked the patch and improved it.
The v2 is coming.
>
> --
> Tom
--
Best regards,
Oleksandr Suvorov
Software Engineer
W: www.foundries.io
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-28 7:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-25 13:56 [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP Oleksandr Suvorov
2021-08-25 14:13 ` Tom Rini
2021-08-28 7:39 ` Oleksandr Suvorov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox