Forcewake binary search & code shrink
Status from this message: Pushed to dinq, first one from the new office. :)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest14 patches 12 repliesApplied
- v113 patches 17 repliesSuperseded
Changes in v2 from the cover letter
* Updated cover letter given feedback.
* Some rework for review comments.
* New patch in the series (14) to inline the binary search.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | drm/i915: Remove redundant hsw_write* mmio functionsdrivers/ | +1 | 0 replies | |
| 2/14 | drm/i915: Keep track of active forcewake domains in a bitmaskdrivers/ drivers/ | +25 | 0 replies | |
| 3/14 | drm/i915: Do not inline forcewake taking in mmio accessorsdrivers/ | +14 | 0 replies | |
| 4/14 | drm/i915: Data driven register to forcewake domains lookupdrivers/ | +103 | 2 replies | |
| 5/14 | drm/i915: Sort forcewake mapping tablesdrivers/ | +43 | 1 reply | |
| 5/14 | drm/i915: Sort forcewake mapping tablesdrivers/ | +43 | 0 replies | |
| 6/14 | drm/i915: Use binary search when looking up forcewake domainsdrivers/ | +19 | 0 replies | |
| 7/14 | drm/i915: Eliminate Gen9 special casedrivers/ | +21 | 0 replies | |
| 8/14 | drm/i915: Store the active forcewake range table pointerdrivers/ drivers/ | +46 | 0 replies | |
| 8/14 | drm/i915: Store the active forcewake range table pointerdrivers/ drivers/ | +44 | 0 replies | |
| 9/14 | drm/i915: Remove identical macrosdrivers/ | +20 | 0 replies | |
| 10/14 | drm/i915: Remove identical mmio read functionsdrivers/ | +10 | 0 replies | |
| 11/14 | drm/i915: Remove identical write mmmio functionsdrivers/ | +19 | 0 replies | |
| 12/14 | drm/i915: Sort the shadow register tabledrivers/ | +25 | 0 replies | |
| 12/14 | drm/i915: Sort the shadow register tabledrivers/ | +26 | 0 replies | |
| 13/14 | drm/i915: Use binary search when looking for shadowed registersdrivers/ | +21 | 3 replies | |
| 14/14 | drm/i915: Inline binary searchdrivers/ | +31 | 0 replies |
Reviews trailers per patch
12 of 17 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Joonas Lahtinen | Chris Wilson |
|---|---|---|
| Series | R-b | |
| 1/14 | R-b | R-b |
| 2/14 | R-b | |
| 3/14 | R-b | |
| 4/14 | R-b | |
| 5/14 | R-b | |
| 5/14 | R-b | |
| 6/14 | ||
| 7/14 | ||
| 8/14 | R-b | |
| 8/14 | R-b | |
| 9/14 | ||
| 10/14 | R-b | |
| 11/14 | ||
| 12/14 | R-b R-b | R-b |
| 12/14 | R-b R-b | R-b |
| 13/14 | R-b | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/14] Forcewake binary search & code shrink
From: Tvrtko Ursulin <[email protected]>
Motivation was to replace linear search comparison if-else ladders in MMIO accessors with a data driven approach.
These lookups are needed to determine to correct forcewake domains to take when reading and writing to MMIO registers.
Going data driven and keeping the tables sorted enabled binary search to be used. Followed by gradual extraction of commonality between existing functions, accompanying code reduction, and the end result is around 15KiB less code generated and also some saving in the source code lines.
v2:
* Updated cover letter given feedback.
* Some rework for review comments.
* New patch in the series (14) to inline the binary search.
Tvrtko Ursulin (14):
drm/i915: Remove redundant hsw_write* mmio functions drm/i915: Keep track of active forcewake domains in a bitmask drm/i915: Do not inline forcewake taking in mmio accessors drm/i915: Data driven register to forcewake domains lookup drm/i915: Sort forcewake mapping tables
drm/i915: Use binary search when looking up forcewake domains drm/i915: Eliminate Gen9 special case
drm/i915: Store the active forcewake range table pointer drm/i915: Remove identical macros
drm/i915: Remove identical mmio read functions drm/i915: Remove identical write mmmio functions drm/i915: Sort the shadow register table
drm/i915: Use binary search when looking for shadowed registers drm/i915: Inline binary search
drivers/gpu/drm/i915/i915_drv.h | 12 + drivers/gpu/drm/i915/intel_uncore.c | 600 ++++++++++++++++-------------------- 2 files changed, 276 insertions(+), 336 deletions(-)
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx