Skip to content

Commit 80a9848

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 <Rodrigo.Siqueira@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0b9696a commit 80a9848

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)