drm/amd/display: add explicit handshake between x86 and DMCU
authorJun Lei <Jun.Lei@amd.com>
Mon, 8 Apr 2019 19:27:53 +0000 (15:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2019 22:28:19 +0000 (17:28 -0500)
commita9a3c0da1427153e74a4ad97b1a897384a6b0404
tree1d847d9ddd02f904ca1a963473f49ecf97157b39
parentcc602e2b0d78254e41bb81f32e2825f00c7cc69c
drm/amd/display: add explicit handshake between x86 and DMCU

[why]
When DMCU interrupts x86, it leads to undefined phy programming

[how]
expand dmcu interface to support new PHY lock and unlock commands
if DMCU FW doesn't support these commands, they fail silently so its okay

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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/core/dc_link_hwss.c
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h