Skip to content

drm/i915/display: Reduce global state funcs boilerplate

Gustavo Sousa intel-gfx intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915/display: Do not assume zero offset when duplicating global statedrivers/gpu/drm/i915/display/intel_bw.c drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_pmdemand.c +1 more+8 -83 replies
2/3drm/i915/display: Add infra to reduce global state funcs boilerplatedrivers/gpu/drm/i915/display/intel_global_state.c drivers/gpu/drm/i915/display/intel_global_state.h+54 -28 replies
3/3drm/i915/display: Use INTEL_GLOBAL_STATE_DEFAULTSdrivers/gpu/drm/i915/display/intel_bw.c drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_pmdemand.c +1 more+10 -702 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJonathan Cavitt
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] drm/i915/display: Reduce global state funcs boilerplate

If we look at how the members of struct intel_global_state_funcs, we see a common pattern repeating itself. We can reduce such boilerplate by moving the common implementation to the generic global state code. This series proposes that.

Gustavo Sousa (3):
drm/i915/display: Do not assume zero offset when duplicating global
state
drm/i915/display: Add infra to reduce global state funcs boilerplate drm/i915/display: Use INTEL_GLOBAL_STATE_DEFAULTS

 drivers/gpu/drm/i915/display/intel_bw.c       | 21 +---------
 drivers/gpu/drm/i915/display/intel_cdclk.c    | 16 +++-----
 .../gpu/drm/i915/display/intel_global_state.c | 41 ++++++++++++++++++-
 .../gpu/drm/i915/display/intel_global_state.h | 15 +++++++
 drivers/gpu/drm/i915/display/intel_pmdemand.c | 21 +---------
 drivers/gpu/drm/i915/display/skl_watermark.c  | 20 +--------
 6 files changed, 63 insertions(+), 71 deletions(-)
Signature · 1 line
2.47.1