diff options
| author | Nicholas Kazlauskas <[email protected]> | 2024-02-16 19:42:05 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-03-20 17:37:37 +0000 |
| commit | f57269f85b284f3a8154e208d7b1eb2abe652eb2 (patch) | |
| tree | ab800ffd4d1072ab7fd3a096a4d850fa38e64355 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
| parent | drm/amdgpu: cleanup unused variable (diff) | |
| download | kernel-f57269f85b284f3a8154e208d7b1eb2abe652eb2.tar.gz kernel-f57269f85b284f3a8154e208d7b1eb2abe652eb2.zip | |
drm/amd/display: Add guards for idle on reg read/write
[WHY]
If DCN is in idle then we should not be accessing DCN registers or
it can lead to hangs.
[HOW]
Log the error and return 0 or drop the write if it's in idle.
This is skipped in the exit sequence itself since the boolean flips
before it starts.
It also does not cover accesses from external clients outside of DM/DC
like firmware or the kernel mode driver.
Reviewed-by: Duncan Ma <[email protected]>
Acked-by: Alex Hung <[email protected]>
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions
