Re: [PATCH] Remove POWER10_CPU dependency and move PPC_MODULE_FEATURE_P10.

2023-04-13 Thread Danny Tsen
On 4/13/23 8:18 AM, Danny Tsen wrote: Hi Michael, If I do separate patch for moving PPC_MODULE_FEATURE_P10, this will break the build since it is currently defined in aes-gcm-p10-glue.c.  And the p10 will be detected when loading the module in module_cpu_feature_match(PPC_MODULE_FEATURE_P10

Re: [PATCH] Remove POWER10_CPU dependency and move PPC_MODULE_FEATURE_P10.

2023-04-13 Thread Danny Tsen
Hi Michael, If I do separate patch for moving PPC_MODULE_FEATURE_P10, this will break the build since it is currently defined in aes-gcm-p10-glue.c.  And the p10 will be detected when loading the module in module_cpu_feature_match(PPC_MODULE_FEATURE_P10, p10_init); so it won't load if it's no

[PATCH] Remove POWER10_CPU dependency and move PPC_MODULE_FEATURE_P10.

2023-04-13 Thread Danny Tsen
Remove Power10 dependency in Kconfig and detect Power10 feature at runtime. Move PPC_MODULE_FEATURE_P10 definition to be in arch/powerpc/include/asm/cpufeature.h. Signed-off-by: Danny Tsen --- arch/powerpc/crypto/Kconfig| 2 +- arch/powerpc/crypto/aes-gcm-p10-glue.c | 1 - arch/power

Re: [PATCH] Remove POWER10_CPU dependency and move PPC_MODULE_FEATURE_P10.

2023-04-13 Thread Michael Ellerman
Danny Tsen writes: > Remove Power10 dependency in Kconfig and detect Power10 feature at runtime. > Move PPC_MODULE_FEATURE_P10 definition to be in > arch/powerpc/include/asm/cpufeature.h. This should be two patches, one for the Kconfig change and one moving the feature flag. Also don't you need