This patch series enhances Zhaoxin processor support by adding comprehensive cryptographic algorithm implementations for both AES and SHA operations. The patches modernize the CPU matching mechanisms to ensure compatibility with recent kernel changes while extending support to additional processor models. Patch 1: Add support for Zhaoxin AES algorithm Updates Kconfig options to enable Zhaoxin AES support by default Extends CPU model support for Zhaoxin processors (series 6 and 7) Modernizes CPU ID matching using X86_MATCH_VENDOR_FAM_FEATURE macro for padlock-aes.c Enhances compatibility with different Zhaoxin processor variants in zhaoxin-aes.c Patch 2: Add support for Zhaoxin SHA algorithm Updates Kconfig options to enable Zhaoxin SHA support by default Extends CPU model support for Zhaoxin processors (series 6 and 7) Modernizes CPU ID matching using X86_MATCH_VENDOR_FAM_FEATURE macro for padlock-sha.c Enhances compatibility with different Zhaoxin processor variants in zhaoxin-sha.c Both patches ensure compatibility with the mainline kernel commit torvalds/linux@9302248 that fixed x86_match_cpu() to match just X86_VENDOR_INTEL. These changes allow Zhaoxin processors with integrated crypto engines (ACE - Advanced Cryptography Engine) to utilize hardware-accelerated cryptographic operations more effectively while maintaining compatibility with updated kernel APIs.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5923