Bug 2689 - crypto: x86/crc32c-intel Exclude low performance CRC32C instruction CPUs
Summary: crypto: x86/crc32c-intel Exclude low performance CRC32C instruction CPUs
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-02 14:27 UTC by LeoLiu-oc
Modified: 2024-06-21 19:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2022-11-02 14:27:34 UTC
Description of problem:
SSE4.2 on Zhaoxin CPUs are compatible with Intel. The presence of
CRC32C instruction is enumerated by CPUID.01H:ECX.SSE4_2[bit 20] = 1.
Some Zhaoxin CPUs declare support SSE4.2 instruction sets but their
CRC32C instruction are working with low performance.

Add a synthetic CPU flag to indicates that the CRC32C instruction
is not working as intended. This low performance CRC32C instruction
flag is depend on X86_FEATURE_XMM4_2.

Some Zhaoxin CPUs declare support SSE4.2 instruction sets but having
a CRC32C instruction implementation that not working as intended.
Set low performance CRC32C flag on these CPUs for later use.

Low performance CRC32C instruction CPUs expect to use the driver
crc32c-generic. So remove these CPUs support from crc32c-intel.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
Low performance CRC32C instruction CPUs expect to use the driver
crc32c-generic

Additional info:
Comment 1 小龙 admin 2024-01-31 10:48:39 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2723
Comment 2 小龙 admin 2024-06-21 19:37:00 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3402