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>
Thu, 27 Jan 2022 20:47:34 +0000 (15:47 -0500)
commitb6dca949b88ee69561fc4ed853ab7a2ae13d842f
tree383e0d5a8346ab6ca65772bc45715a4dd79c715e
parent1790b649b01ba7e44af7c08ffcfc0eaa9d4f5ac6
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.

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/dml/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