mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Skripkin <paskripkin@gmail.com>
To: Eric Anderson <ejona86@gmail.com>
Cc: lee@kernel.org, mfd@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd/rk8xx: fix sleep during RCU read side critical section
Date: Fri, 30 Oct 2026 17:44:13 +0300	[thread overview]
Message-ID: <c18fe7d6-c738-4049-ab88-c12817f0108e@gmail.com> (raw)
In-Reply-To: <CAFyMnzbvDVvDuNfYgD26ThSyWDqt5u0TLHxF+Tp4=h8fkyepug@mail.gmail.com>

Hi Eric,

Eric Anderson <ejona86@gmail.com> says:
> On Thu, Oct 29, 2026 at 12:22 PM Pavel Skripkin <paskripkin@gmail.com> wrote:
>> SPI does not support atomic transfers, so it's dangerous to call from
>> atomic notif chains, since it can cause stall during reboot on
>> orangepi5 (see trace below).
> 
> For my curiosity, is the hang during reboot/shutdown random or consistent?
> 

They are basically the same, since they both trigger sleeping SPI I/O. I 
agree, I should have used studown/reboot more consistently in commit 
message...

> You are explicitly mentioning reboot, although the stack trace is for
> shutdown. I'd have expected reboot to have always been broken for you.

Likely. I've just bought it, so cannot say if it was always broken. 
Based on code I believe that it was indeed broken from the beginning. 
Also I've found previous attempt to fix it [1], so looks like problem is 
known for quite a long time

> In my change I noticed that reboot and shutdown didn't agree on
> whether to use _PREPARE, and my change adjusted shutdown to agree with
> reboot. Since you apparently need the opposite, prior to my change I'd
> assume shutdown was working but reboot broken.
> 
 >> I don't have rk3288 board to test. However, I strongly suspect 
that>> patch does not affect your case.
> 
> I'll test it this weekend. I suspect it would work fine on Veyron/rk3288.


[1] 
https://lists.infradead.org/pipermail/linux-rockchip/2024-July/049312.html


With regards,
Pavel Skripkin

  reply	other threads:[~2026-10-30 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 19:22 Pavel Skripkin
2026-10-30  4:28 ` Eric Anderson
2026-10-30 14:44   ` Pavel Skripkin [this message]
2026-10-30 19:14     ` Eric Anderson

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=c18fe7d6-c738-4049-ab88-c12817f0108e@gmail.com \
    --to=paskripkin@gmail.com \
    --cc=ejona86@gmail.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    /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

all inboxes | Powered by JetHome®