Skip to content

drm/i915: Clean up the plane data_rate stuff

Ville Syrjala intel-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13drm/i915: Drop pointless total_data_rate argumentdrivers/gpu/drm/i915/intel_pm.c+0 -20 replies
2/13drm/i915: Drop pointless dev_priv argumentdrivers/gpu/drm/i915/intel_pm.c+5 -60 replies
3/13drm/i915: Extract skl_ddb_entry_init()drivers/gpu/drm/i915/intel_pm.c+25 -230 replies
4/13drm/i915: Introduce skl_plane_ddb_iterdrivers/gpu/drm/i915/intel_pm.c+47 -470 replies
5/13drm/i915: Extract skl_allocate_plane_ddb()drivers/gpu/drm/i915/intel_pm.c+21 -140 replies
6/13drm/i915: Extract skl_crtc_calc_dbuf_bw()drivers/gpu/drm/i915/display/intel_bw.c+44 -370 replies
7/13drm/i915: Tweak plane ddb allocation trackingdrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_bw.c drivers/gpu/drm/i915/display/intel_display.c +3 more+71 -870 replies
8/13drm/i915: Split plane data_rate into data_rate+data_rate_ydrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_atomic_plane.h drivers/gpu/drm/i915/display/intel_bw.c +2 more+42 -380 replies
9/13drm/i915: Extract intel_adjusted_rate()drivers/gpu/drm/i915/display/intel_atomic_plane.c+19 -80 replies
10/13drm/i915: Reuse intel_adjusted_rate() for pfit pixel rate adjustmentdrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_atomic_plane.h drivers/gpu/drm/i915/display/intel_display.c+13 -200 replies
11/13drm/i915: Pre-calculate plane relative data ratedrivers/gpu/drm/i915/display/intel_atomic_plane.c drivers/gpu/drm/i915/display/intel_atomic_plane.h drivers/gpu/drm/i915/display/intel_display.c +2 more+89 -2040 replies
12/13drm/i915: Remove total[] and uv_total[] from ddb allocationdrivers/gpu/drm/i915/intel_pm.c+51 -540 replies
13/13drm/i915: s/plane_res_b/blocks/ etc.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/intel_pm.c+116 -1200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Intel-gfx] [PATCH 00/13] drm/i915: Clean up the plane data_rate stuff

From: Ville Syrjälä <[email protected]>

Let's sort out the plane data_rate stuff properly by accounting each color plane independently. And we reuse the same code and approach for the relative data rate (which is used for plane ddb allocation).

Currently it's not even obvious if the relative data rate is really correct in all the cases. The normal data rate stuff is much more obvious with the way it's getting computed ahead of time. Also reusing the same code for both means we at least have just the one set of bugs to fix.

I was also pondering potentially replacing the relative data rate entirely with the real data rate, but it's not obvious what effect that would have to the watermarks. Smaller planes would certainly get a bigger proportion of ddb allocated to them, which might result in worse power consumption I guess. But at least with data_rate and rel_data_rate being handled almost identically we could easily change the strategy at any time.

Ville Syrjälä (13):
drm/i915: Drop pointless total_data_rate argument drm/i915: Drop pointless dev_priv argument
drm/i915: Extract skl_ddb_entry_init()
drm/i915: Introduce skl_plane_ddb_iter
drm/i915: Extract skl_allocate_plane_ddb()
drm/i915: Extract skl_crtc_calc_dbuf_bw()
drm/i915: Tweak plane ddb allocation tracking
drm/i915: Split plane data_rate into data_rate+data_rate_y drm/i915: Extract intel_adjusted_rate()
drm/i915: Reuse intel_adjusted_rate() for pfit pixel rate adjustment drm/i915: Pre-calculate plane relative data rate drm/i915: Remove total[] and uv_total[] from ddb allocation drm/i915: s/plane_res_b/blocks/ etc.

 .../gpu/drm/i915/display/intel_atomic_plane.c | 122 ++--
 .../gpu/drm/i915/display/intel_atomic_plane.h |   8 +-
 drivers/gpu/drm/i915/display/intel_bw.c       |  81 +--
 drivers/gpu/drm/i915/display/intel_display.c  |  93 ++-
 .../drm/i915/display/intel_display_debugfs.c  |   4 +-
 .../drm/i915/display/intel_display_types.h    |  22 +-
 drivers/gpu/drm/i915/intel_pm.c               | 629 +++++++-----------
 7 files changed, 421 insertions(+), 538 deletions(-)
Signature · 6 lines
2.26.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx