From: Kartik Rajput <kkartik@nvidia.com>
To: "thierry.reding@gmail.com" <thierry.reding@gmail.com>
Cc: "jassisinghbrar@gmail.com" <jassisinghbrar@gmail.com>,
Jon Hunter <jonathanh@nvidia.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH v2] mailbox: tegra-hsp: Clear mailbox before using message
Date: Mon, 2 Dec 2024 10:09:13 +0000 [thread overview]
Message-ID: <dfe3fa28a907dedd263dbecb7b7ec96e7c3e27fa.camel@nvidia.com> (raw)
In-Reply-To: <hofrxrz5qvxohlvxme4brhng6rrs7s6wwoqwnu3smjbbonhwh4@xajjliw474v6>
On Thu, 2024-11-28 at 11:22 +0100, Thierry Reding wrote:
> On Thu, Nov 28, 2024 at 02:29:30PM +0530, Kartik Rajput wrote:
> > From: Pekka Pessi <ppessi@nvidia.com>
> >
> > Some clients depend on mailbox being empty before processing the
> > message. On RT kernel, the thread processing the message may be on
> > different CPU or running with higher priority than the interrupt
> > handler thread and they may act on the message before mailbox is
> > emptied.
> >
> > Fixes: 8f585d14030d ("mailbox: tegra-hsp: Add tegra_hsp_sm_ops")
> > Fixes: 74c20dd0f892 ("mailbox: tegra-hsp: Add 128-bit shared
> > mailbox support")
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Pekka Pessi <ppessi@nvidia.com>
> > Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
> > ---
> > v1 -> v2:
> > * Added "Fixes:" tag in the commit message.
> > * Made similar change for 128-bit shared mailboxes.
> > ---
> > drivers/mailbox/tegra-hsp.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
>
> Do we know what exactly "some clients" means? I know that TCU uses
> this
> shared mailbox and sometimes it does go into a weird state where it
> can
> loose characters, so I wonder if that's one case that would be fixed
> by
> this.
>
> Not strictly a requirement, but it would be good if we can give a
> good
> description of a case where this helps.
>
> Thierry
Hi Thierry,
This patch fixes an issue with the Tegra RCE driver (which is available
as an external module), where it may process an IVC message before the
mailbox data register is cleared, resulting in a loss of IVC
notification.
I have posted v3 of this patch with an updated commit description.
Thanks & Regards,
Kartik
prev parent reply other threads:[~2024-12-02 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 8:59 [PATCH v2] mailbox: tegra-hsp: Clear mailbox before using message Kartik Rajput
2024-11-28 10:22 ` Thierry Reding
2024-12-02 10:09 ` Kartik Rajput [this message]
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=dfe3fa28a907dedd263dbecb7b7ec96e7c3e27fa.camel@nvidia.com \
--to=kkartik@nvidia.com \
--cc=jassisinghbrar@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@gmail.com \
/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