drm/amd/display: decouple global lock out of pipe control lock
authorWenjing Liu <Wenjing.Liu@amd.com>
Wed, 22 Jan 2020 16:54:54 +0000 (11:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:37 +0000 (15:04 -0500)
commit71b81f1275e0b5713fae86004be72719a2fa73b7
treee6d9f313c4819870a4c994aed9815a9c1e4f1b97
parent28e7a7f4fb4b9dc364a054ae01b87f7111d5ba2d
drm/amd/display: decouple global lock out of pipe control lock

[why]
hwss should not guess what type of pipe lock is needed.
The caller of the lock function should know
the right type of pipe lock.
Decouple the setup of global lock outside of pipe control lock
logic.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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/dcn20/dcn20_hwseq.c