]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Make sure line size is not zero in DCN2 line buffer size calculations
authorNikola Cornij <nikola.cornij@amd.com>
Mon, 15 Apr 2019 18:32:28 +0000 (14:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:11 +0000 (09:34 -0500)
commit4553de36e867ba397023bbe883444091a6cd8772
tree69ce44458e401dcfb24a9ecfc4df457c4809da0a
parentd9f3e905eb89ee509ab15bb0c2f94b11571032de
drm/amd/display: Make sure line size is not zero in DCN2 line buffer size calculations

[why]
'Divide by zero' error happens when line size happens to be zero.

[how]
The code that makes sure line size minimum value can be 1 was already
present in DCN1 part of the driver, this is mearly a port to DCN2.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c