]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Don't pm_runtime_put_sync(), only pm_runtime_put_autosuspend()
authorLyude Paul <lyude@redhat.com>
Thu, 14 Jul 2022 17:42:34 +0000 (13:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:53 +0000 (14:22 +0200)
commit0b6e64fc685605a45d4228cb10b762c305206d45
treeb6745525555ae6ab12cb96771d85dc1a5207c107
parent3873b3157e7044f9cf53dc018ad208b6941c6dad
drm/nouveau: Don't pm_runtime_put_sync(), only pm_runtime_put_autosuspend()

commit c4e10408bf7f58173c62c5266f7ce577e66468e1 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@redhat.com>
Reviewed-by: David Airlie <airlied@linux.ie>
Fixes: 41cef002e760 ("drm/nouveau: Intercept ACPI_VIDEO_NOTIFY_PROBE")
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: <stable@vger.kernel.org> # v4.10+
Link: https://patchwork.freedesktop.org/patch/msgid/20220714174234.949259-3-lyude@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c