Re: [PATCH v2 4/5] crypto: ccp: Add support for getting security attributes on some older systems

From: Tom Lendacky
Date: Wed May 29 2024 - 11:21:43 EST


On 5/28/24 16:07, Mario Limonciello wrote:
Older systems will not populate the security attributes in the
capabilities register. The PSP on these systems, however, does have a
command to get the security attributes. Use this command during ccp
startup to populate the attributes if they're missing.

Closes: https://github.com/fwupd/fwupd/issues/5284
Closes: https://github.com/fwupd/fwupd/issues/5675
Closes: https://github.com/fwupd/fwupd/issues/6253
Closes: https://github.com/fwupd/fwupd/issues/7280
Closes: https://github.com/fwupd/fwupd/issues/6323
Closes: https://github.com/fwupd/fwupd/discussions/5433
Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxx>

Acked-by: Tom Lendacky <thomas.lendacky@xxxxxxx>

---
v1->v2:
* Move code to patch 5
---
drivers/crypto/ccp/hsti.c | 55 +++++++++++++++++++++++++++++
drivers/crypto/ccp/hsti.h | 2 ++
drivers/crypto/ccp/psp-dev.c | 5 +++
drivers/crypto/ccp/psp-dev.h | 2 --
drivers/crypto/ccp/sp-dev.h | 1 +
drivers/crypto/ccp/sp-pci.c | 5 ++-
include/linux/psp-platform-access.h | 1 +
7 files changed, 68 insertions(+), 3 deletions(-)