Open pelwell opened 12 months ago
The immediate cause of the WARN is the access to the GLOBAL_SHUTDOWN
pin during the power-off handling- it's what turns out the lights. Sadly it's on the GPIO expander, which is on the other side of an I2C link. Worse than that, it's an I2C link controlled by the firmware. The "expgpio" driver that controls it expects to be able to sleep while waiting for a response, and the gpio-poweroff driver acknowledges that by using gpiod_set_value_cansleep
, but this happens while "within RCU read-side critical section", so I've no idea how that is supposed to work.
Describe the bug
With a serial cable attached reveals that the Pi 400 kernel is emitting a WARN message when shutting down:
It then proceeds to power off as expected - I'm just logging this so it doesn't get forgotten.
Steps to reproduce the behaviour
Device (s)
Raspberry Pi 400
System
6.1.0-rpi4-rpi-v8 #1 Debian 1:6.1.54-1+rpt2
Logs
No response
Additional context
No response