Skip to content

RFC refactor display structs a little bit

Dave Airlie intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/i915: move display funcs into a display struct.drivers/gpu/drm/i915/display/intel_audio.c drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_color.c +8 more+253 -2496 replies
2/10drm/i915/display: move cdclk info into displaydrivers/gpu/drm/i915/display/intel_audio.c drivers/gpu/drm/i915/display/intel_backlight.c drivers/gpu/drm/i915/display/intel_cdclk.c +10 more+136 -1350 replies
3/10drm/i915: move more pll/clocks into display struct.drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_crt.c drivers/gpu/drm/i915/display/intel_display.c +14 more+45 -440 replies
4/10drm/i915/display: move gmbus into display structdrivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_dp_aux.c drivers/gpu/drm/i915/display/intel_gmbus.c +3 more+47 -480 replies
5/10drm/i915/display: move intel_dmc into display structdrivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_display_power.c drivers/gpu/drm/i915/display/intel_dmc.c +3 more+47 -470 replies
6/10drm/i915/display: move mipi_mmio_base to display structdrivers/gpu/drm/i915/display/vlv_dsi.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_reg.h+98 -980 replies
7/10drm/i915/display: move pps_mmio_base to display structdrivers/gpu/drm/i915/display/intel_pps.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_reg.h+6 -60 replies
8/10drm/i915/drrs: just use some local vars to simplify drrs codedrivers/gpu/drm/i915/display/intel_drrs.c+49 -410 replies
9/10drm/i915/display: move drrs into display structdrivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_drrs.c drivers/gpu/drm/i915/display/intel_psr.c +1 more+19 -190 replies
10/10drm/i915/display: move fbc into display structdrivers/gpu/drm/i915/display/i9xx_plane.c drivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_fbc.c +2 more+57 -570 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] [RFC PATCH 00/10] refactor display structs a little bit

I had reason to look at i915 display again recently, and how tied to the core driver the whole thing is.

I think it at least could benefit from starting to move display specific things out into a separate display structure. This could later be made optional or at least separated out in better ways using internal APIs perhaps.

I've pretty much picked some random stuff to demonstrate, and there should be no functional change with this, and of course there are plenty of things left to move later.

Dave.