This isn't an error, this just means there's multiple asynchronous
resume requests going at the same time. Treat it like a success.

Signed-off-by: Lyude Paul <[email protected]>
Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events 
too early")
Cc: [email protected]
Cc: Karol Herbst <[email protected]>
Cc: Ben Skeggs <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: <[email protected]> # v4.19+
---
 drivers/gpu/drm/nouveau/nouveau_display.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c 
b/drivers/gpu/drm/nouveau/nouveau_display.c
index ad63d4f052deb..691bb8d37759e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -462,10 +462,10 @@ nouveau_display_acpi_ntfy(struct notifier_block *nb, 
unsigned long val,
                return NOTIFY_DONE;
 
        ret = pm_runtime_get(drm->dev->dev);
-       if (ret == 1 || ret == -EACCES) {
-               /* If the GPU is already awake, or in a state
-                * where we can't wake it up, it can handle
-                * it's own hotplug events.
+       if (ret == 1 || ret == -EACCES || ret == -EINPROGRESS) {
+               /* If the GPU is already awake, is waking up, or is in a state
+                * where we can't wake it up, it can handle its own hotplug
+                * events.
                 */
                pm_runtime_put_autosuspend(drm->dev->dev);
        } else if (ret == 0) {
-- 
2.26.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to