diff options
author | 2020-10-20 16:01:57 +0100 | |
---|---|---|
committer | 2020-10-20 16:01:57 +0100 | |
commit | ea8f8c99a28199f6e067581b8626d192b07750f2 (patch) | |
tree | 4ea2c390058e54fb3b182d9518eda196e1e7db5e /drivers/usb/cdns3/cdns3-imx.c | |
parent | arm64: link with -z norelro regardless of CONFIG_RELOCATABLE (diff) | |
download | linux-dev-ea8f8c99a28199f6e067581b8626d192b07750f2.tar.xz linux-dev-ea8f8c99a28199f6e067581b8626d192b07750f2.zip |
arm64: spectre-v2: Favour CPU-specific mitigation at EL2
Spectre-v2 can be mitigated on Falkor CPUs either by calling into
firmware or by issuing a magic, CPU-specific sequence of branches.
Although the latter is faster, the size of the code sequence means that
it cannot be used in the EL2 vectors, and so there is a need for both
mitigations to co-exist in order to achieve optimal performance.
Change the mitigation selection logic for Spectre-v2 so that the
CPU-specific mitigation is used only when the firmware mitigation is
also available, rather than when a firmware mitigation is unavailable.
Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions