This is a note to let you know that I've just added the patch titled drm/nouveau: Don't pm_runtime_put_sync(), only pm_runtime_put_autosuspend() to the 5.19-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: drm-nouveau-don-t-pm_runtime_put_sync-only-pm_runtime_put_autosuspend.patch and it can be found in the queue-5.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From c96cfaf8fc02d4bb70727dfa7ce7841a3cff9be2 Mon Sep 17 00:00:00 2001 From: Lyude Paul <lyude@xxxxxxxxxx> Date: Thu, 14 Jul 2022 13:42:34 -0400 Subject: drm/nouveau: Don't pm_runtime_put_sync(), only pm_runtime_put_autosuspend() From: Lyude Paul <lyude@xxxxxxxxxx> commit c96cfaf8fc02d4bb70727dfa7ce7841a3cff9be2 upstream. While trying to fix another issue, it occurred to me that I don't actually think there is any situation where we want pm_runtime_put() in nouveau to be synchronous. In fact, this kind of just seems like it would cause issues where we may unexpectedly block a thread we don't expect to be blocked. So, let's only use pm_runtime_put_autosuspend(). Changes since v1: * Use pm_runtime_put_autosuspend(), not pm_runtime_put() Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx> Reviewed-by: David Airlie <airlied@xxxxxxxx> Fixes: 3a6536c51d5d ("drm/nouveau: Intercept ACPI_VIDEO_NOTIFY_PROBE") Cc: Hans de Goede <hdegoede@xxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> # v4.10+ Link: https://patchwork.freedesktop.org/patch/msgid/20220714174234.949259-3-lyude@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -515,7 +515,7 @@ nouveau_display_hpd_work(struct work_str pm_runtime_mark_last_busy(drm->dev->dev); noop: - pm_runtime_put_sync(drm->dev->dev); + pm_runtime_put_autosuspend(dev->dev); } #ifdef CONFIG_ACPI --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -466,7 +466,7 @@ nouveau_fbcon_set_suspend_work(struct wo if (state == FBINFO_STATE_RUNNING) { nouveau_fbcon_hotplug_resume(drm->fbcon); pm_runtime_mark_last_busy(drm->dev->dev); - pm_runtime_put_sync(drm->dev->dev); + pm_runtime_put_autosuspend(drm->dev->dev); } } Patches currently in stable-queue which might be from lyude@xxxxxxxxxx are queue-5.19/drm-nouveau-acpi-don-t-print-error-when-we-get-einprogress-from-pm_runtime.patch queue-5.19/drm-nouveau-fix-another-off-by-one-in-nvbios_addr.patch queue-5.19/drm-dp-mst-read-the-extended-dpcd-capabilities-during-system-resume.patch queue-5.19/drm-nouveau-kms-fix-failure-path-for-creating-dp-connectors.patch queue-5.19/drm-nouveau-don-t-pm_runtime_put_sync-only-pm_runtime_put_autosuspend.patch