linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Bhawanpreet Lakha cdaae8371a drm/amd/display: Handle GPU reset for DC block
[Why]
Previously we used the s3 codepath for gpu reset. This can lead to issues in
certain case where we end of waiting for fences which will never come (because
parts of the hw are off due to gpu reset) and we end up waiting forever causing
a deadlock.

[How]
Handle GPU reset separately from normal s3 case. We essentially need to redo
everything we do in s3, but avoid any drm calls.

For GPU reset case

suspend:
	-Acquire DC lock
	-Cache current dc_state
	-Commit 0 stream/planes to dc (this puts dc into a state where it can be
	 powered off)
	-Disable interrupts
resume
	-Edit cached state to force full update
	-Commit cached state from suspend
	-Build stream and plane updates from the cached state
	-Commit stream/plane updates
	-Enable interrupts
	-Release DC lock

v2:
-Formatting
-Release dc_state

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-22 13:42:04 -04:00
..
amdgpu_dm drm/amd/display: Handle GPU reset for DC block 2020-05-22 13:42:04 -04:00
dc drm/amd/display: Set/Reset avmute when disable/enable stream 2020-05-21 12:48:43 -04:00
dmub drm/amd/display: Add struct field for future use 2020-05-05 13:12:40 -04:00
include drm/amd/display: query hdcp capability during link detect 2020-04-09 10:43:17 -04:00
modules drm/amd/display: correct rn NUM_VMID 2020-05-21 12:48:43 -04:00
Kconfig drm: amd/display: fix Kconfig help text 2020-04-23 15:06:41 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO