drm/amd/display: Map DSC resources 1-to-1 if numbers of OPPs and DSCs are equal
authorNikola Cornij <nikola.cornij@amd.com>
Thu, 7 Nov 2019 18:06:48 +0000 (13:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 23:14:47 +0000 (18:14 -0500)
commita1fc44b609b4e9c0941f0e4a1fc69d367af5ab69
tree2b29f3ed40eb1f1eae8a1a04c42b14a019f61803
parent9d9de889ff8eb941e4daefff610e170386b61962
drm/amd/display: Map DSC resources 1-to-1 if numbers of OPPs and DSCs are equal

[why]
On ASICs where number of DSCs is the same as OPPs there's no need
for DSC resource management. Mappping 1-to-1 fixes mode-set- or S3-
-related issues for such platforms.

[how]
Map DSC resources 1-to-1 to pipes only if number of OPPs is the same
as number of DSCs. This will still keep other ASICs working.
A follow-up patch to fix mode-set issues on those ASICs will be
required if testing shows issues with mode set.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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/dcn20/dcn20_resource.c