]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Perform DMUB hw_init on resume
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 25 Nov 2019 14:49:27 +0000 (09:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:09 +0000 (16:09 -0500)
commit8c7aea404d55dabc71df792c850aed5536ece2fd
tree50d1db82ffec9f9df0a1a0f2ca9fe96929d34636
parentec5b356c58941bb8930858155d9ce14ceb3d30a0
drm/amd/display: Perform DMUB hw_init on resume

[Why]
The DMUB is put into reset on suspend and is not running on resume,
disabling PSR/ABM features.

[How]
Move the allocation of the framebuffer to sw_init.

Do DMUB hardware init and framebuffer filling only from hw_init.

On resume the contents of the framebuffer will be invalid so those
should be cleared.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h