]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/bw: Fix num_planes handling on TGL+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 May 2026 20:03:37 +0000 (23:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 May 2026 03:44:12 +0000 (06:44 +0300)
commit85bfe1cec2d1fb67db2bd8603df391466f4ae29f
treea069898966d90841cb61bc29cf4978335c0d4a78
parent771394b4fb6d7d8be5a90228cea53affd20617f5
drm/i915/bw: Fix num_planes handling on TGL+

The TGL+ bw code has an off by one error on the num_planes
calculation, and tgl_max_bw_index() incorrectly bumps
the num_planes to 1 from 0.

That approach made sense on ICL where num_planes is more or
less a minimum number of planes to consider for the group,
but on TGL+ num_planes really is a maximum number of planes,
so these adjustments no longer make any sense there.

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