diff options
| author | Marc Zyngier <[email protected]> | 2025-04-18 09:31:29 +0000 |
|---|---|---|
| committer | Oliver Upton <[email protected]> | 2025-04-18 20:51:07 +0000 |
| commit | 117c3b21d3c79af56750f18a54f2c468f30c8a45 (patch) | |
| tree | f21cf3ecf92dfb4904bbac45f0b73e8dbf9161aa /rust/helpers/dma.c | |
| parent | KVM: arm64: Use acquire/release to communicate FF-A version negotiation (diff) | |
| download | kernel-117c3b21d3c79af56750f18a54f2c468f30c8a45.tar.gz kernel-117c3b21d3c79af56750f18a54f2c468f30c8a45.zip | |
arm64: Rework checks for broken Cavium HW in the PI code
Calling into the MIDR checking framework from the PI code has recently
become much harder, due to the new fancy "multi-MIDR" support that
relies on tables being populated at boot time, but not that early that
they are available to the PI code. There are additional issues with
this framework, as the code really isn't position independend *at all*.
This leads to some ugly breakages, as reported by Ada.
It so appears that the only reason for the PI code to call into the
MIDR checking code is to cope with The Most Broken ARM64 System Ever,
aka Cavium ThunderX, which cannot deal with nG attributes that result
of the combination of KASLR and KPTI as a consequence of Erratum 27456.
Duplicate the check for the erratum in the PI code, removing the
dependency on the bulk of the MIDR checking framework. This allows
dropping that same check from kaslr_requires_kpti(), as the KPTI code
already relies on the ARM64_WORKAROUND_CAVIUM_27456 cap.
Fixes: c8c2647e69bed ("arm64: Make _midr_in_range_list() an exported function")
Reported-by: Ada Couprie Diaz <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Shameer Kolothum <[email protected]>
Cc: Oliver Upton <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'rust/helpers/dma.c')
0 files changed, 0 insertions, 0 deletions
