]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:01 +0000 (04:37 -0800)
commitf8f0e0b71e1c0ece2ce69f54ccf0d797802dae3b
tree5f8d4085b8b7b8a13ca3b31078cfb5a0d0d5dba1
parentf901a39682b10baea42e4635f94859f829e78e0f
crypto: ccp - set max RSA modulus size for v3 platform devices as well

commit 11548f5a5747813ff84bed6f2ea01100053b0d8d upstream.

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: e28c190db66830c0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/ccp/ccp-dev-v3.c