[igt-dev] [PATCH i-g-t v3 2/2] lib/igt_aux: Enable PM Suspend dbg messages
Dixit, Ashutosh
ashutosh.dixit at intel.com
Thu Jun 22 17:52:17 UTC 2023
On Wed, 21 Jun 2023 23:02:28 -0700, Anshuman Gupta wrote:
>
Hi Anshuman,
> @@ -940,6 +950,14 @@ static void igt_aux_enable_pm_suspend_dbg(void)
> igt_warn("Unable to open printk parameters Err:%d\n", errno);
> }
>
> + /* pm_debug_messages depends on CONFIG_PM_SLEEP_DEBUG */
> + if (!faccessat(power_dir, "pm_debug_messages", R_OK | W_OK, 0)) {
> + __pm_debug_messages_state = igt_sysfs_get_boolean(sysfs_fd, "pm_debug_messages");
> + igt_sysfs_set_boolean(power_dir, "pm_debug_messages", true);
> + }
> +
> + igt_install_exit_handler(igt_aux_pm_suspend_dbg_restore_exit_handler);
We already installed this exit handler in Patch 1 (under 'if (sysfs_fd >
0)') so we shouldn't install it twice, correct?
Thanks.
--
Ashutosh
More information about the igt-dev
mailing list