Page MenuHomeFreeBSD

dev/psci: Check for functions before calling
ClosedPublic

Authored by andrew on Jun 23 2025, 12:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 8, 7:26 AM
Unknown Object (File)
Wed, Sep 3, 5:25 AM
Unknown Object (File)
Sat, Aug 30, 7:34 PM
Unknown Object (File)
Tue, Aug 19, 1:50 PM
Unknown Object (File)
Tue, Aug 19, 8:17 AM
Unknown Object (File)
Thu, Aug 14, 12:33 AM
Unknown Object (File)
Aug 9 2025, 4:13 AM
Unknown Object (File)
Jul 28 2025, 10:51 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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.