drm/amd/display: Don't use fsleep for PSR exit waits
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 27 Sep 2023 19:06:41 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 10:56:20 +0000 (11:56 +0100)
commit2a79e92f23bce01a197486738ac11e3d1c04ef58
treeacc7435170b05f499d409c6b83c5d1b18d20e170
parentffc253263a1375a65fa6c9f62a893e9767fbebfa
drm/amd/display: Don't use fsleep for PSR exit waits

[ Upstream commit 79df45dc4bfb13d9bd3a75338b9d9dab948be3d6 ]

[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 fsleep with a udelay.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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>
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c