Bug 8568 - Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, print necessary security features of Hygon CPUs
Summary: Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, print necessary secu...
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-18 19:47 UTC by wojiaohanliyang
Modified: 2024-06-19 14:04 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2024-03-18 19:47:39 UTC
Description of problem:

Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, print necessary security features of Hygon CPUs.

1. Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, the vendor/device ID pairs 0x1d94/0x1486, 0x1d94/0x14a6 are used to identify PSPCCP of Hygon 4th CPUs, the vendor/device ID pair 0x1d94/0x14b8 is used to identify NTBCCP of Hygon 4th CPUs.

2. Print necessary security features of Hygon CPUs, these feature infos are listed below:
    a. print SME/CSV/CSV2 active info in kernel log
    b. print Hygon CSV API version info during device driver initialization
    c. print Hygon CSV/CSV2 support info in KVM module
    d. print csv/csv2 feature flags in /proc/cpuinfo
    e. print SM3/SM4 feature flags in /proc/cpuinfo
    f. print CSV3 feature flag in /proc/cpuinfo
    g. clear sme feature flag in /proc/cpuinfo iff host linux boot with mem_encrypt=off or the host linux is compiled with CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=n

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2024-03-18 21:38:32 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2904