mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 04:46:30 -04:00
drm/i915/bw: Use icl_qgv_bw()
Replace a hand rolled copy of icl_qgv_bw() with the real thing. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260528103458.18069-11-ville.syrjala@linux.intel.com Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
This commit is contained in:
@@ -1106,14 +1106,8 @@ static int mtl_find_qgv_points(struct intel_display *display,
|
||||
* offered per plane group
|
||||
*/
|
||||
for (i = 0; i < num_qgv_points; i++) {
|
||||
unsigned int bw_index =
|
||||
tgl_max_bw_index(display, num_active_planes, i);
|
||||
unsigned int max_data_rate;
|
||||
|
||||
if (bw_index >= ARRAY_SIZE(display->bw.max))
|
||||
continue;
|
||||
|
||||
max_data_rate = display->bw.max[bw_index].deratedbw[i];
|
||||
unsigned int max_data_rate =
|
||||
icl_qgv_bw(display, num_active_planes, i);
|
||||
|
||||
if (max_data_rate < data_rate)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user