From: Kevin Hilman <khilman@baylibre.com>
To: Brad Harper <bjharper@gmail.com>,
linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org
Cc: linux-rt-users@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc: host: meson-gx-mmc: fix possible deadlock condition for preempt_rt
Date: Thu, 24 Sep 2020 10:01:41 -0700 [thread overview]
Message-ID: <7hk0wj9ki2.fsf@baylibre.com> (raw)
In-Reply-To: <24a844c3-c2e0-c735-ccb7-83736218b548@gmail.com>
Hi Brad,
Brad Harper <bjharper@gmail.com> writes:
> Force threaded interrupts for meson_mmc_irq to prevent possible deadlock
> condition
> during mmc operations when using preempt_rt with 5.9.0-rc3-rt3 patches
> on arm64.
>
> Using meson-gx-mmc with an emmc device on Hardkernel Odroid N2+
> configured with
> preempt_rt resulted in the soc becoming unresponsive. With lock
> checking enabled
> the below inconsistent lock state was observed during boot.
>
> After some discussions with tglx in IRC #linux-rt the attached patch was
> suggested
> to remove IRQF_ONESHOT from request_threaded_irq.
> This has been tested and confirmed by me to resolve both the
> unresponsive soc and
> the inconsistent lock state warning when using 5.9.0-rc3-rt3 on arm64
> Odroid N2+.
>
> Further review and testing is required to ensure there are no adverse
> impacts or
> concerns and that is the correct method to resolve the problem. I will
> continue
> to test on various amlogic devices with both standard mainline low
> latency kernel
> and preempt_rt kernel with -rt patches.
This looks right to me, thanks for sending a fix.
For broader testing, I can add this to my testing branch so it gets
booted on a bunch more platform in KernelCI also.
However...
[...]
> Signed-off-by: Brad Harper <bjharper@gmail.com>
> ---
> drivers/mmc/host/meson-gx-mmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/meson-gx-mmc.c
> b/drivers/mmc/host/meson-gx-mmc.c
> index 08a3b1c05..130ac134d 100644
> --- a/drivers/mmc/host/meson-gx-mmc.c
> +++ b/drivers/mmc/host/meson-gx-mmc.c
> @@ -1139,7 +1139,7 @@ static int meson_mmc_probe(struct platform_device
> *pdev)
> host->regs + SD_EMMC_IRQ_EN);
>
> ret = request_threaded_irq(host->irq, meson_mmc_irq,
> - meson_mmc_irq_thread, IRQF_ONESHOT,
> + meson_mmc_irq_thread, 0,
> dev_name(&pdev->dev), host);
> if (ret)
> goto err_init_clk;
This patch has been mangled by your mailer, so it doesn't apply cleanly.
If you're using the gmail web UI, this is a common problem.
I strongly recommend using git-send-email to send directly via gmail
SMTP. The git-send-email docs[1] give some examples on how to set this
up.
Kevin
[1] https://git-scm.com/docs/git-send-email#_examples
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-09-24 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-23 13:04 [PATCH] mmc: host: meson-gx-mmc: fix possible deadlock condition for preempt_rt Brad Harper
2020-09-24 17:01 ` Kevin Hilman [this message]
2020-09-25 9:11 ` Jerome Brunet
2020-09-25 13:44 ` Sebastian Andrzej Siewior
2020-09-25 14:14 ` Jerome Brunet
2020-09-25 15:05 ` Sebastian Andrzej Siewior
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=7hk0wj9ki2.fsf@baylibre.com \
--to=khilman@baylibre.com \
--cc=bjharper@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-rt-users@vger.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;
as well as URLs for NNTP newsgroup(s).