On Fri, 04 Dec 2026 17:46:28 +0000, netd…@kernel.org wrote:
> - [Medium] On SMD, a packet held during probe can now be lost, and
> nothing logs it.
Agreed. Before this patch SMD left such a packet in the FIFO, and
qcom_smd_announce_create() delivered it right after probe, so SMD
doesn't need the hold and only gains this failure case. In v2,
qcom_smd_qrtr_post_held() checks the return value, counts posted and
dropped packets, and warns when a held packet is dropped. The commit
message now says that SMD holds the packet instead of leaving it in
the FIFO.
> - [Medium] While drvdata is NULL, the remote can fill the held queue
> without limit.
Agreed. In my tests at most 3 packets were held (the modem's HELLO and
two NEW_SERVER). v2 caps the queue at 32 packets. Once it is full,
the callback returns -EAGAIN, so SMD leaves the rest in the FIFO and
GLINK drops them, both as before the patch. The cap also bounds the
time spent posting under the lock. I kept the posting under the lock
so the held packets stay ahead of later ones; the callback already
runs in hard IRQ context on both SMD and GLINK.
pw-bot: cr