OSDN Git Service

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 21:27:02 +0000 (16:27 -0500)
commiteab4bb97c8e7af219e12afc53f0def71a54d014b
tree8046fdd5b5ef532e4704976b774dffba9ff1dd24
parent10f51857b753af25cc048d8c5791433ee94f9164
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