]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: Remove t_srx_delay_us.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 23 Jan 2022 02:38:28 +0000 (03:38 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 22:54:23 +0000 (17:54 -0500)
commitcf63ca0485a5e57df1cdcbd1b7d190ad13c99388
tree50703fdf0e3603cd5bc2ef1304998e7cffb485db
parent628eea7a0015d8c8eccdb328fe3d5955fb897b02
drm/amdgpu/display: Remove t_srx_delay_us.

Unused. Convert the divisions into asserts on the divisor, to
debug why it is zero. The divide by zero is suspected of causing
kernel panics.

While I have no idea where the zero is coming from I think this
patch is a positive either way.

Cc: stable@vger.kernel.org
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c
drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c