linux_dsm_epyc7002/drivers/gpu/drm/amd
Evan Quan 3f12acc8d6 drm/amdgpu: put the audio codec into suspend state before gpu reset V3
At default, the autosuspend delay of audio controller is 3S. If the
gpu reset is triggered within 3S(after audio controller idle),
the audio controller may be unable into suspended state. Then
the sudden gpu reset will cause some audio errors. The change
here is targeted to resolve this.

However if the audio controller is in use when the gpu reset
triggered, this change may be still not enough to put the
audio controller into suspend state. Under this case, the
gpu reset will still proceed but there will be a warning
message printed("failed to suspend display audio").

V2: limit this for BACO and mode1 reset only
V3: try 1st to use pm_runtime_autosuspend_expiration() to
    query how much time is left. Use default setting on
    failure

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-30 16:48:10 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: put the audio codec into suspend state before gpu reset V3 2020-04-30 16:48:10 -04:00
amdkfd drm/amdkfd: Track GPU memory utilization per process 2020-04-30 16:47:34 -04:00
display drm/amd/display: remove duplicate assignment of dcn21_funcs members 2020-04-30 16:47:56 -04:00
include drm/amd/powerplay: revise the way to retrieve the board parameters 2020-04-22 18:11:45 -04:00
powerplay drm/amdgpu/smu10: remove duplicate assignment of smu10_hwmgr_funcs members 2020-04-30 16:48:07 -04:00