drm/amd/display: stop doing unnecessary detection when going to D3
authorJoseph Gravenor <joseph.gravenor@amd.com>
Thu, 12 Dec 2019 20:40:50 +0000 (15:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:12:07 +0000 (14:12 -0500)
commit09178aaa2311cbef76c72dad4a0da165945fe75e
treee53fa6fd03576974e9f0bccebadbc846c5a950cd
parented581a0ace44fc4f454e7765a1625a46258080c7
drm/amd/display: stop doing unnecessary detection when going to D3

[Why]
Don't want to start HW discovery unless we have lost power,
as doing rediscovery otherwise is both unnecessary and time consuming.
Before this change it takes 40 seconds to go in to suspend, after it
takes 27 seconds

[How]
Accelerated mode gets cleared if we lose power. Only do detection if
this register is cleared

Signed-off-by: Joseph Gravenor <joseph.gravenor@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h