Bug 21084 - 使用hygon-devkit中的hag工具直接core,然后系统直接卡死
Summary: 使用hygon-devkit中的hag工具直接core,然后系统直接卡死
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-17 14:25 UTC by chall1123
Modified: 2025-05-19 10:15 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 chall1123 2025-05-17 14:25:25 UTC
Description of problem:

使用这个版本的\hygon-devkit\hct\pkg\hct_2.1.0.20241030_release hct,ccp已经绑定成功,需要使用hag导入安装证书,工具直接core然后卡死
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 chall1123 2025-05-17 14:33:02 UTC
[root@staros ~]#echo 2048 > /proc/sys/vm/nr hugepages
20[root@staros ~]#grep HugePages_ /proc/meminfo
HugePages_Total:2048
62HugePages_Free:2048
HugePages_Rsvd :
HugePages_Surp:
[root@staros ~]#free-g
totatusedfreesharedbufferscached
Mem:180141653
-/+ buffers/cache:11168
Swap:①
[root@staros ~]#grep Huge /proc/meminfo
HugePages_Total:2048
HugePages_Free:2048
HugePages_Rsvd :
HugePages_Surp :
Hugepagesize:2048 kB
Hugetlb:4194304 kB
[root@staros ~]#./hag general hgsc_import
INFO: sending command to psp by kernel-mode is disabled, as /dev/sev cannot be open!
ERR: -_psp_dev_init_exclusive:2301: hugepages init 1 failed
ERR: psp_dev_init:2681: -_psp_dev_init_exclusive failed
psp init failed, disable user-mode:errno[-258], Out of memory
get platform_status by user driver failed, reason: unknown[-258]
terminate called after throwing an instance of 'std::runtime_error'
what():Failed to get fw version, please check the error logs above!
Comment 2 chall1123 2025-05-19 10:15:23 UTC
当前已经确认卡死是因为没有插入ccp.ko导致,但是hag工具仍然很多报错想要解决,但是没有tkm的字段

:/hag general check
0sh:systemctl:未找到命令
Jump selinux check, getenforce not found!
kernel version:5.10.134
model name:
is Hygon CPU:
Hygon c86 7490 64-core ProcessorYES
ERR: _psp_dev_init_exclusive:2301: hugepages init 1 failed
ERR: psp_dev_init:2681:_psp_dev_init_exclusive failed
psp init failed, disable user-mode:errno[-258], Out of memoryfailed check sme with psp cmd, retry by x86 method
HW SME:enabled
ls:无法访问'/boot/config-5.10.134':没有那个文件或目录
Linux SME support:Unidentified! not found /boot/config-5.10.134
SME:unidentified
sh:journalctl:未找到命令
CSV:disabled
kvm-amd.ko not insmod!
/dev/sev:exist
sending command to psp by user-mode was already disabled!csv api version:1.3
firmware version:2229
is HGSC imported:YES
sending command to psp by user-mode was already disabled!chip id:TM8L28A007111501
/dev/tdm:exist
TDM:enabled
tdm api version:1.4
tpm_acpi:
/dev/tpm0:nonexist
HYGT0101
/dev/tcm0: nonexist
check command success!
tcm_acpi:nonexist