crypto: ccp - Add support for fetching a nonce for dynamic boost control
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 23 Jun 2023 13:49:55 +0000 (08:49 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jul 2023 10:14:21 +0000 (22:14 +1200)
commitc04cf9e14f109ebcc425c1efd2c01294c52a4d62
tree68c437a1d73a6de139e7024d2abc589ef59a53ae
parentb8440d55f7d4ad2b669902301c87c482faf9a8f4
crypto: ccp - Add support for fetching a nonce for dynamic boost control

Dynamic 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.

Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/dbc.c [new file with mode: 0644]
drivers/crypto/ccp/dbc.h [new file with mode: 0644]
drivers/crypto/ccp/psp-dev.c
drivers/crypto/ccp/psp-dev.h
drivers/crypto/ccp/sp-dev.h
drivers/crypto/ccp/sp-pci.c
include/linux/psp-platform-access.h
include/uapi/linux/psp-dbc.h [new file with mode: 0644]