drm/amd/display: fix can not turn on two displays due to DSC_RESOURCE failed.
authorCharlene Liu <charlene.liu@amd.com>
Fri, 29 Mar 2019 23:40:58 +0000 (19:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:09 +0000 (09:34 -0500)
commitede37e4ce4957166706f0fdb727ae912d6e65589
tree5ec3c14d24cced83e5798cb6ff4b3d47bb67a8fd
parent8e27a2d4cd76095c80dbbf63548175659d4b9d76
drm/amd/display: fix can not turn on two displays due to DSC_RESOURCE failed.

[Why]
Can not turn on two displays at the same time with the asic having only one DSC.
DC_DSC_RESOURCE allocation failed.

[Solution]
Only add_dsc if the timing is dsc capable based on diag_dc and num_dsc

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Wesley Chalmers <Wesley.Chalmers@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/dcn20/dcn20_resource.c