]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver
authorAshish Kalra <ashish.kalra@amd.com>
Tue, 16 Sep 2025 21:29:49 +0000 (21:29 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 17 Sep 2025 10:17:05 +0000 (12:17 +0200)
commit648dbccc03a000cd64c2a9d86012d98053545e64
tree6970d44645d24819398f51fd27ae1f62bd17e8a3
parente09701dcdd9ca06be249091eeb786d57e67b613e
crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver

AMD Seamless Firmware Servicing (SFS) is a secure method to allow
non-persistent updates to running firmware and settings without
requiring BIOS reflash and/or system reset.

SFS does not address anything that runs on the x86 processors and
it can be used to update ASP firmware, modules, register settings
and update firmware for other microprocessors like TMPM, etc.

SFS driver support adds ioctl support to communicate the SFS
commands to the ASP/PSP by using the TEE mailbox interface.

The Seamless Firmware Servicing (SFS) driver is added as a
PSP sub-device.

For detailed information, please look at the SFS specifications:
https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/58604.pdf

Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Link: https://lore.kernel.org/cover.1758057691.git.ashish.kalra@amd.com
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/psp-dev.c
drivers/crypto/ccp/psp-dev.h
drivers/crypto/ccp/sfs.c [new file with mode: 0644]
drivers/crypto/ccp/sfs.h [new file with mode: 0644]
include/linux/psp-platform-access.h
include/uapi/linux/psp-sfs.h [new file with mode: 0644]