]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Tweak the read latency fixup code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Sep 2025 19:29:50 +0000 (22:29 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Sep 2025 15:09:30 +0000 (18:09 +0300)
commit07816e8117a2ecb6a126264f3c16ca02668ca2be
tree4dbd228f9fc687d66e90d5ba6472856ebeecca63
parent8ebb8e1a0ef84bc672105d07b8d9fd3ebbda6427
drm/i915: Tweak the read latency fixup code

If WM0 latency is zero we need to bump it (and the WM1+ latencies)
but a fixed amount. But any WM1+ level with zero latency must
not be touched since that indicates that corresponding WM level
isn't supported.

Currently the loop doing that adjustment does work, but only because
the previous loop modified the num_levels used as the loop boundary.
This all seems a bit too fragile. Remove the num_levels adjustment
and instead adjust the read latency loop to abort when it encounters
a zero latency value.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250919193000.17665-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/skl_watermark.c