diff options
| author | Naladala Ramanaidu <ramanaidu.naladala@intel.com> | 2025-10-17 20:35:26 +0530 |
|---|---|---|
| committer | Suraj Kandpal <suraj.kandpal@intel.com> | 2025-10-29 13:58:28 +0530 |
| commit | bbbfa70dfe00e78115474467903e28d6ac05be1f (patch) | |
| tree | 468973ba31eb2868ca93bba68cb8d0535c910bf8 /tools/lib/python/kdoc | |
| parent | 938c6c9be35e438c9c6b77c08f2d5f20c212cf6e (diff) | |
drm/i915: Add fallback for CDCLK selection when min_cdclk is too high
In cases where the requested minimum CDCLK exceeds all available
values for the current reference clock, the CDCLK selection logic
previously returned 0. This could result coverity division or
modulo by zero issue.
Introduce a fallback mechanism that returns platform's max_cdclk_freq
instead of 0.
v2: Update safe fallback value to max cdclk. (Ville)
v3: Update commit messgae (Mika)
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20251017150526.781715-1-ramanaidu.naladala@intel.com
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
