Skip to content

rpmsg: smd: Redeliver messages after probe

Bjorn Andersson linux-arm-msm linux-remoteproc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rpmsg: smd: Fix container_of macrosdrivers/rpmsg/qcom_smd.c+2 -20 replies
2/3rpmsg: Only invoke announce_create for rpdev with endpointsdrivers/rpmsg/rpmsg_core.c+1 -13 replies
3/3rpmsg: smd: Use announce_create to process any receive workdrivers/rpmsg/qcom_smd.c+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] rpmsg: smd: Redeliver messages after probe

A race condition exists in SMD where incoming messages might be processed before we've finished executing the rpmsg device's probe function. The driver's callback function will in this case be unable to handle the incoming message and might return an error.

Using the announce_create ops we can invoke the handler for incoming messages once again after probe returns, solving this issue.

With SMD and QRTR this shows a high failure rate, but there are (at least theoretical) similar issues in glink and virtio-rpmsg, so this needs to be further investigated.

Bjorn Andersson (3):
rpmsg: smd: Fix container_of macros
rpmsg: Only invoke announce_create for rpdev with endpoints
rpmsg: smd: Use announce_create to process any receive work

 drivers/rpmsg/qcom_smd.c   | 22 ++++++++++++++++++++--
 drivers/rpmsg/rpmsg_core.c |  2 +-
 2 files changed, 21 insertions(+), 3 deletions(-)
Signature · 1 line
2.16.2