[PATCH v3 0/2] mailbox queue length check

From: Tanmay Shah

Date: Wed Dec 17 2025 - 19:02:52 EST


Provide mechanism to check mailbox queue length before posting new
message to the mailbox queue.

Changes in v3:
- move msg_slot_ro to mbox_client instead of mbox_chan
- allocate separate mailbox client to the "tx" mbox channel
- modify rest of the patch to use msg_slot_ro from mbox_client

Changes in v2:
- Split patchset in two patches for two different subsystems.
- Change design and introduce new field per channel to track mbox
queue length.
- use this new field in xlnx remoteproc driver to prevent sending new
messages if no slots available in the mbox tx channel queue.


Note: The patch series is developed on top of latest remoteproc for-next
branch.

Tanmay Shah (2):
mailbox: check mailbox queue is full or not
remoteproc: xlnx: do not kick if mbox queue is full

drivers/mailbox/mailbox.c | 3 +++
drivers/remoteproc/xlnx_r5_remoteproc.c | 24 +++++++++++++++++++-----
include/linux/mailbox_client.h | 2 ++
3 files changed, 24 insertions(+), 5 deletions(-)


base-commit: 6a95c70e60a03d83b31b855ce9af8cf6aeec7f90
--
2.34.1