Jessica Liu
af416cd9b3
irqchip/riscv-aplic: Restrict genpd notifier to device tree only
...
On ACPI systems, the aplic's pm_domain is set to acpi_general_pm_domain,
which provides its own power management callbacks (e.g., runtime_suspend
via acpi_subsys_runtime_suspend).
aplic_pm_add() unconditionally calls dev_pm_genpd_add_notifier() when
dev->pm_domain is non‑NULL, leading to a comparison between runtime_suspend
and genpd_runtime_suspend. This results in the following errors when ACPI
is enabled:
riscv-aplic RSCV0002:00: failed to create APLIC context
riscv-aplic RSCV0002:00: error -ENODEV: failed to setup APLIC in MSI mode
Fix this by checking for dev->of_node before adding or removing the genpd
notifier, ensuring it is only used for device tree based systems.
Fixes: 95a8ddde36 ("irqchip/riscv-aplic: Preserve APLIC states across suspend/resume")
Signed-off-by: Jessica Liu <liu.xuemei1@zte.com.cn >
Signed-off-by: Thomas Gleixner <tglx@kernel.org >
Link: https://patch.msgid.link/20260331093029749vRpdH-0qoEqjS0Wnn9M4x@zte.com.cn
2026-03-31 10:11:29 +02:00
..
2019-05-30 11:26:32 -07:00
2026-02-21 17:09:51 -08:00
2026-01-18 14:39:18 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2019-06-19 17:09:55 +02:00
2025-06-20 21:38:52 +02:00
2025-08-23 21:41:07 +02:00
2026-02-21 17:09:51 -08:00
2017-07-04 11:10:37 +01:00
2025-08-23 21:41:07 +02:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00
2025-05-16 21:06:09 +02:00
2026-02-21 20:03:00 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-05-27 08:07:32 -07:00
2025-05-16 21:06:09 +02:00
2025-05-16 21:06:09 +02:00
2025-05-16 21:06:09 +02:00
2025-05-27 08:07:32 -07:00
2025-05-13 16:39:03 +02:00
2025-05-16 21:06:09 +02:00
2024-06-24 18:16:44 +01:00
2025-07-08 18:35:52 +01:00
2026-01-27 15:31:42 +01:00
2025-07-08 18:35:52 +01:00
2023-08-21 17:49:11 +01:00
2022-06-09 17:36:57 +01:00
2026-02-21 17:09:51 -08:00
2025-09-03 09:01:26 -05:00
2026-03-01 10:58:16 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-06-20 13:52:29 -07:00
2026-02-28 15:33:34 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-13 11:31:15 -08:00
2025-11-24 14:29:11 -08:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00
2025-11-14 10:01:52 +01:00
2026-02-21 17:09:51 -08:00
2025-06-12 15:08:12 +02:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00
2025-06-12 15:08:12 +02:00
2025-10-16 18:17:27 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:07 +02:00
2025-05-16 21:06:09 +02:00
2025-06-12 15:08:12 +02:00
2025-05-27 08:07:32 -07:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:07 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2024-08-23 20:40:27 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-24 18:35:49 +01:00
2025-07-18 14:54:45 +02:00
2024-11-26 20:09:06 +01:00
2024-09-17 07:09:17 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-06-21 18:20:54 +02:00
2026-02-17 11:03:56 +01:00
2025-05-27 08:07:32 -07:00
2025-09-09 14:44:30 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2025-08-24 12:00:47 +02:00
2025-05-16 21:32:19 +02:00
2026-02-21 17:09:51 -08:00
2025-10-16 18:17:28 +02:00
2025-05-16 21:32:20 +02:00
2025-05-16 21:06:09 +02:00
2025-09-03 14:10:30 +02:00
2025-05-16 21:06:09 +02:00
2026-01-16 16:38:56 +00:00
2026-01-16 16:38:56 +00:00
2025-05-16 21:06:09 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-06-12 15:08:12 +02:00
2026-03-26 16:11:53 +01:00
2021-10-26 10:13:31 +01:00
2025-05-16 21:06:09 +02:00
2025-07-18 16:46:09 +02:00
2025-07-18 16:46:09 +02:00
2026-01-15 12:03:27 +01:00
2025-12-05 17:29:04 -08:00
2025-12-15 22:44:32 +01:00
2026-03-26 16:12:01 +01:00
2025-12-16 19:08:43 +01:00
2026-03-31 10:11:29 +02:00
2025-12-16 19:08:43 +01:00
2024-11-16 00:45:37 +01:00
2025-12-15 22:44:33 +01:00
2026-01-13 09:51:46 +01:00
2026-02-22 08:26:33 -08:00
2026-01-09 16:10:05 +01:00
2026-02-21 20:03:00 -08:00
2026-03-17 11:16:15 +01:00
2025-11-14 10:01:52 +01:00
2025-09-04 14:52:48 +02:00
2026-03-01 10:58:16 -08:00
2023-04-13 13:13:53 -07:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00
2023-08-21 17:49:11 +01:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2025-06-12 15:08:12 +02:00
2026-02-21 17:09:51 -08:00
2025-11-14 10:01:52 +01:00
2025-05-27 08:07:32 -07:00
2025-05-27 08:07:32 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-01-26 16:40:04 +01:00
2025-10-16 18:17:28 +02:00
2025-05-16 21:06:07 +02:00
2025-05-16 21:06:09 +02:00
2026-02-21 17:09:51 -08:00
2025-11-14 10:01:52 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00
2025-05-16 21:06:09 +02:00
2025-05-16 21:06:09 +02:00
2025-10-16 18:17:27 +02:00
2026-01-18 14:39:18 +01:00
2025-12-15 22:44:32 +01:00
2025-10-17 15:18:18 +02:00
2026-02-21 17:09:51 -08:00
2025-05-16 21:06:09 +02:00