]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Fix EFI save/restore
authorMark Brown <broonie@kernel.org>
Thu, 2 Jun 2022 12:41:32 +0000 (14:41 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 10 Jun 2022 16:29:23 +0000 (17:29 +0100)
commit4e8c8b80f8b0b0e24c59a65369167ab2f67819f2
tree6eab3852f7c7b34df2d26a3cee8184a257c47505
parent13721f6cae7368ed6b52075989031948cfc255b4
arm64/sme: Fix EFI save/restore

The EFI save/restore code is confused. When saving the check for saving
FFR is inverted due to confusion with the streaming mode check, and when
restoring we check if we need to restore FFR by checking the percpu
efi_sm_state without the required wrapper rather than based on the
combination of FA64 support and streaming mode.

Fixes: ecf8b6d19999 ("arm64/sme: Save and restore streaming mode over EFI runtime calls")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220602124132.3528951-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c