Page MenuHomeFreeBSD

scmi: Make transports report the effective length of the received messages
ClosedPublic

Authored by cristian.marussi_arm.com on Nov 4 2024, 8:51 AM.
Tags
None
Referenced Files
F135241701: D47420.id146812.diff
Fri, Nov 7, 9:46 PM
Unknown Object (File)
Thu, Nov 6, 3:45 AM
Unknown Object (File)
Wed, Nov 5, 12:42 AM
Unknown Object (File)
Tue, Nov 4, 7:19 PM
Unknown Object (File)
Sat, Nov 1, 11:30 PM
Unknown Object (File)
Mon, Oct 27, 7:45 PM
Unknown Object (File)
Sep 28 2025, 3:28 PM
Unknown Object (File)
Sep 27 2025, 9:33 PM
Subscribers

Details

Summary

Once a message is received that fits into the RX buffer, update the
msg.rx_len field with the effective length of the message received.

Tested on: Arm Morello Board
Sponsored by: Arm Ltd
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

Diff Detail

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

Event Timeline

sys/dev/firmware/arm/scmi_shmem.c
307

This looks wrong, ret is a boolean type so shouldn't be compared with an integer.

sys/dev/firmware/arm/scmi_shmem.c
307

Yes indeed, I will fix.

Fix mishandled retvalue on scmi_shmem_msg_poll and related funcs

This revision is now accepted and ready to land.Nov 28 2024, 11:48 AM