drm/amd/display: Don't use fsleep for PSR exit waits on dmub replay
authorjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 09:51:03 +0000 (09:51 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 09:51:03 +0000 (09:51 +0000)
From Nicholas Kazlauskas
da696cbb47941c40b01cc10ea5504dc5a4ebac6e in linux-6.6.y/6.6.50
b5236da757adc75d7e52c69bdc233d29249a0d0c in mainline linux

sys/dev/pci/drm/amd/display/dc/dce/dmub_replay.c

index 28149e5..eeb5b82 100644 (file)
@@ -102,7 +102,8 @@ static void dmub_replay_enable(struct dmub_replay *dmub, bool enable, bool wait,
                                        break;
                        }
 
-                       fsleep(500);
+                       /* must *not* be fsleep - this can be called from high irq levels */
+                       udelay(500);
                }
 
                /* assert if max retry hit */