Add dynamic boost control support
Subsystems (3)
Mario Limonciello
maintainerv5 cover Add dynamic boost control support
Dynamic boost control is a feature of some SoCs that allows an authenticated entity to send commands to the security processor to control certain SOC characteristics with the intention to improve performance.
This is implemented via a mechanism that a userspace application would authenticate using a nonce and key exchange over an IOCTL interface.
After authentication is complete an application can exchange signed messages with the security processor and both ends can validate the data transmitted.
This series includes a test suite that can be run on real hardware to ensure that the communication works as expected. This can also be used for an application to model the communication path.
Two sysfs files are introduced for reading the PSP bootloader version as well as TEE version which can be useful data points for debugging communication problems.
v4->v5:
* Pick up tags
* Pick up a static fix
* Fix a mistake found in dbc_cli
Mario Limonciello (11):
crypto: ccp: Rename macro for security attributes
crypto: ccp: Add support for displaying PSP firmware versions
crypto: ccp: Add bootloader and TEE version offsets
crypto: ccp: move setting PSP master to earlier in the init
crypto: ccp: Add support for fetching a nonce for dynamic boost
control
crypto: ccp: Add support for setting user ID for dynamic boost control
crypto: ccp: Add support for getting and setting DBC parameters
crypto: ccp: Add a sample library for ioctl use
crypto: ccp: Add a sample python script for Dynamic Boost Control
crypto: ccp: Add unit tests for dynamic boost control
crypto: ccp: Add Mario to MAINTAINERS
Documentation/ABI/testing/sysfs-driver-ccp | 18 ++ MAINTAINERS | 12 + drivers/crypto/ccp/Makefile | 3 +- drivers/crypto/ccp/dbc.c | 250 +++++++++++++++++++ drivers/crypto/ccp/dbc.h | 56 +++++ drivers/crypto/ccp/psp-dev.c | 19 +- drivers/crypto/ccp/psp-dev.h | 1 + drivers/crypto/ccp/sp-dev.h | 7 + drivers/crypto/ccp/sp-pci.c | 96 +++++++- include/linux/psp-platform-access.h | 4 + include/uapi/linux/psp-dbc.h | 147 ++++++++++++ tools/crypto/ccp/.gitignore | 1 + tools/crypto/ccp/Makefile | 13 + tools/crypto/ccp/dbc.c | 72 ++++++ tools/crypto/ccp/dbc.py | 64 +++++ tools/crypto/ccp/dbc_cli.py | 134 +++++++++++ tools/crypto/ccp/test_dbc.py | 266 +++++++++++++++++++++ 17 files changed, 1146 insertions(+), 17 deletions(-) create mode 100644 drivers/crypto/ccp/dbc.c create mode 100644 drivers/crypto/ccp/dbc.h create mode 100644 include/uapi/linux/psp-dbc.h create mode 100644 tools/crypto/ccp/.gitignore create mode 100644 tools/crypto/ccp/Makefile create mode 100644 tools/crypto/ccp/dbc.c create mode 100644 tools/crypto/ccp/dbc.py create mode 100755 tools/crypto/ccp/dbc_cli.py create mode 100755 tools/crypto/ccp/test_dbc.py
base-commit: b335f258e8ddafec0e8ae2201ca78d29ed8f85eb
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 1/11 crypto: ccp: Rename macro for security attributes
The attribute_show() macro is only valid for determining the availability of security related sysfs entries. Rename the macro to better show this relationship.
---v2->v3:
* Pick up tag
--- drivers/crypto/ccp/sp-pci.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/crypto/ccp/sp-pci.c +13 -13
@@ -32,7 +32,7 @@ struct sp_pci { };static struct sp_device *sp_dev_master; -#define attribute_show (name, def) \ +#define security_attribute_show (name, def) \ static ssize_t name##_show(struct device *d, struct device_attribute *attr, \ char *buf) \ { \
@@ -42,24 +42,24 @@ static ssize_t name##_show(struct device *d, struct device_attribute *attr, \return sysfs_emit (buf,"%d\n" , (psp->capability & bit) >0 ); \ } -attribute_show(fused_part, FUSED_PART) +security_attribute_show(fused_part, FUSED_PART)static DEVICE_ATTR_RO (fused_part); -attribute_show(debug_lock_on, DEBUG_LOCK_ON) +security_attribute_show(debug_lock_on, DEBUG_LOCK_ON)static DEVICE_ATTR_RO (debug_lock_on); -attribute_show(tsme_status, TSME_STATUS) +security_attribute_show(tsme_status, TSME_STATUS)static DEVICE_ATTR_RO (tsme_status); -attribute_show(anti_rollback_status, ANTI_ROLLBACK_STATUS) +security_attribute_show(anti_rollback_status, ANTI_ROLLBACK_STATUS)static DEVICE_ATTR_RO (anti_rollback_status); -attribute_show(rpmc_production_enabled, RPMC_PRODUCTION_ENABLED) +security_attribute_show(rpmc_production_enabled, RPMC_PRODUCTION_ENABLED)static DEVICE_ATTR_RO (rpmc_production_enabled); -attribute_show(rpmc_spirom_available, RPMC_SPIROM_AVAILABLE) +security_attribute_show(rpmc_spirom_available, RPMC_SPIROM_AVAILABLE)static DEVICE_ATTR_RO (rpmc_spirom_available); -attribute_show(hsp_tpm_available, HSP_TPM_AVAILABLE) +security_attribute_show(hsp_tpm_available, HSP_TPM_AVAILABLE)static DEVICE_ATTR_RO (hsp_tpm_available); -attribute_show(rom_armor_enforced, ROM_ARMOR_ENFORCED) +security_attribute_show(rom_armor_enforced, ROM_ARMOR_ENFORCED)static DEVICE_ATTR_RO (rom_armor_enforced); -static struct attribute *psp_attrs[] = { +static struct attribute *psp_security_attrs[] = { &dev_attr_fused_part.attr, &dev_attr_debug_lock_on.attr, &dev_attr_tsme_status.attr,
@@ -83,13 +83,13 @@ static umode_t psp_security_is_visible(struct kobject *kobj, struct attribute *areturn 0 ; } -static struct attribute_group psp_attr_group = { - .attrs = psp_attrs, +static struct attribute_group psp_security_attr_group = { + .attrs = psp_security_attrs, .is_visible = psp_security_is_visible, };static const struct attribute_group *psp_groups[] = { - &psp_attr_group, + &psp_security_attr_group,NULL , };
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 2/11 crypto: ccp: Add support for displaying PSP firmware versions
In reply to Mario LimoncielloAs it's not always obvious what PSP bootloader or TEE version are present in OEM systems, add the ability to get this information from sysfs for supported platforms.
---v2->v3:
* Pick up tagv1->v2:
* Move GENMASK declarations to top of the file
* Add comment to support why checking for 0xffffffff
--- Documentation/ABI/testing/sysfs-driver-ccp | 18 ++++++ drivers/crypto/ccp/sp-dev.h | 2 + drivers/crypto/ccp/sp-pci.c | 64 ++++++++++++++++++++++ 3 files changed, 84 insertions(+)
Documentation/ABI/testing/sysfs-driver-ccp +18 -0
@@ -85,3 +85,21 @@ Description: Possible values: 0: Not enforced 1: Enforced + +What: /sys/bus/pci/devices/<BDF>/bootloader_version +Date: June 2023 +KernelVersion: 6.4 +Contact: [email protected] +Description: + The /sys/bus/pci/devices/<BDF>/bootloader_version + file reports the firmware version of the AMD AGESA + bootloader. + +What: /sys/bus/pci/devices/<BDF>/tee_version +Date: June 2023 +KernelVersion: 6.4 +Contact: [email protected] +Description: + The /sys/bus/pci/devices/<BDF>/tee_version + file reports the firmware version of the AMD Trusted + Execution Environment (TEE).
drivers/crypto/ccp/sp-dev.h +2 -0
@@ -51,6 +51,7 @@ struct tee_vdata {const unsigned int cmdbuff_addr_hi_reg;const unsigned int ring_wptr_reg;const unsigned int ring_rptr_reg; +const unsigned int info_reg; };struct platform_access_vdata {
@@ -69,6 +70,7 @@ struct psp_vdata {const unsigned int feature_reg;const unsigned int inten_reg;const unsigned int intsts_reg; +const unsigned int bootloader_info_reg; };/* Structure to hold SP device data */
drivers/crypto/ccp/sp-pci.c +64 -0
84 lines not on this page · raw message
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 3/11 crypto: ccp: Add bootloader and TEE version offsets
In reply to Mario LimoncielloThe bootloader and TEE versions are stored in registers that can be accessed from sysfs. This exports the information for recent client and datacenter parts.
---v2->v3:
* Pick up tag
--- drivers/crypto/ccp/sp-pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/crypto/ccp/sp-pci.c +5 -0
@@ -423,6 +423,7 @@ static const struct tee_vdata teev1 = { .cmdbuff_addr_hi_reg = 0x1054c, /* C2PMSG_19 */ .ring_wptr_reg = 0x10550, /* C2PMSG_20 */ .ring_rptr_reg = 0x10554, /* C2PMSG_21 */ + .info_reg = 0x109e8, /* C2PMSG_58 */ };static const struct tee_vdata teev2 = {
@@ -448,6 +449,7 @@ static const struct platform_access_vdata pa_v2 = {static const struct psp_vdata pspv1 = { .sev = &sevv1, + .bootloader_info_reg =0x105ec ,/* C2PMSG_59 */ .feature_reg =0x105fc ,/* C2PMSG_63 */ .inten_reg =0x10610 ,/* P2CMSG_INTEN */ .intsts_reg =0x10614 ,/* P2CMSG_INTSTS */
@@ -455,6 +457,7 @@ static const struct psp_vdata pspv1 = {static const struct psp_vdata pspv2 = { .sev = &sevv2, + .bootloader_info_reg =0x109ec ,/* C2PMSG_59 */ .feature_reg =0x109fc ,/* C2PMSG_63 */ .inten_reg =0x10690 ,/* P2CMSG_INTEN */ .intsts_reg =0x10694 ,/* P2CMSG_INTSTS */
@@ -463,6 +466,7 @@ static const struct psp_vdata pspv2 = {static const struct psp_vdata pspv3 = { .tee = &teev1, .platform_access = &pa_v1, + .bootloader_info_reg =0x109ec ,/* C2PMSG_59 */ .feature_reg =0x109fc ,/* C2PMSG_63 */ .inten_reg =0x10690 ,/* P2CMSG_INTEN */ .intsts_reg =0x10694 ,/* P2CMSG_INTSTS */
@@ -471,6 +475,7 @@ static const struct psp_vdata pspv3 = {static const struct psp_vdata pspv4 = { .sev = &sevv2, .tee = &teev1, + .bootloader_info_reg =0x109ec ,/* C2PMSG_59 */ .feature_reg =0x109fc ,/* C2PMSG_63 */ .inten_reg =0x10690 ,/* P2CMSG_INTEN */ .intsts_reg =0x10694 ,/* P2CMSG_INTSTS */
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 4/11 crypto: ccp: move setting PSP master to earlier in the init
In reply to Mario LimoncielloDynamic boost control needs to use platform access symbols that look for the PSP master as part of initialization.
So move the PSP master before psp_init() so that dynamic boost control can be initialized properly.
---v4->v5:
* Pick up tagv3->v4:
* Pick up tagv2->v3:
* Clean up master device if psp_init() failed
--- drivers/crypto/ccp/psp-dev.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/crypto/ccp/psp-dev.c +7 -3
@@ -173,13 +173,14 @@ int psp_dev_init(struct sp_device *sp) goto e_err; } +/* master device must be set for platform access */ +if (psp->sp->set_psp_master_device) + psp->sp->set_psp_master_device (psp->sp); + ret =psp_init (psp);if (ret) goto e_irq; -if (sp->set_psp_master_device) - sp->set_psp_master_device (sp); -/* Enable interrupt */ iowrite32 (-1 , psp->io_regs + psp->vdata->inten_reg);
@@ -188,6 +189,9 @@ int psp_dev_init(struct sp_device *sp)return 0 ; e_irq: +if (sp->clear_psp_master_device) + sp->clear_psp_master_device (sp); +sp_free_psp_irq (psp->sp, psp); e_err: sp->psp_data =NULL ;
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 5/11 crypto: ccp: Add support for fetching a nonce for dynamic boost control
In reply to Mario LimoncielloDynamic Boost Control is a feature offered on AMD client platforms that allows software to request and set power or frequency limits.
Only software that has authenticated with the PSP can retrieve or set these limits.
Create a character device and ioctl for fetching the nonce. This ioctl supports optionally passing authentication information which will influence how many calls the nonce is valid for.
---v4->v5:
* Pick up tag
* Add a missing static for dbc_fops
--- drivers/crypto/ccp/Makefile | 3 +- drivers/crypto/ccp/dbc.c | 191 ++++++++++++++++++++++++++++ drivers/crypto/ccp/dbc.h | 44 +++++++ drivers/crypto/ccp/psp-dev.c | 9 ++ drivers/crypto/ccp/psp-dev.h | 1 + drivers/crypto/ccp/sp-dev.h | 5 + drivers/crypto/ccp/sp-pci.c | 1 + include/linux/psp-platform-access.h | 1 + include/uapi/linux/psp-dbc.h | 67 ++++++++++ 9 files changed, 321 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/ccp/dbc.c create mode 100644 drivers/crypto/ccp/dbc.h create mode 100644 include/uapi/linux/psp-dbc.h
drivers/crypto/ccp/Makefile +2 -1
@@ -11,7 +11,8 @@ ccp-$(CONFIG_PCI) += sp-pci.o ccp-$(CONFIG_CRYPTO_DEV_SP_PSP) += psp-dev.o \ sev-dev.o \ tee-dev.o \ - platform-access.o + platform-access.o \ + dbc.o obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o ccp-crypto-objs := ccp-crypto-main.o \
drivers/crypto/ccp/dbc.c new file +191 -0
191 lines not on this page · raw message
drivers/crypto/ccp/dbc.h new file +44 -0
44 lines not on this page · raw message
drivers/crypto/ccp/psp-dev.c +9 -0
@@ -15,6 +15,7 @@#include "sev-dev.h" #include "tee-dev.h" #include "platform-access.h" +#include "dbc.h" struct psp_device *psp_master;
@@ -112,6 +113,12 @@ static void psp_init_platform_access(struct psp_device *psp)dev_warn (psp->dev,"platform access init failed: %d\n" , ret);return ; } + +/* dbc must come after platform access as it tests the feature */ + ret =dbc_dev_init (psp); +if (ret) +dev_warn (psp->dev,"failed to init dynamic boost control: %d\n" , + ret); }static int psp_init (struct psp_device *psp)
@@ -217,6 +224,8 @@ void psp_dev_destroy(struct sp_device *sp)tee_dev_destroy (psp); +dbc_dev_destroy (psp); +platform_access_dev_destroy (psp);sp_free_psp_irq (sp, psp);
drivers/crypto/ccp/psp-dev.h +1 -0
@@ -40,6 +40,7 @@ struct psp_device {void *sev_data;void *tee_data;void *platform_access_data; +void *dbc_data;unsigned int capability; };
drivers/crypto/ccp/sp-dev.h +5 -0
@@ -28,6 +28,10 @@#define CACHE_NONE 0x00#define CACHE_WB_NO_ALLOC 0xb7 +#define PLATFORM_FEATURE_DBC 0x1 + +#define PSP_FEATURE (psp, feat) (psp->vdata && psp->vdata->platform_features & PLATFORM_FEATURE_##feat) +/* Structure to hold CCP device data */ struct ccp_device ;struct ccp_vdata {
@@ -71,6 +75,7 @@ struct psp_vdata {const unsigned int inten_reg;const unsigned int intsts_reg;const unsigned int bootloader_info_reg; +const unsigned int platform_features; };/* Structure to hold SP device data */
drivers/crypto/ccp/sp-pci.c +1 -0
@@ -470,6 +470,7 @@ static const struct psp_vdata pspv3 = { .feature_reg = 0x109fc, /* C2PMSG_63 */ .inten_reg = 0x10690, /* P2CMSG_INTEN */ .intsts_reg = 0x10694, /* P2CMSG_INTSTS */ + .platform_features = PLATFORM_FEATURE_DBC, };static const struct psp_vdata pspv4 = {
include/linux/psp-platform-access.h +1 -0
@@ -8,6 +8,7 @@enum psp_platform_access_msg {PSP_CMD_NONE =0x0 ,PSP_I2C_REQ_BUS_CMD =0x64 , +PSP_DYNAMIC_BOOST_GET_NONCE , };struct psp_req_buffer_hdr {
include/uapi/linux/psp-dbc.h new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 6/11 crypto: ccp: Add support for setting user ID for dynamic boost control
In reply to Mario LimoncielloAs part of the authentication flow for Dynamic Boost Control, the calling software will need to send a uid used in all of its future communications.
Add support for another IOCTL call to let userspace software set this up.
---v4->v5:
* Pick up tagv1->v2:
* Update commit message
--- drivers/crypto/ccp/dbc.c | 18 ++++++++++++++++++ drivers/crypto/ccp/dbc.h | 6 ++++++ include/linux/psp-platform-access.h | 1 + include/uapi/linux/psp-dbc.h | 20 ++++++++++++++++++++ 4 files changed, 45 insertions(+)
drivers/crypto/ccp/dbc.c +18 -0
@@ -117,6 +117,24 @@ static long dbc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) goto unlock; }break ; +case DBCIOCUID : + dbc_dev->mbox->req.header.payload_size =sizeof (dbc_dev->mbox->dbc_set_uid); +if (copy_from_user (&dbc_dev->mbox->dbc_set_uid.user, argp, +sizeof (struct dbc_user_setuid ))) { + ret = -EFAULT ; + goto unlock; + } + + ret =send_dbc_cmd (dbc_dev,PSP_DYNAMIC_BOOST_SET_UID ); +if (ret) + goto unlock; + +if (copy_to_user (argp, &dbc_dev->mbox->dbc_set_uid.user, +sizeof (struct dbc_user_setuid ))) { + ret = -EFAULT ; + goto unlock; + } +break ;default : ret = -EINVAL ;
drivers/crypto/ccp/dbc.h +6 -0
@@ -33,9 +33,15 @@ struct dbc_nonce {struct dbc_user_nonce user; } __packed; +struct dbc_set_uid { +struct psp_req_buffer_hdr header; +struct dbc_user_setuid user; +} __packed; +union dbc_buffer {struct psp_request req;struct dbc_nonce dbc_nonce; +struct dbc_set_uid dbc_set_uid; };void dbc_dev_destroy (struct psp_device *psp);
include/linux/psp-platform-access.h +1 -0
@@ -9,6 +9,7 @@ enum psp_platform_access_msg {PSP_CMD_NONE =0x0 ,PSP_I2C_REQ_BUS_CMD =0x64 ,PSP_DYNAMIC_BOOST_GET_NONCE , + PSP_DYNAMIC_BOOST_SET_UID, }; struct psp_req_buffer_hdr {
include/uapi/linux/psp-dbc.h +20 -0
@@ -18,6 +18,7 @@#define DBC_NONCE_SIZE 16#define DBC_SIG_SIZE 32 +#define DBC_UID_SIZE 16/** * struct dbc_user_nonce - Nonce exchange structure (input/output).
@@ -34,6 +35,16 @@ struct dbc_user_nonce {__u8 signature[DBC_SIG_SIZE ]; } __packed; +/** +* struct dbc_user_setuid - UID exchange structure (input). +* @uid: 16 byte value representing software identity +* @signature: 32 byte signature created by software using a previous nonce +*/ +struct dbc_user_setuid { +__u8 uid[DBC_UID_SIZE ]; +__u8 signature[DBC_SIG_SIZE ]; +} __packed; +/** * Dynamic Boost Control (DBC) IOC *
@@ -64,4 +75,13 @@ struct dbc_user_nonce {*/ #define DBCIOCNONCE _IOWR(DBC_IOC_TYPE, 0x1, struct dbc_user_nonce) +/** +* DBCIOCUID - Set the user ID (UID) of a calling process. +* The user ID is 8 bytes long. It must be programmed using a +* 32 byte signature built using the nonce fetched from +* DBCIOCNONCE. +* The UID can only be set once until the system is rebooted. +*/ +#define DBCIOCUID _IOW(DBC_IOC_TYPE, 0x2, struct dbc_user_setuid) +#endif /* __PSP_DBC_USER_H__ */
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 7/11 crypto: ccp: Add support for getting and setting DBC parameters
In reply to Mario LimoncielloAfter software has authenticated a dynamic boost control request, it can fetch and set supported parameters using a selection of messages.
Add support for these messages and export the ability to do this to userspace.
---v4->v5:
* Pick up tag
--- drivers/crypto/ccp/dbc.c | 41 ++++++++++++++++++++ drivers/crypto/ccp/dbc.h | 6 +++ include/linux/psp-platform-access.h | 2 + include/uapi/linux/psp-dbc.h | 60 +++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+)
drivers/crypto/ccp/dbc.c +41 -0
@@ -74,6 +74,30 @@ static int send_dbc_nonce(struct psp_dbc_device *dbc_dev)return ret; } +static int send_dbc_parameter (struct psp_dbc_device *dbc_dev) +{ + dbc_dev->mbox->req.header.payload_size =sizeof (dbc_dev->mbox->dbc_param); + +switch (dbc_dev->mbox->dbc_param.user.msg_index) { +case PARAM_SET_FMAX_CAP : +case PARAM_SET_PWR_CAP : +case PARAM_SET_GFX_MODE : +return send_dbc_cmd (dbc_dev,PSP_DYNAMIC_BOOST_SET_PARAMETER ); +case PARAM_GET_FMAX_CAP : +case PARAM_GET_PWR_CAP : +case PARAM_GET_CURR_TEMP : +case PARAM_GET_FMAX_MAX : +case PARAM_GET_FMAX_MIN : +case PARAM_GET_SOC_PWR_MAX : +case PARAM_GET_SOC_PWR_MIN : +case PARAM_GET_SOC_PWR_CUR : +case PARAM_GET_GFX_MODE : +return send_dbc_cmd (dbc_dev,PSP_DYNAMIC_BOOST_GET_PARAMETER ); + } + +return -EINVAL ; +} +void dbc_dev_destroy (struct psp_device *psp) {struct psp_dbc_device *dbc_dev = psp->dbc_data;
@@ -135,6 +159,23 @@ static long dbc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) goto unlock; }break ; +case DBCIOCPARAM : +if (copy_from_user (&dbc_dev->mbox->dbc_param.user, argp, +sizeof (struct dbc_user_param ))) { + ret = -EFAULT ; + goto unlock; + } + + ret =send_dbc_parameter (dbc_dev); +if (ret) + goto unlock; + +if (copy_to_user (argp, &dbc_dev->mbox->dbc_param.user, +sizeof (struct dbc_user_param ))) { + ret = -EFAULT ; + goto unlock; + } +break ;default : ret = -EINVAL ;
drivers/crypto/ccp/dbc.h +6 -0
@@ -38,10 +38,16 @@ struct dbc_set_uid {struct dbc_user_setuid user; } __packed; +struct dbc_param { +struct psp_req_buffer_hdr header; +struct dbc_user_param user; +} __packed; +union dbc_buffer {struct psp_request req;struct dbc_nonce dbc_nonce;struct dbc_set_uid dbc_set_uid; +struct dbc_param dbc_param; };void dbc_dev_destroy (struct psp_device *psp);
include/linux/psp-platform-access.h +2 -0
@@ -10,6 +10,8 @@ enum psp_platform_access_msg {PSP_I2C_REQ_BUS_CMD =0x64 ,PSP_DYNAMIC_BOOST_GET_NONCE ,PSP_DYNAMIC_BOOST_SET_UID , +PSP_DYNAMIC_BOOST_GET_PARAMETER , + PSP_DYNAMIC_BOOST_SET_PARAMETER, }; struct psp_req_buffer_hdr {
include/uapi/linux/psp-dbc.h +60 -0
70 lines not on this page · raw message
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 8/11 crypto: ccp: Add a sample library for ioctl use
In reply to Mario LimoncielloAdd a small shared library that demonstrates the usage of the IOCTL interface. This library can be linked to but, is intended to be loaded and used by higher level languages
---v4->v5:
* Pick up tagv3->v4:
* New patch
--- tools/crypto/ccp/Makefile | 13 +++++++ tools/crypto/ccp/dbc.c | 72 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 tools/crypto/ccp/Makefile create mode 100644 tools/crypto/ccp/dbc.c
tools/crypto/ccp/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-only +CFLAGS += -D__EXPORTED_HEADERS__ -I../../../include/uapi -I../../../include + +TARGET = dbc_library.so + +all: $(TARGET) + +dbc_library.so: dbc.c + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< + chmod -x $@ + +clean: + $(RM) $(TARGET)
tools/crypto/ccp/dbc.c new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 9/11 crypto: ccp: Add a sample python script for Dynamic Boost Control
In reply to Mario LimoncielloDynamic Boost Control commands are triggered by userspace with an IOCTL interface that userspace will prepare proper buffers for a request.
To allow prototyping and testing this interface, add a python3 command line script that loads the dbc_library.so for utilizing the IOCTLs.
The signature to use and UID are passed as arguments to this script.
---v4->v5:
* Fix the get-fmax-min message which was accidentally checking PARAM_GET_FMAX_MAX
* Pick up tagv3->v4:
* Use library from previous patch instead of python's ioctl interface
--- tools/crypto/ccp/.gitignore | 1 + tools/crypto/ccp/dbc.py | 64 +++++++++++++++++ tools/crypto/ccp/dbc_cli.py | 134 ++++++++++++++++++++++++++++++++++++ 3 files changed, 199 insertions(+) create mode 100644 tools/crypto/ccp/.gitignore create mode 100644 tools/crypto/ccp/dbc.py create mode 100755 tools/crypto/ccp/dbc_cli.py
tools/crypto/ccp/.gitignore new file +1 -0
@@ -0,0 +1 @@ +__pycache__
tools/crypto/ccp/dbc.py new file +64 -0
64 lines not on this page · raw message
tools/crypto/ccp/dbc_cli.py new file +134 -0
134 lines not on this page · raw message
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 10/11 crypto: ccp: Add unit tests for dynamic boost control
In reply to Mario LimoncielloInteracting with dynamic boost control messages requires the caller to supply a signature. To allow validation of individual dynamic boost control components, introduce a set of tests that can be run.
The tests can be run in 3 distinct different environments, and so certain tests will be skipped depending on the environment.
1. Systems that do not support DBC.
2. Production systems that support DBC but are secured silicon.
3. Pre-production systems that support DBC but are unsecured silicon.
Unsecured silicon does not validate the signature, and so this allows testing more of the state machine and functionality.
---v4->v5:
* pick up tagv3->v4:
* Adjust for library changesv1->v2:
* Update commit message
--- tools/crypto/ccp/test_dbc.py | 266 +++++++++++++++++++++++++++++++++++ 1 file changed, 266 insertions(+) create mode 100755 tools/crypto/ccp/test_dbc.py
tools/crypto/ccp/test_dbc.py new file +266 -0
@@ -0,0 +1,266 @@ +#!/usr/bin/python3 +# SPDX-License-Identifier: GPL-2.0 +import unittest +import os +import time +import glob +from dbc import * + +# Artificial delay between set commands +SET_DELAY = 0.5 + + +class invalid_param(ctypes.Structure): + _fields_ = [ + ("data", ctypes.c_uint8), + ] + + +def system_is_secured() -> bool: + fused_part = glob.glob("/sys/bus/pci/drivers/ccp/**/fused_part")[0] + if os.path.exists(fused_part): + with open(fused_part, "r") as r: + return int(r.read()) == 1 + return True + + +class DynamicBoostControlTest(unittest.TestCase): + def __init__(self, data) -> None: + self.d = None + self.signature = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" + self.uid = "1111111111111111" + super().__init__(data) + + def setUp(self) -> None: + self.d = open(DEVICE_NODE) + return super().setUp() + + def tearDown(self) -> None: + if self.d: + self.d.close() + return super().tearDown() + + +class TestUnsupportedSystem(DynamicBoostControlTest): + def setUp(self) -> None: + if os.path.exists(DEVICE_NODE): + self.skipTest("system is supported") + with self.assertRaises(FileNotFoundError) as error: + super().setUp() + self.assertEqual(error.exception.errno, 2) + + def test_unauthenticated_nonce(self) -> None: + """fetch unauthenticated nonce""" + with self.assertRaises(ValueError) as error: + get_nonce(self.d, None) + + +class TestInvalidIoctls(DynamicBoostControlTest): + def __init__(self, data) -> None: + self.data = invalid_param() + self.data.data = 1 + super().__init__(data) + + def setUp(self) -> None: + if not os.path.exists(DEVICE_NODE): + self.skipTest("system is unsupported") + return super().setUp() + + def test_invalid_nonce_ioctl(self) -> None: + """tries to call get_nonce ioctl with invalid data structures""" + + # 0x1 (get nonce), and invalid data + INVALID1 = IOWR(ord("D"), 0x01, invalid_param) + with self.assertRaises(OSError) as error: + fcntl.ioctl(self.d, INVALID1, self.data, True) + self.assertEqual(error.exception.errno, 22) + + def test_invalid_setuid_ioctl(self) -> None: + """tries to call set_uid ioctl with invalid data structures""" + + # 0x2 (set uid), and invalid data + INVALID2 = IOW(ord("D"), 0x02, invalid_param) + with self.assertRaises(OSError) as error: + fcntl.ioctl(self.d, INVALID2, self.data, True) + self.assertEqual(error.exception.errno, 22) + + def test_invalid_setuid_rw_ioctl(self) -> None: + """tries to call set_uid ioctl with invalid data structures""" + + # 0x2 as RW (set uid), and invalid data + INVALID3 = IOWR(ord("D"), 0x02, invalid_param) + with self.assertRaises(OSError) as error: + fcntl.ioctl(self.d, INVALID3, self.data, True) + self.assertEqual(error.exception.errno, 22) + + def test_invalid_param_ioctl(self) -> None: + """tries to call param ioctl with invalid data structures""" + # 0x3 (param), and invalid data + INVALID4 = IOWR(ord("D"), 0x03, invalid_param) + with self.assertRaises(OSError) as error: + fcntl.ioctl(self.d, INVALID4, self.data, True) + self.assertEqual(error.exception.errno, 22) + + def test_invalid_call_ioctl(self) -> None: + """tries to call the DBC ioctl with invalid data structures""" + # 0x4, and invalid data + INVALID5 = IOWR(ord("D"), 0x04, invalid_param) + with self.assertRaises(OSError) as error: + fcntl.ioctl(self.d, INVALID5, self.data, True) + self.assertEqual(error.exception.errno, 22) + + +class TestInvalidSignature(DynamicBoostControlTest): + def setUp(self) -> None: + if not os.path.exists(DEVICE_NODE): + self.skipTest("system is unsupported") + if not system_is_secured(): + self.skipTest("system is unfused") + return super().setUp() + + def test_unauthenticated_nonce(self) -> None: + """fetch unauthenticated nonce""" + get_nonce(self.d, None) + + def test_multiple_unauthenticated_nonce(self) -> None: + """ensure state machine always returns nonce""" + for count in range(0, 2): + get_nonce(self.d, None) + + def test_authenticated_nonce(self) -> None: + """fetch authenticated nonce""" + with self.assertRaises(OSError) as error: + get_nonce(self.d, self.signature) + self.assertEqual(error.exception.errno, 1) + + def test_set_uid(self) -> None: + """set uid""" + with self.assertRaises(OSError) as error: + set_uid(self.d, self.uid, self.signature) + self.assertEqual(error.exception.errno, 1) + + def test_get_param(self) -> None: + """fetch a parameter""" + with self.assertRaises(OSError) as error: + process_param(self.d, PARAM_GET_SOC_PWR_CUR, self.signature) + self.assertEqual(error.exception.errno, 1) + + def test_set_param(self) -> None: + """set a parameter""" + with self.assertRaises(OSError) as error: + process_param(self.d, PARAM_SET_PWR_CAP, self.signature, 1000) + self.assertEqual(error.exception.errno, 1) + + +class TestUnFusedSystem(DynamicBoostControlTest): + def setup_identity(self) -> None: + """sets up the identity of the caller""" + # if already authenticated these may fail + try: + get_nonce(self.d, None) + except PermissionError: + pass + try: + set_uid(self.d, self.uid, self.signature) + except BlockingIOError: + pass + try: + get_nonce(self.d, self.signature) + except PermissionError: + pass + + def setUp(self) -> None: + if not os.path.exists(DEVICE_NODE): + self.skipTest("system is unsupported") + if system_is_secured(): + self.skipTest("system is fused") + super().setUp() + self.setup_identity() + time.sleep(SET_DELAY) + + def test_get_valid_param(self) -> None: + """fetch all possible parameters""" + # SOC power + soc_power_max = process_param(self.d, PARAM_GET_SOC_PWR_MAX, self.signature) + soc_power_min = process_param(self.d, PARAM_GET_SOC_PWR_MIN, self.signature) + self.assertGreater(soc_power_max.parameter, soc_power_min.parameter) + + # fmax + fmax_max = process_param(self.d, PARAM_GET_FMAX_MAX, self.signature) + fmax_min = process_param(self.d, PARAM_GET_FMAX_MIN, self.signature) + self.assertGreater(fmax_max.parameter, fmax_min.parameter) + + # cap values + keys = { + "fmax-cap": PARAM_GET_FMAX_CAP, + "power-cap": PARAM_GET_PWR_CAP, + "current-temp": PARAM_GET_CURR_TEMP, + "soc-power-cur": PARAM_GET_SOC_PWR_CUR, + } + for k in keys: + result = process_param(self.d, keys[k], self.signature) + self.assertGreater(result.parameter, 0) + + def test_get_invalid_param(self) -> None: + """fetch an invalid parameter""" + try: + set_uid(self.d, self.uid, self.signature) + except OSError: + pass + with self.assertRaises(OSError) as error: + process_param(self.d, (0xF,), self.signature) + self.assertEqual(error.exception.errno, 22) + + def test_set_fmax(self) -> None: + """get/set fmax limit""" + # fetch current + original = process_param(self.d, PARAM_GET_FMAX_CAP, self.signature) + + # set the fmax + target = original.parameter - 100 + process_param(self.d, PARAM_SET_FMAX_CAP, self.signature, target) + time.sleep(SET_DELAY) + new = process_param(self.d, PARAM_GET_FMAX_CAP, self.signature) + self.assertEqual(new.parameter, target) + + # revert back to current + process_param(self.d, PARAM_SET_FMAX_CAP, self.signature, original.parameter) + time.sleep(SET_DELAY) + cur = process_param(self.d, PARAM_GET_FMAX_CAP, self.signature) + self.assertEqual(cur.parameter, original.parameter) + + def test_set_power_cap(self) -> None: + """get/set power cap limit""" + # fetch current + original = process_param(self.d, PARAM_GET_PWR_CAP, self.signature) + + # set the fmax + target = original.parameter - 10 + process_param(self.d, PARAM_SET_PWR_CAP, self.signature, target) + time.sleep(SET_DELAY) + new = process_param(self.d, PARAM_GET_PWR_CAP, self.signature) + self.assertEqual(new.parameter, target) + + # revert back to current + process_param(self.d, PARAM_SET_PWR_CAP, self.signature, original.parameter) + time.sleep(SET_DELAY) + cur = process_param(self.d, PARAM_GET_PWR_CAP, self.signature) + self.assertEqual(cur.parameter, original.parameter) + + def test_set_3d_graphics_mode(self) -> None: + """set/get 3d graphics mode""" + # these aren't currently implemented but may be some day + # they are *expected* to fail + with self.assertRaises(OSError) as error: + process_param(self.d, PARAM_GET_GFX_MODE, self.signature) + self.assertEqual(error.exception.errno, 2) + + time.sleep(SET_DELAY) + + with self.assertRaises(OSError) as error: + process_param(self.d, PARAM_SET_GFX_MODE, self.signature, 1) + self.assertEqual(error.exception.errno, 2) + + +if __name__ == "__main__": + unittest.main()
Signature · 1 line
2.34.1
Mario Limonciello
maintainerPATCH v5 11/11 crypto: ccp: Add Mario to MAINTAINERS
In reply to Mario LimoncielloI will maintain the platform access interface and dynamic boost control support.
---v4->v5:
* Pick up tagv3->v4:
* Add reference to new tools/crypto/ccp/dbc.c
--- MAINTAINERS | 12 ++++++++++++ 1 file changed, 12 insertions(+)
MAINTAINERS +12 -0
@@ -988,6 +988,18 @@ S: Supported F: drivers/crypto/ccp/sev* F: include/uapi/linux/psp-sev.h +AMD CRYPTOGRAPHIC COPROCESSOR (CCP) DRIVER - DBC SUPPORT +M: Mario Limonciello <[email protected]> +L: [email protected] +S: Supported +F: drivers/crypto/ccp/dbc.c +F: drivers/crypto/ccp/dbc.h +F: drivers/crypto/ccp/platform-access.c +F: drivers/crypto/ccp/platform-access.h +F: include/uapi/linux/psp-dbc.h +F: tools/crypto/ccp/*.c +F: tools/crypto/ccp/*.py + AMD DISPLAY CORE M: Harry Wentland <[email protected]> M: Leo Li <[email protected]>
Signature · 1 line
2.34.1
Quoted 12 lines · Mario Limonciello
Dynamic boost control is a feature of some SoCs that allows an authenticated entity to send commands to the security processor to control certain SOC characteristics with the intention to improve performance.
This is implemented via a mechanism that a userspace application would authenticate using a nonce and key exchange over an IOCTL interface.
After authentication is complete an application can exchange signed messages with the security processor and both ends can validate the data transmitted.
Quoted 7 lines
This series includes a test suite that can be run on real hardware to ensure that the communication works as expected. This can also be used for an application to model the communication path.
Two sysfs files are introduced for reading the PSP bootloader version as well as TEE version which can be useful data points for debugging communication problems.
Series looks OK to me.
Quoted 53 lines
v4->v5:
* Pick up tags
* Pick up a static fix
* Fix a mistake found indbc_cliMario Limonciello (11):
crypto: ccp: Rename macro for security attributes
crypto: ccp: Add support for displaying PSP firmware versions
crypto: ccp: Add bootloader and TEE version offsets
crypto: ccp: move setting PSP master to earlier in the init
crypto: ccp: Add support for fetching a nonce for dynamic boost
control
crypto: ccp: Add support for setting user ID for dynamic boost control
crypto: ccp: Add support for getting and setting DBC parameters
crypto: ccp: Add a sample library for ioctl use
crypto: ccp: Add a sample python script for Dynamic Boost Control
crypto: ccp: Add unit tests for dynamic boost control
crypto: ccp: Add Mario toMAINTAINERSDocumentation/ABI/testing/sysfs-driver-ccp | 18 ++ MAINTAINERS | 12 + drivers/crypto/ccp/Makefile | 3 +- drivers/crypto/ccp/dbc.c | 250 +++++++++++++++++++ drivers/crypto/ccp/dbc.h | 56 +++++ drivers/crypto/ccp/psp-dev.c | 19 +- drivers/crypto/ccp/psp-dev.h | 1 + drivers/crypto/ccp/sp-dev.h | 7 + drivers/crypto/ccp/sp-pci.c | 96 +++++++- include/linux/psp-platform-access.h | 4 + include/uapi/linux/psp-dbc.h | 147 ++++++++++++ tools/crypto/ccp/.gitignore | 1 + tools/crypto/ccp/Makefile | 13 + tools/crypto/ccp/dbc.c | 72 ++++++ tools/crypto/ccp/dbc.py | 64 +++++ tools/crypto/ccp/dbc_cli.py | 134 +++++++++++ tools/crypto/ccp/test_dbc.py | 266 +++++++++++++++++++++ 17 files changed, 1146 insertions(+), 17 deletions(-) create mode 100644 drivers/crypto/ccp/dbc.c create mode 100644 drivers/crypto/ccp/dbc.h create mode 100644 include/uapi/linux/psp-dbc.h create mode 100644 tools/crypto/ccp/.gitignore create mode 100644 tools/crypto/ccp/Makefile create mode 100644 tools/crypto/ccp/dbc.c create mode 100644 tools/crypto/ccp/dbc.py create mode 100755 tools/crypto/ccp/dbc_cli.py create mode 100755 tools/crypto/ccp/test_dbc.pybase-commit:
b335f258e8ddafec0e8ae2201ca78d29ed8f85ebSignature · 1 line
2.34.1
Limonciello, Mario
maintainerQuoted 68 lines · Mario Limonciello
Dynamic boost control is a feature of some SoCs that allows an authenticated entity to send commands to the security processor to control certain SOC characteristics with the intention to improve performance.
This is implemented via a mechanism that a userspace application would authenticate using a nonce and key exchange over an IOCTL interface.
After authentication is complete an application can exchange signed messages with the security processor and both ends can validate the data transmitted.
This series includes a test suite that can be run on real hardware to ensure that the communication works as expected. This can also be used for an application to model the communication path.
Two sysfs files are introduced for reading the PSP bootloader version as well as TEE version which can be useful data points for debugging communication problems.
v4->v5:
* Pick up tags
* Pick up a static fix
* Fix a mistake found indbc_cliMario Limonciello (11):
crypto: ccp: Rename macro for security attributes
crypto: ccp: Add support for displaying PSP firmware versions
crypto: ccp: Add bootloader and TEE version offsets
crypto: ccp: move setting PSP master to earlier in the init
crypto: ccp: Add support for fetching a nonce for dynamic boost
control
crypto: ccp: Add support for setting user ID for dynamic boost control
crypto: ccp: Add support for getting and setting DBC parameters
crypto: ccp: Add a sample library for ioctl use
crypto: ccp: Add a sample python script for Dynamic Boost Control
crypto: ccp: Add unit tests for dynamic boost control
crypto: ccp: Add Mario toMAINTAINERSDocumentation/ABI/testing/sysfs-driver-ccp | 18 ++ MAINTAINERS | 12 + drivers/crypto/ccp/Makefile | 3 +- drivers/crypto/ccp/dbc.c | 250 +++++++++++++++++++ drivers/crypto/ccp/dbc.h | 56 +++++ drivers/crypto/ccp/psp-dev.c | 19 +- drivers/crypto/ccp/psp-dev.h | 1 + drivers/crypto/ccp/sp-dev.h | 7 + drivers/crypto/ccp/sp-pci.c | 96 +++++++- include/linux/psp-platform-access.h | 4 + include/uapi/linux/psp-dbc.h | 147 ++++++++++++ tools/crypto/ccp/.gitignore | 1 + tools/crypto/ccp/Makefile | 13 + tools/crypto/ccp/dbc.c | 72 ++++++ tools/crypto/ccp/dbc.py | 64 +++++ tools/crypto/ccp/dbc_cli.py | 134 +++++++++++ tools/crypto/ccp/test_dbc.py | 266 +++++++++++++++++++++ 17 files changed, 1146 insertions(+), 17 deletions(-)create mode 100644
drivers/crypto/ccp/dbc.c
create mode 100644drivers/crypto/ccp/dbc.h
create mode 100644include/uapi/linux/psp-dbc.h
create mode 100644tools/crypto/ccp/.gitignore
create mode 100644tools/crypto/ccp/Makefile
create mode 100644tools/crypto/ccp/dbc.c
create mode 100644tools/crypto/ccp/dbc.py
create mode 100755tools/crypto/ccp/dbc_cli.py
create mode 100755tools/crypto/ccp/test_dbc.py
Quoted 1 line
base-commit:
b335f258e8ddafec0e8ae2201ca78d29ed8f85eb
Herbert,
Any other concerns on this series? It has acks from Tom and John both now.
Do you want me to rebase on 6.5-rc1?
Thanks,
Herbert Xu
maintainerQuoted 4 lines · Mario
Any other concerns on this series? It has acks from Tom and John both now.
Do you want me to rebase on 6.5-rc1?
Please be patient. New code is never added during a merge window. The earliest this can be applied is this week.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Limonciello, Mario
maintainerQuoted 8 lines · Herbert Xu
Quoted 3 lines · Mario
Any other concerns on this series? It has acks from Tom and John both now.
Do you want me to rebase on 6.5-rc1?
Please be patient. New code is never added during a merge window. The earliest this can be applied is this week.
Thanks,
Right; this is why I was offering to re-base it on 6.5-rc1 if necessary.
Herbert Xu
maintainerQuoted 2 lines · Mario
Right; this is why I was offering to re-base it on 6.5-rc1 if necessary.
If there are no major conflicts a rebase is not necessary. It will only delay your patches further.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Herbert Xu
maintainerQuoted 68 lines · Mario Limonciello
Dynamic boost control is a feature of some SoCs that allows an authenticated entity to send commands to the security processor to control certain SOC characteristics with the intention to improve performance.
This is implemented via a mechanism that a userspace application would authenticate using a nonce and key exchange over an IOCTL interface.
After authentication is complete an application can exchange signed messages with the security processor and both ends can validate the data transmitted.
This series includes a test suite that can be run on real hardware to ensure that the communication works as expected. This can also be used for an application to model the communication path.
Two sysfs files are introduced for reading the PSP bootloader version as well as TEE version which can be useful data points for debugging communication problems.
v4->v5:
* Pick up tags
* Pick up a static fix
* Fix a mistake found indbc_cliMario Limonciello (11):
crypto: ccp: Rename macro for security attributes
crypto: ccp: Add support for displaying PSP firmware versions
crypto: ccp: Add bootloader and TEE version offsets
crypto: ccp: move setting PSP master to earlier in the init
crypto: ccp: Add support for fetching a nonce for dynamic boost
control
crypto: ccp: Add support for setting user ID for dynamic boost control
crypto: ccp: Add support for getting and setting DBC parameters
crypto: ccp: Add a sample library for ioctl use
crypto: ccp: Add a sample python script for Dynamic Boost Control
crypto: ccp: Add unit tests for dynamic boost control
crypto: ccp: Add Mario toMAINTAINERSDocumentation/ABI/testing/sysfs-driver-ccp | 18 ++ MAINTAINERS | 12 + drivers/crypto/ccp/Makefile | 3 +- drivers/crypto/ccp/dbc.c | 250 +++++++++++++++++++ drivers/crypto/ccp/dbc.h | 56 +++++ drivers/crypto/ccp/psp-dev.c | 19 +- drivers/crypto/ccp/psp-dev.h | 1 + drivers/crypto/ccp/sp-dev.h | 7 + drivers/crypto/ccp/sp-pci.c | 96 +++++++- include/linux/psp-platform-access.h | 4 + include/uapi/linux/psp-dbc.h | 147 ++++++++++++ tools/crypto/ccp/.gitignore | 1 + tools/crypto/ccp/Makefile | 13 + tools/crypto/ccp/dbc.c | 72 ++++++ tools/crypto/ccp/dbc.py | 64 +++++ tools/crypto/ccp/dbc_cli.py | 134 +++++++++++ tools/crypto/ccp/test_dbc.py | 266 +++++++++++++++++++++ 17 files changed, 1146 insertions(+), 17 deletions(-) create mode 100644 drivers/crypto/ccp/dbc.c create mode 100644 drivers/crypto/ccp/dbc.h create mode 100644 include/uapi/linux/psp-dbc.h create mode 100644 tools/crypto/ccp/.gitignore create mode 100644 tools/crypto/ccp/Makefile create mode 100644 tools/crypto/ccp/dbc.c create mode 100644 tools/crypto/ccp/dbc.py create mode 100755 tools/crypto/ccp/dbc_cli.py create mode 100755 tools/crypto/ccp/test_dbc.py
Quoted 3 lines
base-commit:
b335f258e8ddafec0e8ae2201ca78d29ed8f85ebSignature · 1 line
2.34.1
All applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt