LKML Archive on
help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <>
To: Clark Williams <>
Cc: Thomas Gleixner <>,
	Steven Rostedt <>,
	David Airlie <>,
	LKML <>,
	RT <>,
	Daniel Vetter <>
Subject: Re: [PATCH PREEMPT_RT] i915: fix PREEMPT_RT locking splats
Date: Wed, 8 Sep 2021 21:05:12 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20210823150015.61ebc7d6@theseus>

On 2021-08-23 15:00:15 [-0500], Clark Williams wrote:
> Found two separate spots where i915 was throwing "sleeping
> function called from invalid context" when running on a
> PREEMPT_RT kernel. In both cases it was from calling
> local_irq_disable prior to taking a spin_lock. Since spin
> locks are converted to rt_mutex_t on PREEMPT_RT this means
> that we might sleep with interrupts disabled.
> Since in both cases the calls were in threaded context on RT
> (irq or ksoftirqd) and in no danger of reentrance, change the
> code to only disable interrupts on non-PREEMPT_RT kernels.
> Signed-off-by: Clark Williams <>

I try to deal with this in


      parent reply	other threads:[~2021-09-08 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23 20:00 Clark Williams
2021-08-26 15:32 ` Sebastian Andrzej Siewior
2021-09-08 19:05 ` Sebastian Andrzej Siewior [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH PREEMPT_RT] i915: fix PREEMPT_RT locking splats' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).