Page MenuHomeFreeBSD

psci: Support the arm64 Errata ABI
ClosedPublic

Authored by andrew on Dec 12 2024, 4:04 PM.
Tags
None
Referenced Files
F109322345: D48055.diff
Mon, Feb 3, 1:57 PM
Unknown Object (File)
Fri, Jan 24, 2:19 PM
Unknown Object (File)
Dec 20 2024, 2:01 AM
Unknown Object (File)
Dec 19 2024, 9:06 AM
Unknown Object (File)
Dec 18 2024, 6:25 PM
Unknown Object (File)
Dec 17 2024, 9:20 PM
Subscribers

Details

Reviewers
None
Group Reviewers
arm64
Commits
rG0c333f8c6e6a: psci: Support the arm64 Errata ABI
Summary

Add support for the Arm Errata Management Firmware Interface (Errata
ABI) [1]. This provides an interface for the kernel to query the status
of an erratum workaround.

Some errata may be mitigated depending on the other hardware in a SoC,
e.g. Cortex-A78 erratum 2712571 is not affected in systems that use
an Arm interconnect. As there may not be a way for the kernel to know
if this is the case then it would have to implement the workaround
even when not needed.

There are other cases where the needed workaround is implemented in
firmware and if not implemented then the kernel may decide to not use
a feature. In this case we can query the firmware before deciding if
we should use a feature or now.

There is a known issue with some firmware implementations of the Errata
ABI that incorrectly returns a status indicating the erratum is fully
mitigated by the firmware, however there is a kernel component needed,
e.g. Neoverse-N1 erratum 1542419. To handle this case we tell the
caller there is some workaround implemented in the firmware and it can
decide how to handle it. If this is fixed in a way we can detect we can
add a new erratum status value to indicate this.

[1] https://developer.arm.com/documentation/den0100/latest/

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61118
Build 58002: arc lint + arc unit

Event Timeline

Fix a comment referencing the SMCCC TRNG interface

This revision was not accepted when it landed; it landed in state Needs Review.Fri, Jan 24, 12:12 PM
This revision was automatically updated to reflect the committed changes.