diff options
| author | Dillon Varone <dillon.varone@amd.com> | 2025-07-10 20:57:37 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-07-28 16:24:05 -0400 |
| commit | 3556dac8289456bc8b28670546b969f543967856 (patch) | |
| tree | 29cba8405c807a6de2c2e68c20c3bacd22ccd4a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Merge tag 'nova-next-v6.17-2025-07-18' of https://gitlab.freedesktop.org/drm/... (diff) | |
| download | linux-3556dac8289456bc8b28670546b969f543967856.tar.gz linux-3556dac8289456bc8b28670546b969f543967856.zip | |
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
