Linux Tegra architecture development
 help / color / mirror / Atom feed
From: Jiangtian Feng <jiangtianfeng@linux.alibaba.com>
To: jassisinghbrar@gmail.com
Cc: thierry.reding@kernel.org, jonathanh@nvidia.com,
	linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org,
	Jiangtian Feng <jiangtianfeng@linux.alibaba.com>
Subject: [PATCH 0/2] mailbox: tegra-hsp: Reject duplicate mailbox clients
Date: Thu,  3 Dec 2026 16:33:28 +0800	[thread overview]
Message-ID: <20261203083330.3300442-1-jiangtianfeng@linux.alibaba.com> (raw)

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

             reply	other threads:[~2026-12-03  8:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  8:33 Jiangtian Feng [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203083330.3300442-1-jiangtianfeng@linux.alibaba.com \
    --to=jiangtianfeng@linux.alibaba.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=thierry.reding@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox