[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zo2ZcqP5zSLB0mf+@gondor.apana.org.au>
Date: Wed, 10 Jul 2024 06:11:30 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Marco Felsch <m.felsch@...gutronix.de>
Cc: Horia Geanta <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Gaurav Jain <gaurav.jain@....com>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] crypto: caam - enable hash api only on ARM platforms per
default
On Tue, Jul 09, 2024 at 10:54:54AM +0200, Marco Felsch wrote:
>
> We had an patch exactly doing this but depending on the SoC the default
> prio may valid since the CAAM is used on ARMv7 and ARMv8 NXP SoCs. To
> not cause any regression we went this way.
I don't understand. Why not just set the priority depending on
IS_ENABLED(CONFIG_ARM)? That way it's strictly better than the
Kconfig patch:
1) If the driver is indeed slower then you'd have achieved the same
result of preferring the non-driver algorithm.
2) If the driver ends up being faster then at least the admin can
adjust the priorities.
Or perhaps your Kconfig option should set the priority.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists