i915/display: split and constify vtable (v2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest23 patches 0 repliesNew
Changes in v1 from the cover letter
This is orthogonal to my display ptr refactoring and should probably be applied first.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | drm/i915/pm: drop get_fifo_size vfunc.drivers/ drivers/ | +11 | 0 replies | |
| 2/23 | drm/i915: make update_wm take a dev_priv.drivers/ drivers/ drivers/ +1 more | +13 | 0 replies | |
| 3/23 | drm/i915/wm: provide wrappers around watermark vfuncs callsdrivers/ drivers/ drivers/ | +123 | 0 replies | |
| 4/23 | drm/i915: add wrappers around cdclk vtable funcs.drivers/ drivers/ drivers/ +1 more | +44 | 0 replies | |
| 5/23 | drm/i915/display: add intel_fdi_link_train wrapper.drivers/ drivers/ drivers/ | +11 | 0 replies | |
| 6/23 | drm/i915: split clock gating init from display vtabledrivers/ drivers/ | +32 | 0 replies | |
| 7/23 | drm/i915: split watermark vfuncs from display vtable.drivers/ drivers/ drivers/ | +54 | 0 replies | |
| 8/23 | drm/i915: split color functions from display vtabledrivers/ drivers/ | +54 | 0 replies | |
| 9/23 | drm/i915: split audio functions from display vtabledrivers/ drivers/ | +25 | 0 replies | |
| 10/23 | drm/i915: split cdclk functions from display vtable.drivers/ drivers/ | +78 | 0 replies | |
| 11/23 | drm/i915: split irq hotplug function from display vtabledrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 12/23 | drm/i915: split fdi link training from display vtable.drivers/ drivers/ | +12 | 0 replies | |
| 13/23 | drm/i915: split the dpll clock compute out from display vtable.drivers/ drivers/ drivers/ | +18 | 0 replies | |
| 14/23 | drm/i915: constify fdi link training vtabledrivers/ drivers/ | +17 | 0 replies | |
| 15/23 | drm/i915: constify hotplug function vtable.drivers/ drivers/ drivers/ | +24 | 0 replies | |
| 16/23 | drm/i915: constify color function vtable.drivers/ drivers/ | +93 | 0 replies | |
| 17/23 | drm/i915: constify the audio function vtabledrivers/ drivers/ | +28 | 0 replies | |
| 18/23 | drm/i915: constify the dpll clock vtabledrivers/ drivers/ drivers/ | +44 | 0 replies | |
| 19/23 | drm/i915: constify the cdclk vtabledrivers/ drivers/ | +206 | 0 replies | |
| 20/23 | drm/i915: drop unused function ptr and comments.drivers/ | +0 | 0 replies | |
| 21/23 | drm/i915: constify display function vtabledrivers/ drivers/ | +52 | 0 replies | |
| 22/23 | drm/i915: constify clock gating init vtable.drivers/ drivers/ | +55 | 0 replies | |
| 23/23 | drm/i915: constify display wm vtabledrivers/ drivers/ drivers/ | +75 | 0 replies |
Reviews trailers per patch
19 of 23 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Intel-gfx] [PATCH 00/23] i915/display: split and constify vtable (v2)
Details below, I've taken all the review feedback (thanks Jani). I added 3 patches moving to wrappers before refactoring, and one other patch is unreviewed (07) but the main comment was wanting the wrappers.
Jani if you are happy with the final 4 patches can you land this series, I don't think I have drm-intel commit rights.
v1:
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.
v2:
Added some patches adding wrappers around things before refactoring them as suggested by Jani.
Fixed up all struct names as suggested by Jani.
Added s-o-b lines
Added commit msgs.
Dave.