Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/sev*: No such file or directory #191

Open
yangni2017 opened this issue Oct 11, 2023 · 8 comments
Open

/dev/sev*: No such file or directory #191

yangni2017 opened this issue Oct 11, 2023 · 8 comments

Comments

@yangni2017
Copy link

yangni2017 commented Oct 11, 2023

kernel: 5.10.0-60.18
cpu:Hygon C86 7265 24-core Processor

I has enable the sev but i also get the error:
# ll /dev/sev*
ls: cannot access '/dev/sev*': No such file or directory

I also check config,someting look well:
# dmesg -T | grep SEV
[Wed Oct 11 10:36:17 2023] SEV supported

# dmesg -T | grep SME
[Wed Oct 11 10:36:12 2023] AMD Memory Encryption Features active: SME

# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.10.0-60.18.0.50.oe2203.x86_64 root=/dev/mapper/topos-root ro resume=/dev/mapper/topos-swap rd.lvm.lv=topos/root rd.lvm.lv=topos/swap selinux=0 intel_iommu=on loglevel=3 intel_idle.max_cstate=0 processor.max_cstate=1 idle=poll crashkernel=512M mem_encrypt=on kvm_amd.sev=1

# lsmod | grep kvm
kvm_amd 122880 316
ccp 114688 1 kvm_amd
kvm 958464 1 kvm_amd
irqbypass 16384 646 vfio_pci,kvm

# cat /sys/module/kvm_amd/parameters/sev
1

so why I can't get the dev of sev?

other info:
# lspci -nn
00:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
00:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
00:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:01.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. PCIE GPP Bridge [1d94:1453]
00:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
00:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
00:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
00:14.0 SMBus [0c05]: Chengdu Haiguang IC Design Co., Ltd. FCH SMBus Controller [1d94:790b] (rev 59)
00:14.3 ISA bridge [0601]: Chengdu Haiguang IC Design Co., Ltd. FCH LPC Bridge [1d94:790e] (rev 51)
00:18.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:18.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:18.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:18.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:18.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:18.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:18.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:18.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:19.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:19.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:19.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:19.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:19.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:19.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:19.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:19.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1a.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1a.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1a.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1a.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1a.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1a.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1a.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1a.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1b.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1b.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1b.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1b.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1b.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1b.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1b.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1b.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1c.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1c.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1c.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1c.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1c.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1c.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1c.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1c.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1d.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1d.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1d.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1d.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1d.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1d.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1d.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1d.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1e.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1e.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1e.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1e.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1e.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1e.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1e.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1e.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
00:1f.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 0 [1d94:1460]
00:1f.1 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 1 [1d94:1461]
00:1f.2 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 2 [1d94:1462]
00:1f.3 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 3 [1d94:1463]
00:1f.4 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 4 [1d94:1464]
00:1f.5 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 5 [1d94:1465]
00:1f.6 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 6 [1d94:1466]
00:1f.7 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Data Fabric: Device 18h; Function 7 [1d94:1467]
01:00.0 PCI bridge [0604]: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge [1a03:1150] (rev 04)
02:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41)
03:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
03:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
03:00.3 USB controller [0c03]: Chengdu Haiguang IC Design Co., Ltd. USB 3.0 Host controller [1d94:145f]
04:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
04:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
04:00.2 SATA controller [0106]: Chengdu Haiguang IC Design Co., Ltd. FCH SATA Controller [AHCI mode] [1d94:7901] (rev 51)
10:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
10:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
10:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:01.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. PCIE GPP Bridge [1d94:1453]
10:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
10:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
10:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
11:00.0 RAID bus controller [0104]: Broadcom / LSI MegaRAID SAS-3 3108 [Invader] [1000:005d] (rev 02)
12:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
12:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
12:00.3 USB controller [0c03]: Chengdu Haiguang IC Design Co., Ltd. USB 3.0 Host controller [1d94:145f]
13:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
13:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
13:00.2 SATA controller [0106]: Chengdu Haiguang IC Design Co., Ltd. FCH SATA Controller [AHCI mode] [1d94:7901] (rev 51)
20:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
20:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
20:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:03.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. PCIE GPP Bridge [1d94:1453]
20:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
20:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
20:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
21:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] (rev 02)
21:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] (rev 02)
21:00.2 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] (rev 02)
21:00.3 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] (rev 02)
23:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
23:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
24:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
24:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
30:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
30:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
30:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:03.3 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. PCIE GPP Bridge [1d94:1453]
30:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
30:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
30:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
31:00.0 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:1521] (rev 01)
31:00.1 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:1521] (rev 01)
33:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
33:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
34:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
34:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
40:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
40:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
40:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
40:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
40:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
41:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
41:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
41:00.3 USB controller [0c03]: Chengdu Haiguang IC Design Co., Ltd. USB 3.0 Host controller [1d94:145f]
42:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
42:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
42:00.2 SATA controller [0106]: Chengdu Haiguang IC Design Co., Ltd. FCH SATA Controller [AHCI mode] [1d94:7901] (rev 51)
50:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
50:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
50:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
50:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
50:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
51:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
51:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
51:00.3 USB controller [0c03]: Chengdu Haiguang IC Design Co., Ltd. USB 3.0 Host controller [1d94:145f]
52:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
52:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
52:00.2 SATA controller [0106]: Chengdu Haiguang IC Design Co., Ltd. FCH SATA Controller [AHCI mode] [1d94:7901] (rev 51)
60:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
60:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
60:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
60:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
60:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
61:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
61:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
62:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
62:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]
70:00.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. Root Complex [1d94:1450]
70:00.2 IOMMU [0806]: Chengdu Haiguang IC Design Co., Ltd. I/O Memory Management Unit [1d94:1451]
70:01.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:02.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:03.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:04.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:07.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:07.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
70:08.0 Host bridge [0600]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Host Bridge [1d94:1452]
70:08.1 PCI bridge [0604]: Chengdu Haiguang IC Design Co., Ltd. Internal PCIe GPP Bridge 0 to Bus B [1d94:1454]
71:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:145a]
71:00.2 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. PSPCCP Command DMA Processor [1d94:1456]
72:00.0 Non-Essential Instrumentation [1300]: Chengdu Haiguang IC Design Co., Ltd. PCIe Dummy Function [1d94:1455]
72:00.1 Encryption controller [1080]: Chengdu Haiguang IC Design Co., Ltd. NTBCCP [1d94:1468]

