Page MenuHomeFreeBSD

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

Authored by cristian.marussi_arm.com on Nov 4 2024, 8:51 AM.
Tags
None
Referenced Files
F109254450: D47420.id146812.diff
Sun, Feb 2, 4:18 PM
Unknown Object (File)
Jan 1 2025, 8:55 AM
Unknown Object (File)
Dec 25 2024, 7:12 AM
Unknown Object (File)
Dec 10 2024, 7:09 PM
Unknown Object (File)
Dec 8 2024, 11:50 PM
Unknown Object (File)
Dec 8 2024, 8:41 PM
Unknown Object (File)
Dec 3 2024, 12:52 AM
Unknown Object (File)
Nov 29 2024, 8:29 AM
Subscribers

Details

Reviewers
andrew
br
Group Reviewers
arm64
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