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
Unknown Object (File)
Sun, Sep 28, 3:28 PM
Unknown Object (File)
Sat, Sep 27, 9:33 PM
Unknown Object (File)
Fri, Sep 26, 9:47 AM
Unknown Object (File)
Thu, Sep 25, 11:03 PM
Unknown Object (File)
Thu, Sep 25, 8:02 PM
Unknown Object (File)
Thu, Sep 25, 7:48 PM
Unknown Object (File)
Wed, Sep 24, 7:57 PM
Unknown Object (File)
Wed, Sep 17, 12:03 PM
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