@tlendacky
Copy link
Collaborator

I don't believe Hygon CPUs support SEV.

@yangni2017
Copy link
Author

yangni2017 commented Oct 11, 2023

I don't believe Hygon CPUs support SEV.

I am sure it support sev. It seem base on amd cpu, the dmesg will get the results:
# dmesg -T | grep SEV
[Wed Oct 11 10:36:17 2023] SEV supported

@tlendacky
Copy link
Collaborator

SEV also requires specific PSP support. Please include the output of: dmesg | grep -i -E "ccp|SEV"

@yangni2017
Copy link
Author

yangni2017 commented Oct 11, 2023

SEV also requires specific PSP support. Please include the output of: dmesg | grep -i -E "ccp|SEV"

ccp seems has not output.

# dmesg | grep -i -E "ccp|SEV"
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.10.0-60.18.0.50.oe2203.x86_64 root=/dev/mapper/topos-root ro resume=/dev/mapper/topos-swap rd.lvm.lv=topos/root rd.lvm.lv=topos/swap selinux=0 intel_iommu=on loglevel=3 intel_idle.max_cstate=0 processor.max_cstate=1 idle=poll crashkernel=512M mem_encrypt=on kvm_amd.sev=1
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-5.10.0-60.18.0.50.oe2203.x86_64 root=/dev/mapper/topos-root ro resume=/dev/mapper/topos-swap rd.lvm.lv=topos/root rd.lvm.lv=topos/swap selinux=0 intel_iommu=on loglevel=3 intel_idle.max_cstate=0 processor.max_cstate=1 idle=poll crashkernel=512M mem_encrypt=on kvm_amd.sev=1
[ 5.722549] SEV supported

@tlendacky
Copy link
Collaborator

So no CCP/PSP driver messages, which means that SEV cannot be supported. The CPUID may have it advertised, but you need to be able to communicate with the PSP and the PSP must have the necessary firmware. You'll need to work with Hygon on this.

@yangni2017
Copy link
Author

So no CCP/PSP driver messages, which means that SEV cannot be supported. The CPUID may have it advertised, but you need to be able to communicate with the PSP and the PSP must have the necessary firmware. You'll need to work with Hygon on this.

thanks very much. I want to know how can i do to support CCP/PSP? I not found on bios just now. which need hardware supoort or i can update bios to support?

@tlendacky
Copy link
Collaborator

No idea. You need to work with Hygon and their developers to support this, if possible.

@yangni2017
Copy link
Author

No idea. You need to work with Hygon and their developers to support this, if possible.

ok, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants