Skip to content

Commit 90f7520

Browse files
superm1herbertx
authored andcommitted
crypto: ccp - Add sysfs attribute for boot integrity
The boot integrity attribute represents that the CPU or APU is used for the hardware root of trust in the boot process. This bit only represents the CPU/APU and some vendors have other hardware root of trust implementations specific to their designs. Link: fwupd/fwupd#9825 Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 64ae90a commit 90f7520

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

Documentation/ABI/testing/sysfs-driver-ccp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ Description:
88
0: Not fused
99
1: Fused
1010

11+
What: /sys/bus/pci/devices/<BDF>/boot_integrity
12+
Date: April 2026
13+
KernelVersion: 6.20
14+
Contact: mario.limonciello@amd.com
15+
Description:
16+
The /sys/bus/pci/devices/<BDF>/boot_integrity reports
17+
whether the AMD CPU or APU is used for a hardware root of trust
18+
during the boot process.
19+
Possible values:
20+
0: Not hardware root of trust.
21+
1: Hardware root of trust
22+
23+
NOTE: Vendors may provide design specific alternative hardware
24+
root of trust implementations.
25+
1126
What: /sys/bus/pci/devices/<BDF>/debug_lock_on
1227
Date: June 2022
1328
KernelVersion: 5.19

drivers/crypto/ccp/hsti.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ static ssize_t name##_show(struct device *d, struct device_attribute *attr, \
3030

3131
security_attribute_show(fused_part)
3232
static DEVICE_ATTR_RO(fused_part);
33+
security_attribute_show(boot_integrity)
34+
static DEVICE_ATTR_RO(boot_integrity);
3335
security_attribute_show(debug_lock_on)
3436
static DEVICE_ATTR_RO(debug_lock_on);
3537
security_attribute_show(tsme_status)
@@ -47,6 +49,7 @@ static DEVICE_ATTR_RO(rom_armor_enforced);
4749

4850
static struct attribute *psp_security_attrs[] = {
4951
&dev_attr_fused_part.attr,
52+
&dev_attr_boot_integrity.attr,
5053
&dev_attr_debug_lock_on.attr,
5154
&dev_attr_tsme_status.attr,
5255
&dev_attr_anti_rollback_status.attr,

drivers/crypto/ccp/psp-dev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ union psp_cap_register {
3636
rsvd1 :3,
3737
security_reporting :1,
3838
fused_part :1,
39-
rsvd2 :1,
39+
boot_integrity :1,
4040
debug_lock_on :1,
4141
rsvd3 :2,
4242
tsme_status :1,

0 commit comments

Comments
 (0)