mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/3] mailbox queue length check
@ 2026-02-03 22:58 Tanmay Shah
  2026-02-03 22:58 ` [PATCH v4 1/3] mailbox: check mailbox queue is full or not Tanmay Shah
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tanmay Shah @ 2026-02-03 22:58 UTC (permalink / raw)
  To: jassisinghbrar, andersson, mathieu.poirier
  Cc: linux-kernel, linux-remoteproc, Tanmay Shah

Provide mechanism to check mailbox queue length before posting new
message to the mailbox queue. Use this mechanims in xlnx r5 remoteproc
driver.

Changes in v4:
  - %s/msg_slot_ro/tx_slots_avail_ro/
  - do not use msg_count to calculate tx_slots_avail_ro instead modify
    it directly
  - separate xlnx remoteproc driver patch in to two patches


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.

Tanmay Shah (3):
  mailbox: check mailbox queue is full or not
  remoteproc: xlnx: assign mbox client per mbox channel
  remoteproc: xlnx: do not send new mbox notification

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


base-commit: fa3e2d1dc10864887674c484372a9ccc6a01eb18
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-10 17:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-03 22:58 [PATCH v4 0/3] mailbox queue length check Tanmay Shah
2026-02-03 22:58 ` [PATCH v4 1/3] mailbox: check mailbox queue is full or not Tanmay Shah
2026-02-03 22:58 ` [PATCH v4 2/3] remoteproc: xlnx: assign mbox client per mbox channel Tanmay Shah
2026-02-09 23:27   ` Jassi Brar
2026-02-10 17:12     ` Shah, Tanmay
2026-02-03 22:58 ` [PATCH v4 3/3] remoteproc: xlnx: do not send new mbox notification Tanmay Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®