OSDN Git Service

drm/amd/display: Send DMCU messages only if FW loaded
authorAnthony Koo <Anthony.Koo@amd.com>
Thu, 4 Apr 2019 13:44:55 +0000 (09:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2019 22:27:51 +0000 (17:27 -0500)
commitabdef7558358ea34c7ad03edc8c82557d0c1df51
treef9fe7baa0f70ff22c47ce493fff5e81bb07cba23
parent43e3ac8389ef68ab2347eb1ae4a6e5b49793614e
drm/amd/display: Send DMCU messages only if FW loaded

[Why]
Some DMCU messages were being sent in cases where
there was no DMCU FW at all, which resulted in some wait
timeouts

[How]
Delay sending some of the DMCU messages after FW
init is called and DMCU is running.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c