]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix pipe selection logic in validate
authorJun Lei <Jun.Lei@amd.com>
Mon, 22 Jul 2019 13:45:20 +0000 (09:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:55:04 +0000 (10:55 -0500)
commit1e48a5856d640d3dd3616d68f893c23883fb7d30
tree7325d9ceb706bcf0974bcc4d5f307e94e781b276
parent4741adeb943445c48cdd0b1c6ed649c294efae24
drm/amd/display: fix pipe selection logic in validate

[why]
Resource mapping done in dcn20_validate_bandwidth has a flaw:  When a full
update is performed, the HWSS will only update the MPCC tree for the stream
that is updated as opposed to all streams.  This means that when mapping pipes
in validation, care must be taken to not change any existing mapping, otherwise it
leads to partial hw programming

[how]
it's not strictly necessary to track which stream/mpcc tree is being updated, but
rather it's sufficient to compare current and new state and just keep pipes that were
previously already mapped unchanged.

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Eric Yang <eric.yang2@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