diff options
| author | Dillon Varone <[email protected]> | 2025-07-11 00:57:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-28 20:24:05 +0000 |
| 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 | kernel-3556dac8289456bc8b28670546b969f543967856.tar.gz kernel-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 <[email protected]>
Signed-off-by: Dillon Varone <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
