arm64 Spectre and Meltdown mitigations based on v4.14
-----BEGIN PGP SIGNATURE-----

iQF8BAABCgBmBQJafcqZXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5Q0QyQTBEQTZBRDhGNzMzMDE3NUUyQkJD
MjM3MjA3RTk1NzRGQTdEAAoJEMI3IH6VdPp9KbUH/jbdF+yVkDiDti8GWu5doXgd
SqMsd3jx5eo7Rob1y0IdHC9DugB+7PLoSmDKVhDp/aJ+Z3jrTJzeayrY7KS4N0k+
PSiHtS7IhY2sap7gzwSnYut0m/wNju/8nIKuSx1NUKIHShBdj5uRAvGYkaRsFURJ
eP5Cs3013dqfUtVNuflqIpGhjtx3IpWaWrbZL4/AJzw/FOC1vgv4QpJqIai4lEAe
Ovm58w1++XBSBW9Ib8WaecLBLPTaU3lcDDXgc6p2e+rvc9ihFzwk/vrok7qAK08M
0T8e3KIKQx0NRhEyRFWZM96bzII/EPD0hr+961oWKBWLBAzY/V+2ULj3jesowc0=
=GopU
-----END PGP SIGNATURE-----
[Variant 2/Spectre-v2] arm64: Kill PSCI_GET_VERSION as a variant-2 workaround

Commit 3a0a397ff5ff upstream.

Now that we've standardised on SMCCC v1.1 to perform the branch
prediction invalidation, let's drop the previous band-aid.
If vendors haven't updated their firmware to do SMCCC 1.1, they
haven't updated PSCI either, so we don't loose anything.

Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
3 files changed