]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18a909d7bd647020be750e856c9d26133ec40443
treee53fa6fd03576974e9f0bccebadbc846c5a950cd
parentb795557bf04440ab59ce0aa6f468349076e4b1c5
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