This is a note to let you know that I've just added the patch titled parisc/power: Fix power soft-off button emulation on qemu to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: parisc-power-fix-power-soft-off-button-emulation-on-qemu.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 6472036581f947109b20664121db1d143e916f0b Mon Sep 17 00:00:00 2001 From: Helge Deller <deller@xxxxxx> Date: Wed, 3 Jan 2024 21:17:23 +0100 Subject: parisc/power: Fix power soft-off button emulation on qemu From: Helge Deller <deller@xxxxxx> commit 6472036581f947109b20664121db1d143e916f0b upstream. Make sure to start the kthread to check the power button on qemu as well if the power button address was provided. This fixes the qemu built-in system_powerdown runtime command. Fixes: d0c219472980 ("parisc/power: Add power soft-off when running on qemu") Signed-off-by: Helge Deller <deller@xxxxxx> Cc: stable@xxxxxxxxxxxxxxx # v6.0+ Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/parisc/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/parisc/power.c +++ b/drivers/parisc/power.c @@ -238,7 +238,7 @@ static int __init power_init(void) if (running_on_qemu && soft_power_reg) register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_DEFAULT, qemu_power_off, (void *)soft_power_reg); - else + if (!running_on_qemu || soft_power_reg) power_task = kthread_run(kpowerswd, (void*)soft_power_reg, KTHREAD_NAME); if (IS_ERR(power_task)) { Patches currently in stable-queue which might be from deller@xxxxxx are queue-6.1/parisc-power-fix-power-soft-off-button-emulation-on-qemu.patch queue-6.1/parisc-firmware-fix-f-extend-for-pdc-addresses.patch