drm/amd/display: Fixed extend to second screen mode hang
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 28 Sep 2017 21:18:27 +0000 (17:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:47:05 +0000 (16:47 -0400)
commit13ab1b44151195823fa0e2ceace1cf4687266dba
tree24cf877393ca11b454d1c4e6f2ca1165a39636c9
parent3af89b96b2f22119556b8e89edde72951f6bd410
drm/amd/display: Fixed extend to second screen mode hang

1. Fixed acquire free split pipe bug.
2. Change return value for dc_add_stream_to_ctx
   from bool to enum.
4. Remove redundant apply_ctx_for_surface calling
5. Unlock pipe after back end programming.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc.h