drm/amd/display: Only flush inst_fb if backdoor loading
authorAlvin Lee <alvin.lee2@amd.com>
Sat, 26 Sep 2020 16:46:34 +0000 (12:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:17:32 +0000 (15:17 -0400)
commit9485af4e4d88806d27c0ceaab1e7c56619a6f7bd
tree74218c2aa047faa055f871fcac3ba389f19f112a
parent480c5b8ff8757405e07ba938f5c565ecdf38d981
drm/amd/display: Only flush inst_fb if backdoor loading

[Why]
DAL resume from BACO time is longer if we always flush inst_fb

[How]
Check if backdoor loading to flush inst_fb

Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c