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)
commit2a807341ed1074ab83638f2fab08dffaa373f6b8
tree50703fdf0e3603cd5bc2ef1304998e7cffb485db
parent25f1488bdbba63415239ff301fe61a8546140d9f
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