Skip to content

drm/i915: Eliminate foo_state->state pointer usage

Ville Syrjala intel-gfx intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/i915/ddi: Pass the atomic state to intel_ddi_port_sync_transcoders()drivers/gpu/drm/i915/display/intel_ddi.c+3 -40 replies
2/9drm/i915/mst: Pass the full atomic state to intel_dp_mtp_tu_compute_config()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c +1 more+77 -490 replies
3/9drm/i915/hdmi: Pass the full atomic state to intel_hdmi_bpc_possible()drivers/gpu/drm/i915/display/g4x_hdmi.c drivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_dp.c +4 more+71 -510 replies
4/9drm/i915/fdi: Pass the full atomic state to ilk_check_fdi_lanes()drivers/gpu/drm/i915/display/intel_fdi.c+11 -110 replies
5/9drm/i915/hdcp: Pass the full atomic state to intel_hdcp_atomic_check()drivers/gpu/drm/i915/display/intel_atomic.c drivers/gpu/drm/i915/display/intel_hdcp.c drivers/gpu/drm/i915/display/intel_hdcp.h+7 -50 replies
6/9drm/i915/global_state: Pass the full atomic state into intel_atomic_{lock, serialize}_global_state()drivers/gpu/drm/i915/display/intel_bw.c drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_dbuf_bw.c +4 more+41 -350 replies
7/9drm/i915/global_state: Store the display in the global object and use itdrivers/gpu/drm/i915/display/intel_global_state.c drivers/gpu/drm/i915/display/intel_global_state.h drivers/gpu/drm/i915/display/skl_watermark.c+4 -20 replies
8/9drm/i915/global_state: Remove the obj_state->state footgundrivers/gpu/drm/i915/display/intel_global_state.c drivers/gpu/drm/i915/display/intel_global_state.h+0 -50 replies
9/9drm/i915/sdvo: Add a FIXME about the connector_state->state footgundrivers/gpu/drm/i915/display/intel_sdvo.c+4 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9] drm/i915: Eliminate foo_state->state pointer usage

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

The foo_state->state pointer is dangerous. Stop using it as much as possible. I think we're down to one use after this, but eliminating that one requires drm subsystem wide changes.

Ville Syrjälä (9):
drm/i915/ddi: Pass the atomic state to
intel_ddi_port_sync_transcoders()
drm/i915/mst: Pass the full atomic state to
intel_dp_mtp_tu_compute_config()
drm/i915/hdmi: Pass the full atomic state to intel_hdmi_bpc_possible() drm/i915/fdi: Pass the full atomic state to ilk_check_fdi_lanes() drm/i915/hdcp: Pass the full atomic state to intel_hdcp_atomic_check() drm/i915/global_state: Pass the full atomic state into
intel_atomic_{lock,serialize}_global_state()
drm/i915/global_state: Store the display in the global object and use
it
drm/i915/global_state: Remove the obj_state->state footgun drm/i915/sdvo: Add a FIXME about the connector_state->state footgun

 drivers/gpu/drm/i915/display/g4x_hdmi.c       |   2 +-
 drivers/gpu/drm/i915/display/intel_atomic.c   |   2 +-
 drivers/gpu/drm/i915/display/intel_bw.c       |  25 ++--
 drivers/gpu/drm/i915/display/intel_cdclk.c    |  18 +--
 drivers/gpu/drm/i915/display/intel_dbuf_bw.c  |   2 +-
 drivers/gpu/drm/i915/display/intel_ddi.c      |   9 +-
 drivers/gpu/drm/i915/display/intel_dp.c       | 109 +++++++++++-------
 drivers/gpu/drm/i915/display/intel_dp.h       |   6 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |  63 +++++-----
 drivers/gpu/drm/i915/display/intel_dp_mst.h   |   3 +-
 drivers/gpu/drm/i915/display/intel_fdi.c      |  22 ++--
 .../gpu/drm/i915/display/intel_global_state.c |  14 +--
 .../gpu/drm/i915/display/intel_global_state.h |   8 +-
 drivers/gpu/drm/i915/display/intel_hdcp.c     |   6 +-
 drivers/gpu/drm/i915/display/intel_hdcp.h     |   4 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     |  56 +++++----
 drivers/gpu/drm/i915/display/intel_hdmi.h     |   7 +-
 drivers/gpu/drm/i915/display/intel_pmdemand.c |   4 +-
 drivers/gpu/drm/i915/display/intel_sdvo.c     |   4 +
 drivers/gpu/drm/i915/display/skl_watermark.c  |  16 +--
 20 files changed, 218 insertions(+), 162 deletions(-)
Signature · 1 line
2.56.1