Skip to content

Commit eaf69b0

Browse files
committed
crypto: ccp - Add support for TEE for PCI ID 0x14CA
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2130715 Upstream Status: merged into the linux.git commit 10da230 Author: Mario Limonciello <mario.limonciello@amd.com> Date: Wed Sep 28 13:45:05 2022 -0500 crypto: ccp - Add support for TEE for PCI ID 0x14CA SoCs containing 0x14CA are present both in datacenter parts that support SEV as well as client parts that support TEE. Cc: stable@vger.kernel.org # 5.15+ Tested-by: Rijo-john Thomas <Rijo-john.Thomas@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 551a7ed commit eaf69b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

drivers/crypto/ccp/sp-pci.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,15 @@ static const struct psp_vdata pspv3 = {
381381
.inten_reg = 0x10690,
382382
.intsts_reg = 0x10694,
383383
};
384+
385+
static const struct psp_vdata pspv4 = {
386+
.sev = &sevv2,
387+
.tee = &teev1,
388+
.feature_reg = 0x109fc,
389+
.inten_reg = 0x10690,
390+
.intsts_reg = 0x10694,
391+
};
392+
384393
#endif
385394

386395
static const struct sp_dev_vdata dev_vdata[] = {
@@ -426,7 +435,7 @@ static const struct sp_dev_vdata dev_vdata[] = {
426435
{ /* 5 */
427436
.bar = 2,
428437
#ifdef CONFIG_CRYPTO_DEV_SP_PSP
429-
.psp_vdata = &pspv2,
438+
.psp_vdata = &pspv4,
430439
#endif
431440
},
432441
{ /* 6 */

0 commit comments

Comments
 (0)