diff options
author | Dillon Varone <dillon.varone@amd.com> | 2025-07-11 03:57:37 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-07-28 23:24:05 +0300 |
commit | 3556dac8289456bc8b28670546b969f543967856 (patch) | |
tree | 29cba8405c807a6de2c2e68c20c3bacd22ccd4a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | ba0f4c4c0f9d0f90300578fc8d081f43be281a71 (diff) | |
download | linux-3556dac8289456bc8b28670546b969f543967856.tar.xz |
drm/amd/display: Fix divide by zero when calculating min ODM factor
[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
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions