From: Waiman Long <longman@redhat.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Clark Williams <clrkwllms@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rt-devel@lists.linux.dev, jberring@redhat.com
Subject: Re: [PATCH] firmware: tegra: bpmp: Make atomic_tx_lock a raw_spinlock
Date: Tue, 12 May 2026 19:42:03 -0400 [thread overview]
Message-ID: <1a8ce61a-8f4f-443a-a454-0301b42af7de@redhat.com> (raw)
In-Reply-To: <20260506064105.7R4Q7XJP@linutronix.de>
On 5/6/26 2:41 AM, Sebastian Andrzej Siewior wrote:
> On 2026-05-05 15:47:23 [-0400], Waiman Long wrote:
>> __might_resched+0x254/0x330
>> rt_spin_lock+0x70/0x140
>> tegra_bpmp_transfer_atomic+0x118/0x3c0
>> tegra_bpmp_probe+0x564/0x6f0
> So this is tegra_bpmp_ping().
>
>> I know that interrupt is disabled becasue of the following code.
>>
>> 346 int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp, 347 struct
>> tegra_bpmp_message *msg) 348 { 349 struct tegra_bpmp_channel *channel; 350
>> int err; 351 352 if (WARN_ON(!irqs_disabled())) 353 return -EPERM;
> Well, yes. It disables interrupts just probably to document the time it
> took for the transfer so it can write it then via dev_dbg().
> It is hard to tell what the worst-case delay here is but it is probably
> not important if this is just boot time/ driver probe. Maybe.
> What I am bit more concerned if the actual path of this
> tegra_bpmp_transfer_atomic() invocation via i2c driver is actually
> invoked with disabled interrupts on PREEMPT_RT. Because that might not
> be the case. I've been looking at the i2c call chain and it is not
> obvious what the actual call chain is. There is just
> i2c_in_atomic_xfer_mode() check. So it may or may not be used in the
> end.
tegra_bpmp_channel_write() calls tegra_bpmp_wait_request_channel_free()
which waits until the channel is freed. So it is hard to tell how long
does that take. In my case, the bug report happened at boot time.
Anyway, are there other comment about this patch?
Thanks,
Longman
prev parent reply other threads:[~2026-05-12 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 16:34 [PATCH] firmware: tegra: bpmp: Make atomic_tx_lock a raw_spinlock Waiman Long
2026-05-05 6:27 ` Sebastian Andrzej Siewior
[not found] ` <afdb5fc1-f478-4547-aa39-04d477854d64@redhat.com>
2026-05-06 6:41 ` Sebastian Andrzej Siewior
2026-05-12 23:42 ` Waiman Long [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=1a8ce61a-8f4f-443a-a454-0301b42af7de@redhat.com \
--to=longman@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=jberring@redhat.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=rostedt@goodmis.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