]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - set max RSA modulus size for v3 platform devices as well
authorArd Biesheuvel <ardb@kernel.org>
Wed, 27 Nov 2019 12:01:36 +0000 (13:01 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:55 +0000 (16:36 +0800)
commit1f50b193f03e6074ba6e1e984750867594f043df
tree10a7b4f1eb3aa13e1c5758c27c13005fa11037f3
parent409d1e96a4f063623883de2710754b5bc87dab72
crypto: ccp - set max RSA modulus size for v3 platform devices as well

AMD Seattle incorporates a non-PCI version of the v3 CCP crypto
accelerator, and this version was left behind when the maximum
RSA modulus size was parameterized in order to support v5 hardware
which supports larger moduli than v3 hardware does. Due to this
oversight, RSA acceleration no longer works at all on these systems.

Fix this by setting the .rsamax property to the appropriate value
for v3 platform hardware.

Fixes: d2412b25b07828fe ("csrypto: ccp - Expand RSA support for a v5 ccp")
Cc: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v3.c