OSDN Git Service

drm/amd/display: Acquire DSC HW resource only if required by stream
authorNikola Cornij <nikola.cornij@amd.com>
Tue, 2 Apr 2019 16:40:22 +0000 (12:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:10 +0000 (09:34 -0500)
commitc9ae6e1691cd1dcd5f7f76050b5eca16bc82445e
tree0da915b62075e91af7ec0cb94c3d4626fd81c4e1
parent0d7bd17c6e7146df6de8c37b3fbc91dbaa138014
drm/amd/display: Acquire DSC HW resource only if required by stream

[why]
There are ASICs that have fewer DSC engines than pipes, which makes
DSC a resource that should be used only if required.

[how]
Acquire DSC HW resource if required by stream and release when not
required anymore.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Hawking Zhang <Hawking.Zhang@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_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h
drivers/gpu/drm/amd/display/dc/inc/core_types.h