Re: [6.19-rc2 arm64] sleeping while atomic in gpiod_configure_flags

From: Linus Walleij

Date: Wed Dec 31 2025 - 16:13:07 EST


On Sun, Dec 28, 2025 at 8:18 AM Daniel J Blueman <daniel@xxxxxxxxx> wrote:

> When booting 6.19-rc2 [1, 2] with lockdep enabled on a Qualcomm X1
> Lenovo Slim7x ARM64 laptop, I am seeing mutex usage while atomic
> during gpiod driver registration:

OK...

(...)
> gpiod_direction_output (drivers/gpio/gpiolib.c:3026 drivers/gpio/gpiolib.c:3019)
> gpio_shared_proxy_direction_output
> (drivers/gpio/gpio-shared-proxy.c:188) gpio_shared_proxy
> gpiochip_direction_output (drivers/gpio/gpiolib.c:2830)

Aha it's something with the shared proxy, it's related to the whole
trail of commits adding and fixing this feature, part of which you see
if you do:
git log drivers/gpio/gpiolib-shared.c

But don't worry: it's shared proxy and it's qualcomm which means Bartosz
will be all over it as soon as he's back from holidays!

Yours,
Linus Walleij