* [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
@ 2021-08-20 14:56 John Allen
2021-08-27 8:35 ` Herbert Xu
0 siblings, 1 reply; 6+ messages in thread
From: John Allen @ 2021-08-20 14:56 UTC (permalink / raw)
To: linux-crypto, linux-kernel, herbert; +Cc: thomas.lendacky, davem, john.allen
Add a new CCP/PSP PCI device ID and corresponding entry in the dev_vdata
struct.
Signed-off-by: John Allen <john.allen@amd.com>
---
drivers/crypto/ccp/sp-pci.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c
index 6fb6ba35f89d..280161292d13 100644
--- a/drivers/crypto/ccp/sp-pci.c
+++ b/drivers/crypto/ccp/sp-pci.c
@@ -349,6 +349,12 @@ static const struct sp_dev_vdata dev_vdata[] = {
#endif
#ifdef CONFIG_CRYPTO_DEV_SP_PSP
.psp_vdata = &pspv3,
+#endif
+ },
+ { /* 5 */
+ .bar = 2,
+#ifdef CONFIG_CRYPTO_DEV_SP_PSP
+ .psp_vdata = &pspv2,
#endif
},
};
@@ -359,6 +365,7 @@ static const struct pci_device_id sp_pci_table[] = {
{ PCI_VDEVICE(AMD, 0x1486), (kernel_ulong_t)&dev_vdata[3] },
{ PCI_VDEVICE(AMD, 0x15DF), (kernel_ulong_t)&dev_vdata[4] },
{ PCI_VDEVICE(AMD, 0x1649), (kernel_ulong_t)&dev_vdata[4] },
+ { PCI_VDEVICE(AMD, 0x14CA), (kernel_ulong_t)&dev_vdata[5] },
/* Last entry must be zero */
{ 0, }
};
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
2021-08-20 14:56 [PATCH] crypto: ccp - Add support for new CCP/PSP device ID John Allen
@ 2021-08-27 8:35 ` Herbert Xu
0 siblings, 0 replies; 6+ messages in thread
From: Herbert Xu @ 2021-08-27 8:35 UTC (permalink / raw)
To: John Allen; +Cc: linux-crypto, linux-kernel, thomas.lendacky, davem
On Fri, Aug 20, 2021 at 02:56:21PM +0000, John Allen wrote:
> Add a new CCP/PSP PCI device ID and corresponding entry in the dev_vdata
> struct.
>
> Signed-off-by: John Allen <john.allen@amd.com>
> ---
> drivers/crypto/ccp/sp-pci.c | 7 +++++++
> 1 file changed, 7 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
2022-07-19 16:13 Mario Limonciello
2022-07-20 12:58 ` Tom Lendacky
@ 2022-07-29 10:34 ` Herbert Xu
1 sibling, 0 replies; 6+ messages in thread
From: Herbert Xu @ 2022-07-29 10:34 UTC (permalink / raw)
To: Mario Limonciello
Cc: Tom Lendacky, John Allen, Rijo-john Thomas, David S. Miller,
linux-crypto, linux-kernel
On Tue, Jul 19, 2022 at 11:13:28AM -0500, Mario Limonciello wrote:
> Add a new CCP/PSP PCI device ID. This uses same register offsets
> as the previously supported structure.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> drivers/crypto/ccp/sp-pci.c | 7 +++++++
> 1 file changed, 7 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
2022-07-20 12:58 ` Tom Lendacky
@ 2022-07-25 7:40 ` Rijo Thomas
0 siblings, 0 replies; 6+ messages in thread
From: Rijo Thomas @ 2022-07-25 7:40 UTC (permalink / raw)
To: Tom Lendacky, Mario Limonciello, John Allen
Cc: Herbert Xu, David S. Miller, linux-crypto, linux-kernel
On 7/20/2022 6:28 PM, Tom Lendacky wrote:
> On 7/19/22 11:13, Mario Limonciello wrote:
>> Add a new CCP/PSP PCI device ID. This uses same register offsets
>> as the previously supported structure.
>>
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>
> Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
>
Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
>> ---
>> drivers/crypto/ccp/sp-pci.c | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c
>> index b5970ae54d0e..792d6da7f0c0 100644
>> --- a/drivers/crypto/ccp/sp-pci.c
>> +++ b/drivers/crypto/ccp/sp-pci.c
>> @@ -427,6 +427,12 @@ static const struct sp_dev_vdata dev_vdata[] = {
>> .bar = 2,
>> #ifdef CONFIG_CRYPTO_DEV_SP_PSP
>> .psp_vdata = &pspv2,
>> +#endif
>> + },
>> + { /* 6 */
>> + .bar = 2,
>> +#ifdef CONFIG_CRYPTO_DEV_SP_PSP
>> + .psp_vdata = &pspv3,
>> #endif
>> },
>> };
>> @@ -438,6 +444,7 @@ static const struct pci_device_id sp_pci_table[] = {
>> { PCI_VDEVICE(AMD, 0x15DF), (kernel_ulong_t)&dev_vdata[4] },
>> { PCI_VDEVICE(AMD, 0x1649), (kernel_ulong_t)&dev_vdata[4] },
>> { PCI_VDEVICE(AMD, 0x14CA), (kernel_ulong_t)&dev_vdata[5] },
>> + { PCI_VDEVICE(AMD, 0x15C7), (kernel_ulong_t)&dev_vdata[6] },
>> /* Last entry must be zero */
>> { 0, }
>> };
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
2022-07-19 16:13 Mario Limonciello
@ 2022-07-20 12:58 ` Tom Lendacky
2022-07-25 7:40 ` Rijo Thomas
2022-07-29 10:34 ` Herbert Xu
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lendacky @ 2022-07-20 12:58 UTC (permalink / raw)
To: Mario Limonciello, John Allen
Cc: Rijo-john Thomas, Herbert Xu, David S. Miller, linux-crypto,
linux-kernel
On 7/19/22 11:13, Mario Limonciello wrote:
> Add a new CCP/PSP PCI device ID. This uses same register offsets
> as the previously supported structure.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
> ---
> drivers/crypto/ccp/sp-pci.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c
> index b5970ae54d0e..792d6da7f0c0 100644
> --- a/drivers/crypto/ccp/sp-pci.c
> +++ b/drivers/crypto/ccp/sp-pci.c
> @@ -427,6 +427,12 @@ static const struct sp_dev_vdata dev_vdata[] = {
> .bar = 2,
> #ifdef CONFIG_CRYPTO_DEV_SP_PSP
> .psp_vdata = &pspv2,
> +#endif
> + },
> + { /* 6 */
> + .bar = 2,
> +#ifdef CONFIG_CRYPTO_DEV_SP_PSP
> + .psp_vdata = &pspv3,
> #endif
> },
> };
> @@ -438,6 +444,7 @@ static const struct pci_device_id sp_pci_table[] = {
> { PCI_VDEVICE(AMD, 0x15DF), (kernel_ulong_t)&dev_vdata[4] },
> { PCI_VDEVICE(AMD, 0x1649), (kernel_ulong_t)&dev_vdata[4] },
> { PCI_VDEVICE(AMD, 0x14CA), (kernel_ulong_t)&dev_vdata[5] },
> + { PCI_VDEVICE(AMD, 0x15C7), (kernel_ulong_t)&dev_vdata[6] },
> /* Last entry must be zero */
> { 0, }
> };
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] crypto: ccp - Add support for new CCP/PSP device ID
@ 2022-07-19 16:13 Mario Limonciello
2022-07-20 12:58 ` Tom Lendacky
2022-07-29 10:34 ` Herbert Xu
0 siblings, 2 replies; 6+ messages in thread
From: Mario Limonciello @ 2022-07-19 16:13 UTC (permalink / raw)
To: mario.limonciello, Tom Lendacky, John Allen
Cc: Rijo-john Thomas, Herbert Xu, David S. Miller, linux-crypto,
linux-kernel
Add a new CCP/PSP PCI device ID. This uses same register offsets
as the previously supported structure.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
drivers/crypto/ccp/sp-pci.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/sp-pci.c
index b5970ae54d0e..792d6da7f0c0 100644
--- a/drivers/crypto/ccp/sp-pci.c
+++ b/drivers/crypto/ccp/sp-pci.c
@@ -427,6 +427,12 @@ static const struct sp_dev_vdata dev_vdata[] = {
.bar = 2,
#ifdef CONFIG_CRYPTO_DEV_SP_PSP
.psp_vdata = &pspv2,
+#endif
+ },
+ { /* 6 */
+ .bar = 2,
+#ifdef CONFIG_CRYPTO_DEV_SP_PSP
+ .psp_vdata = &pspv3,
#endif
},
};
@@ -438,6 +444,7 @@ static const struct pci_device_id sp_pci_table[] = {
{ PCI_VDEVICE(AMD, 0x15DF), (kernel_ulong_t)&dev_vdata[4] },
{ PCI_VDEVICE(AMD, 0x1649), (kernel_ulong_t)&dev_vdata[4] },
{ PCI_VDEVICE(AMD, 0x14CA), (kernel_ulong_t)&dev_vdata[5] },
+ { PCI_VDEVICE(AMD, 0x15C7), (kernel_ulong_t)&dev_vdata[6] },
/* Last entry must be zero */
{ 0, }
};
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-07-29 10:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 14:56 [PATCH] crypto: ccp - Add support for new CCP/PSP device ID John Allen
2021-08-27 8:35 ` Herbert Xu
2022-07-19 16:13 Mario Limonciello
2022-07-20 12:58 ` Tom Lendacky
2022-07-25 7:40 ` Rijo Thomas
2022-07-29 10:34 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.