Skip to content

i915/display: split and constify vtable

Dave Airlie intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21drm/i915/pm: drop get_fifo_size vfunc.drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c+11 -111 reply
2/21drm/i915: make update_wm take a dev_priv.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c +1 more+13 -193 replies
3/21drm/i915/wm: move the update watermark wrapper to display side.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/intel_pm.c drivers/gpu/drm/i915/intel_pm.h+40 -403 replies
4/21drm/i915: split clock gating init from display vtabledrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c+32 -251 reply
5/21drm/i915: split watermark vfuncs from display vtable.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c+63 -551 reply
6/21drm/i915: split color functions from display vtabledrivers/gpu/drm/i915/display/intel_color.c drivers/gpu/drm/i915/i915_drv.h+54 -491 reply
7/21drm/i915: split audio functions from display vtabledrivers/gpu/drm/i915/display/intel_audio.c drivers/gpu/drm/i915/i915_drv.h+25 -181 reply
8/21drm/i915: split cdclk functions from display vtable.drivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_power.c +1 more+83 -771 reply
9/21drm/i915: split irq hotplug function from display vtabledrivers/gpu/drm/i915/display/intel_hotplug.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_irq.c+17 -101 reply
10/21drm/i915: split fdi link training from display vtable.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_fdi.c drivers/gpu/drm/i915/i915_drv.h+12 -71 reply
11/21drm/i915: split the dpll clock compute out from display vtable.drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dpll.c drivers/gpu/drm/i915/i915_drv.h+18 -122 replies
12/21drm/i915: constify fdi link training vtabledrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_fdi.c drivers/gpu/drm/i915/i915_drv.h+17 -52 replies
13/21drm/i915: constify irq function vtable.drivers/gpu/drm/i915/display/intel_hotplug.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_irq.c+23 -101 reply
14/21drm/i915: constify color function vtable.drivers/gpu/drm/i915/display/intel_color.c drivers/gpu/drm/i915/i915_drv.h+93 -471 reply
15/21drm/i915: constify the audio function vtabledrivers/gpu/drm/i915/display/intel_audio.c drivers/gpu/drm/i915/i915_drv.h+28 -171 reply
16/21drm/i915: constify the dpll clock vtabledrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dpll.c drivers/gpu/drm/i915/i915_drv.h+45 -121 reply
17/21drm/i915: constify the cdclk vtabledrivers/gpu/drm/i915/display/intel_cdclk.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_power.c +1 more+211 -1011 reply
18/21drm/i915: drop unused function ptr and comments.drivers/gpu/drm/i915/i915_drv.h+0 -71 reply
19/21drm/i915: constify display function vtabledrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/i915_drv.h+52 -311 reply
20/21drm/i915: constify clock gating init vtable.drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c+54 -252 replies
21/21drm/i915: constify display wm vtabledrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_pm.c+81 -511 reply

Reviews trailers per patch

19 of 21 patches have a Reviewed-by or Acked-by.

PatchJani Nikula
1/21R-b
2/21R-b
3/21
4/21R-b
5/21
6/21R-b
7/21R-b
8/21R-b
9/21R-b
10/21R-b
11/21R-b
12/21R-b
13/21R-b
14/21R-b
15/21R-b
16/21R-b
17/21R-b
18/21R-b
19/21R-b
20/21R-b
21/21R-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 [Intel-gfx] [PATCH 00/21] i915/display: split and constify vtable

This is orthogonal to my display ptr refactoring and should probably be applied first.

The display funcs vtable was a bit of mess, lots of intermixing of internal display functionality and interfaces to watermarks/irqs.

It's also considered not great security practice to leave writeable function pointers around for exploits to get into.

This series attempts to address both problems, first there are a few cleanups, then it splits the function table into multiple pieces. Some of the splits might be bikesheds but I think we should apply first and merge things later if there is good reason.

The second half converts all the vtables to static const structs, I've used macros in some of them to make it less messy, the cdclk one is probably the worst one.

Dave.