Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH 0/2] mailbox: tegra-hsp: Reject duplicate mailbox clients
@ 2026-12-03  8:33 Jiangtian Feng
  2026-12-03  8:33 ` [PATCH 1/2] mailbox: tegra-hsp: Reject duplicate doorbell clients Jiangtian Feng
  2026-12-03  8:33 ` [PATCH 2/2] mailbox: tegra-hsp: Reject duplicate shared mailbox clients Jiangtian Feng
  0 siblings, 2 replies; 4+ messages in thread
From: Jiangtian Feng @ 2026-12-03  8:33 UTC (permalink / raw)
  To: jassisinghbrar
  Cc: thierry.reding, jonathanh, linux-kernel, linux-tegra,
	Jiangtian Feng

These two small patches prevent a repeated mailbox request from changing
the state of an active client.

The doorbell patch rejects a duplicate request while chan->cl is live.
Using the client pointer rather than the channel pointer alone preserves
retries after a failed startup while keeping exclusive ownership during
normal use.

The shared mailbox patch rejects an occupied channel before changing
mb->ops or mb->producer, preserving the original client's direction,
width and interrupt mask.

The failed-startup channel-slot lifetime issue is pre-existing and is
intentionally outside this small series.

Validation:
- Independent static review found no High/Medium issues.
- W=1 tegra-hsp.o builds after each patch.
- Complete ARM64 Image build; size 44,833,280 bytes, SHA-256
  f972a099b2da6e801c41d25558c3803af604bdbb1113adfdeda931b6e94e0d28.
- Fixes tags were verified against full repository history.
- Final patches have no checkpatch warnings; only the submitter's DCO
  sign-off is pending.

NOT_RUN:
- Repeated client, BPMP, startup failure/rebind and IRQ runtime testing.
- NOIRQ suspend/resume and hardware fault injection.

Jiangtian Feng (2):
  mailbox: tegra-hsp: Reject duplicate doorbell clients
  mailbox: tegra-hsp: Reject duplicate shared mailbox clients

 drivers/mailbox/tegra-hsp.c | 9 +++++++++
 1 file changed, 9 insertions(+)

-- 
2.47.3

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

end of thread, other threads:[~2026-12-03  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  8:33 [PATCH 0/2] mailbox: tegra-hsp: Reject duplicate mailbox clients Jiangtian Feng
2026-12-03  8:33 ` [PATCH 1/2] mailbox: tegra-hsp: Reject duplicate doorbell clients Jiangtian Feng
2026-12-03  9:29   ` [PATCH] mailbox: tegra-hsp: Reuse doorbell slots after failed startup Jiangtian Feng
2026-12-03  8:33 ` [PATCH 2/2] mailbox: tegra-hsp: Reject duplicate shared mailbox clients Jiangtian Feng

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