]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: early return when pipe_cnt is 0 in bw validation
authorEric Yang <Eric.Yang2@amd.com>
Tue, 4 Jun 2019 22:14:43 +0000 (18:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:08 +0000 (14:18 -0500)
commit249207e180f373ea835a6e6b0c92a92843b3d1ba
tree551889a51343b8fb7ef3d4514978ed5ce0586cc8
parent364e77ad61655360e16f828cef693862cbf84cbf
drm/amd/display: early return when pipe_cnt is 0 in bw validation

[Why]
Unintentionally introduced behaviour change from previous refactor,
which causes clks to be 0 in no stream cases, which will cause
divide by 0.

[How]
Skip calculation of clocks when no stream. Which is the same as old
behaviour.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <tong.cheng@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
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h