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
F157131468: D47420.id145965.diff
Mon, May 18, 4:01 PM
F157086788: D47420.id146812.diff
Mon, May 18, 9:02 AM
F157062631: D47420.id.diff
Mon, May 18, 5:29 AM
Unknown Object (File)
Fri, May 15, 1:31 AM
Unknown Object (File)
Mon, May 11, 7:44 PM
Unknown Object (File)
Mon, May 11, 7:44 PM
Unknown Object (File)
Mon, May 11, 7:44 PM
Unknown Object (File)
Mon, May 11, 7:35 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