mirror of https://github.com/torvalds/linux.git
[WHY&HOW] If the debug option is set to disable_dsc the max slice width and/or dispclk can be zero. This causes a divide by zero when calculating the min ODM combine factor. Add a check to ensure they are valid first. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org |
||
|---|---|---|
| .. | ||
| dcn20 | ||
| dcn35 | ||
| dcn401 | ||
| Makefile | ||
| dc_dsc.c | ||
| dsc.h | ||
| dscc_types.h | ||
| rc_calc.c | ||
| rc_calc.h | ||
| rc_calc_dpi.c | ||