Page MenuHomeFreeBSD

dev/psci: Check for functions before calling
ClosedPublic

Authored by andrew on Jun 23 2025, 12:46 PM.
Tags
None
Referenced Files
F125554851: D50978.diff
Sat, Aug 9, 4:13 AM
Unknown Object (File)
Mon, Jul 28, 10:51 PM
Unknown Object (File)
Mon, Jul 28, 5:54 PM
Unknown Object (File)
Sat, Jul 26, 12:45 PM
Unknown Object (File)
Sat, Jul 26, 12:45 PM
Unknown Object (File)
Sat, Jul 26, 12:45 PM
Unknown Object (File)
Sat, Jul 12, 7:46 PM
Unknown Object (File)
Jul 8 2025, 7:18 PM
Subscribers

Details

Summary

In the SMCCC TRNG and Errata ABI drivers check if the version
functions are implemented before calling them. Without this the firmware
may complain about an unimplemented function being called.

Reported by: bz
Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

mikael added inline comments.
sys/dev/psci/smccc_errata.c
73

typo -> check

The warnings are gone but does that also mean that if ATF doesn't support the bits any errata are not dealt with silently now?

If the firmware doesn't implement the Errata ABI then we may enable a workaround in the kernel even if we don't need to, e.g. when the firmware already has a workaround, or the combination of HW means it's not needed

Accepted assuming you'll fix the typo in the comment before commit.

This revision is now accepted and ready to land.Jun 24 2025, 8:32 PM
This revision was automatically updated to reflect the committed changes.