Skip to content

Commit da696cb

Browse files
Nicholas Kazlauskasgregkh
authored andcommitted
drm/amd/display: Don't use fsleep for PSR exit waits on dmub replay
[ Upstream commit b5236da ] [Why] These functions can be called from high IRQ levels and the OS will hang if it tries to use a usleep_highres or a msleep. [How] Replace the flseep with a udelay for dmub_replay_enable. Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 381113e commit da696cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ static void dmub_replay_enable(struct dmub_replay *dmub, bool enable, bool wait,
102102
break;
103103
}
104104

105-
fsleep(500);
105+
/* must *not* be fsleep - this can be called from high irq levels */
106+
udelay(500);
106107
}
107108

108109
/* assert if max retry hit */

0 commit comments

Comments
 (0)