]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/bw: Fix 'deinterleave' rounding direction
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 May 2026 20:03:40 +0000 (23:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 May 2026 03:50:21 +0000 (06:50 +0300)
commit67309d7fbe2084d5470e46754be9e4ff26068d34
tree609d2dfcb46da6559cff58c417ffa528ce6bc99a
parent615b23a7d2a8e75a48ed04c6ff129809a817cf3a
drm/i915/bw: Fix 'deinterleave' rounding direction

For some reason we're rounding up when calculating the deinterleave
value. But the spec says we should round down. Fix it.

But I suppose this doesn't actually matter since the deinterleave
values should always be power of two. The only exception is therefore
the deinterleave==1 case, which gets handled by the max(..., 1).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260522200346.17377-5-ville.syrjala@linux.intel.com
Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c