mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Aveline Noir <jm5905938@gmail.com>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>,
	"Jiri Kosina" <jikos@kernel.org>,
	"Benjamin Tissoires" <bentiss@kernel.org>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	syzbot+912222e4cb82423535fa@syzkaller.appspotmail.com,
	linux-rt-devel@lists.linux.dev
Subject: Re: [PATCH 1/2] HID: picolcd: Move output requests out of spinlocked sections
Date: Mon, 28 Sep 2026 14:28:22 +0200	[thread overview]
Message-ID: <20260928122822.JdtAHH3g@linutronix.de> (raw)
In-Reply-To: <CANOyQmGkGwSkwUj-NOKzhQ_mgapoqqoOLaqXaGAjWK8jiknarQ@mail.gmail.com>

On 2026-09-28 13:46:53 [+0200], Aveline Noir wrote:
> Creating a PicoLCD through UHID triggers a sleeping-in-invalid-context
> warning in picolcd_set_contrast() on PREEMPT_RT. hid_hw_request() can

This is not limited to PREEMPT_RT.

> allocate with GFP_KERNEL and wait for a reply through __hid_request(),
> but the driver invokes it while holding data->lock. The same pattern

picolcd_data::lock. The important part is that the lock is a spinlock_t.
Non-PREEMPT_RT builds should complain here, too.

Sebastian

  reply	other threads:[~2026-09-28 12:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 11:46 [PATCH 0/2] HID: picolcd: Fix output-request and framebuffer locking Aveline Noir
2026-09-28 11:46 ` [PATCH 1/2] HID: picolcd: Move output requests out of spinlocked sections Aveline Noir
2026-09-28 12:28   ` Sebastian Andrzej Siewior [this message]
2026-09-28 12:44     ` Jason Mike
2026-09-28 11:46 ` [PATCH 2/2] HID: picolcd: Avoid framebuffer last-close deadlock Aveline Noir

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=20260928122822.JdtAHH3g@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=bentiss@kernel.org \
    --cc=bonbons@linux-vserver.org \
    --cc=jikos@kernel.org \
    --cc=jm5905938@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=syzbot+912222e4cb82423535fa@syzkaller.appspotmail.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 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®