From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: vishnu.saini@oss.qualcomm.com
Cc: Rob Clark <robin.clark@oss.qualcomm.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Jessica Zhang <jesszhan0024@gmail.com>,
Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Clark Williams <clrkwllms@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Jordan Crouse <jordan@cosmicpenguin.net>,
Sravanthi Kollukuduru <skolluku@codeaurora.org>,
Archit Taneja <architt@codeaurora.org>,
Jeykumar Sankaran <jsanka@codeaurora.org>,
Chandan Uddaraju <chandanu@codeaurora.org>,
Rajesh Yadav <ryadav@codeaurora.org>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
linux-rt-devel@lists.linux.dev, venkata.valluru@oss.qualcomm.com,
Naman S Thaker <namathak@qti.qualcomm.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] drm/msm: split DPU core IRQ handler under CONFIG_PREEMPT_RT
Date: Thu, 10 Sep 2026 08:47:23 +0200 [thread overview]
Message-ID: <20260910064723.pbZP3vic@linutronix.de> (raw)
In-Reply-To: <20260909-drm-mis-next-split-irq-v1-1-89bc9c512c53@oss.qualcomm.com>
On 2026-09-09 14:22:16 [+0530], vishnu.saini@oss.qualcomm.com wrote:
> From: Naman S Thaker <namathak@qti.qualcomm.com>
>
> On a PREEMPT_RT kernel, dpu_core_irq() runs as a true hardirq handler,
*why* is this the case. The code you replaces adds some ifdefs around
request_irq() with 0 as flags. This does not make it run has hardirq.
> but it dispatches per-encoder callbacks that take sleepable locks
> (spinlock_t becomes an rt_mutex on RT, and some DRM-core locks reached
> through vblank/CRC/writeback handling are sleepable as well). Sleeping
> inside a hardirq handler is not allowed and eventually crashes the
> display, which is what happens after running GLMark2 for a while.
That is correct. That is the irq handler are threaded by default and
only non-threaded if explicitly requested.
I suggest to stick with non-threaded by default.
There is only one request_threaded_irq() as far as I can tell and this
msm_dp_display_request_irq():
| rc = devm_request_threaded_irq(&pdev->dev, dp->irq,
| msm_dp_display_irq_handler,
| msm_dp_display_irq_thread,
| IRQ_TYPE_LEVEL_HIGH,
| "dp_display_isr", dp);
and its primary handler will be threaded on PREEMPT_RT, too. So you end
up with two threads here.
Sebastian
next prev parent reply other threads:[~2026-09-10 6:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 8:52 [PATCH] drm/msm: split DPU core IRQ handler under CONFIG_PREEMPT_RT vishnu.saini
2026-09-09 9:06 ` sashiko-bot
2026-09-10 6:47 ` Sebastian Andrzej Siewior [this message]
2026-09-11 12:44 ` Vishnu Saini
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=20260910064723.pbZP3vic@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@gmail.com \
--cc=architt@codeaurora.org \
--cc=chandanu@codeaurora.org \
--cc=clrkwllms@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jesszhan0024@gmail.com \
--cc=jordan@cosmicpenguin.net \
--cc=jsanka@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=namathak@qti.qualcomm.com \
--cc=robin.clark@oss.qualcomm.com \
--cc=rostedt@goodmis.org \
--cc=ryadav@codeaurora.org \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=skolluku@codeaurora.org \
--cc=stable@vger.kernel.org \
--cc=venkata.valluru@oss.qualcomm.com \
--cc=vishnu.saini@oss.qualcomm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.