]> 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)
commit60b9f155f8567e7960d91844410187ff106241c4
treee53fa6fd03576974e9f0bccebadbc846c5a950cd
parent096b796c0e2d46d2a779ae81c1da84c4ff4a06ba
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