Page MenuHomeFreeBSD

scmi: Add an SCMI VirtIO transport driver
ClosedPublic

Authored by cristian.marussi_arm.com on Dec 13 2023, 6:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 6:20 PM
Unknown Object (File)
Wed, May 8, 6:05 PM
Unknown Object (File)
Wed, May 8, 6:05 PM
Unknown Object (File)
Wed, May 8, 1:23 PM
Unknown Object (File)
Tue, May 7, 6:28 PM
Unknown Object (File)
Thu, May 2, 1:44 PM
Unknown Object (File)
Thu, May 2, 1:43 PM
Unknown Object (File)
Fri, Apr 26, 2:41 AM

Details

Summary

Add an SCMI transport driver based on the virtio-scmi backend.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Just as a general comment - some of the device_printf() look potentially spammy and may be better as either guarded by bootverbose or debug macros.

sys/dev/firmware/arm/scmi_virtio.c
94

Nit: M_WAITOK means this cannot fail. May be slightly clearer to use mallocarray() instead.

This revision is now accepted and ready to land.Jan 31 2024, 4:13 AM

Using mallocarray and dropping empty interface method

Using mallocarray and avoding to check the retval since called as M_WAITOK.
Dropping scmi_virtio_detach() driver method since it just calls into the parent
scmi_attach()

This revision now requires review to proceed.Mar 1 2024, 7:17 PM
This revision is now accepted and ready to land.Mar 5 2024, 2:37 PM
This revision was automatically updated to reflect the committed changes.