From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Oleksii Kryvenko <diver.ua@gmail.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>,
"Mark Pearson" <mpearson-lenovo@squebb.ca>,
"Andrzej Pietrasiewicz" <andrzej.p@collabora.com>,
platform-driver-x86@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: [REGRESSION] thinkpad_acpi: probe deadlocks in hotkey_poll_setup() (next-20261008)
Date: Fri, 9 Oct 2026 18:29:37 -0700 [thread overview]
Message-ID: <asmU_fdpt0I_JQK8@google.com> (raw)
In-Reply-To: <20261010002413.30007-1-krivenko@itstep.org>
Hi Oleksii,
On Sat, Oct 10, 2026 at 03:20:24AM +0300, Oleksii Kryvenko wrote:
> On next-20261008, thinkpad_acpi hangs in probe on my ThinkPad
> X9-15 Gen 1 (CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y):
>
> INFO: task (udev-worker):537 blocked for more than 120 seconds.
> __mutex_lock.constprop.0+0x569/0xa30
> hotkey_poll_setup+0x50/0x110 [thinkpad_acpi]
> hotkey_inputdev_open+0x36/0x50 [thinkpad_acpi]
> input_open_device+0xa7/0x170
> kbd_connect+0x73/0x90
> input_attach_handler.isra.0+0x6f/0x90
> input_register_device.cold+0xd5/0x16f
> tpacpi_pdriver_probe+0x442/0x4a0 [thinkpad_acpi]
> INFO: task (udev-worker):537 is blocked on a mutex likely owned by task (udev-worker):537.
>
> The input core calls ->open() with dev->mutex held, and since
> d6479c25ecef ("platform/x86: thinkpad_acpi: Use
> input_device_enabled()") hotkey_poll_setup() takes that same mutex
> again.
Thanks for the report. I posted a fix for this earlier in the original
patch thread here:
https://lore.kernel.org/all/ar1iwx_390hWw_e7@google.com/
Instead of taking tpacpi_inputdev->mutex or reading dev->users directly,
it tracks whether the input device is open via a driver-local flag
protected by hotkey_mutex, which also keeps polling suppression working
properly when the device is inhibited.
I will send it out as a standalone patch shortly so it does not get lost.
Thanks.
--
Dmitry
prev parent reply other threads:[~2026-10-10 1:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-10 0:20 [REGRESSION] thinkpad_acpi: probe deadlocks in hotkey_poll_setup() (next-20261008) Oleksii Kryvenko
2026-10-10 1:29 ` Dmitry Torokhov [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:
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=asmU_fdpt0I_JQK8@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=andrzej.p@collabora.com \
--cc=diver.ua@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@vger.kernel.org \
--cc=regressions@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