linux/drivers/crypto/ccp
Ashish Kalra d0e63feca3 crypto: ccp - allow callers to use HV-Fixed page API when SEV is disabled
commit 8168a7b72b upstream.

When SEV is disabled, the HV-Fixed page allocation call fails, which in
turn causes SFS initialization to fail.

Fix the HV-Fixed API so callers (for example, SFS) can use it even when
SEV is disabled by performing normal page allocation and freeing.

Fixes: e09701dcdd ("crypto: ccp - Add new HV-Fixed page allocation/free API")
Cc: stable@vger.kernel.org
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-03-19 16:08:38 +01:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
ccp-crypto-aes-galois.c crypto: ccp - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
ccp-crypto-aes-xts.c crypto: ccp - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
ccp-crypto-aes.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-des3.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-main.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-rsa.c crypto: ccp - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
ccp-crypto-sha.c crypto: ccp - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
ccp-crypto.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
ccp-debugfs.c crypto: ccp - Fix crash when rebind ccp device for ccp.ko 2025-07-07 15:31:43 +12:00
ccp-dev-v3.c crypto: ccp - Make use of the helper macro kthread_run() 2021-10-29 21:04:04 +08:00
ccp-dev-v5.c crypto: ccp - Make use of the helper macro kthread_run() 2021-10-29 21:04:04 +08:00
ccp-dev.c crypto: ccp - no need to initialise statics to 0 2021-11-20 15:06:38 +11:00
ccp-dev.h crypto: ccp - fix typo in comment 2022-06-10 16:40:18 +08:00
ccp-dmaengine.c crypto: ccp - Failure on re-initialization due to duplicate sysfs filename 2023-01-20 18:29:31 +08:00
ccp-ops.c crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree 2026-02-26 14:59:04 -08:00
dbc.c crypto: ccp - Use scoped guard for mutex 2024-12-14 17:21:43 +08:00
dbc.h crypto: ccp - Add support for DBC over PSP mailbox 2023-09-15 18:29:46 +08:00
hsti.c crypto: ccp - Fix incorrect payload size calculation in psp_poulate_hsti() 2025-09-13 12:11:05 +08:00
hsti.h crypto: ccp - Add support for getting security attributes on some older systems 2024-06-07 19:46:39 +08:00
Kconfig crypto: ccp - Have it depend on AMD_IOMMU 2024-02-13 12:21:15 +01:00
Makefile crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver 2025-09-17 12:17:05 +02:00
platform-access.c crypto: ccp - Avoid discarding errors in psp_send_platform_access_msg() 2024-02-24 08:41:20 +08:00
platform-access.h crypto: ccp - Add support for ringing a platform doorbell 2023-03-17 11:16:43 +08:00
psp-dev.c crypto: ccp - Add an S4 restore flow 2026-02-26 14:59:26 -08:00
psp-dev.h crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver 2025-09-17 12:17:05 +02:00
sev-dev.c crypto: ccp - allow callers to use HV-Fixed page API when SEV is disabled 2026-03-19 16:08:38 +01:00
sev-dev.h This update includes the following changes: 2025-10-04 14:59:29 -07:00
sfs.c crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver 2025-09-17 12:17:05 +02:00
sfs.h crypto: ccp - Add AMD Seamless Firmware Servicing (SFS) driver 2025-09-17 12:17:05 +02:00
sp-dev.c crypto: ccp - Add an S4 restore flow 2026-02-26 14:59:26 -08:00
sp-dev.h crypto: ccp - Add an S4 restore flow 2026-02-26 14:59:26 -08:00
sp-pci.c crypto: ccp - Add an S4 restore flow 2026-02-26 14:59:26 -08:00
sp-platform.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
tee-dev.c crypto: ccp - Send PSP_CMD_TEE_RING_DESTROY when PSP_CMD_TEE_RING_INIT fails 2026-02-26 14:59:26 -08:00
tee-dev.h crypto: ccp - Add an S4 restore flow 2026-02-26 14:59:26 -08:00