Skip to content

IS_GENx and related code shrinkage

Tvrtko Ursulin intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/i915: Make IS_GENx macros work on a maskdrivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_uncore.c+14 -100 replies
1/5drm/i915: Make IS_GENx macros work on a maskdrivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_uncore.c+14 -100 replies
2/5drm/i915: Promote IS_BROADWELL to a simple macrodrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h+6 -10 replies
2/5drm/i915: Promote IS_BROADWELL to a simple macrodrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h+6 -10 replies
3/5drm/i915: Replace "INTEL_INFO->gen == x" checks with IS_GENxdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.c +12 more+22 -220 replies
3/5drm/i915: Replace "INTEL_INFO->gen == x" checks with IS_GENxdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.h +9 more+16 -160 replies
4/5drm/i915: Introduce INTEL_GEN_RANGE macrodrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_fbc.c drivers/gpu/drm/i915/intel_ringbuffer.c+6 -50 replies
4/5drm/i915: Introduce INTEL_GEN_RANGE macrodrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_fbc.c drivers/gpu/drm/i915/intel_ringbuffer.c+6 -50 replies
5/5drm/i915: Do not use a bitfield for INTEL_INFO->num_pipesdrivers/gpu/drm/i915/i915_drv.h+1 -10 replies
5/5drm/i915: Do not use a bitfield for INTEL_INFO->num_pipesdrivers/gpu/drm/i915/i915_drv.h+1 -10 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChris Wilson
SeriesR-b
1/5R-b
1/5R-b
2/5R-b
2/5R-b
3/5R-b
3/5R-b
4/5R-b
4/5R-b
5/5R-b
5/5R-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 [PATCH 0/5] IS_GENx and related code shrinkage

From: Tvrtko Ursulin <[email protected]>

Our huge amount of "what hardware I am" checks during runtime is somewhat distasteful but to deeply ingrained to be easily fixable.

Instead we can make them more efficient by spotting a few easy ways of helping the compiler optimize some common idioms.

Five patches below save approx. 1.5kB of text in my test build for not a lot of source code churn.

Tvrtko Ursulin (5):
drm/i915: Make IS_GENx macros work on a mask drm/i915: Promote IS_BROADWELL to a simple macro drm/i915: Replace "INTEL_INFO->gen == x" checks with IS_GENx drm/i915: Introduce INTEL_GEN_RANGE macro drm/i915: Do not use a bitfield for INTEL_INFO->num_pipes

 drivers/gpu/drm/i915/i915_debugfs.c     |  4 ++--
 drivers/gpu/drm/i915/i915_dma.c         |  7 +++++--
 drivers/gpu/drm/i915/i915_drv.c         |  6 +++++-
 drivers/gpu/drm/i915/i915_drv.h         | 25 ++++++++++++++-----------
 drivers/gpu/drm/i915/i915_gem.c         |  2 +-
 drivers/gpu/drm/i915/i915_gem_gtt.c     |  2 +-
 drivers/gpu/drm/i915/i915_gem_stolen.c  |  2 +-
 drivers/gpu/drm/i915/i915_gem_tiling.c  |  2 +-
 drivers/gpu/drm/i915/i915_gpu_error.c   |  2 +-
 drivers/gpu/drm/i915/i915_irq.c         |  4 ++--
 drivers/gpu/drm/i915/intel_display.c    |  2 +-
 drivers/gpu/drm/i915/intel_fbc.c        |  2 +-
 drivers/gpu/drm/i915/intel_lrc.c        |  4 ++--
 drivers/gpu/drm/i915/intel_lvds.c       |  2 +-
 drivers/gpu/drm/i915/intel_pm.c         |  4 ++--
 drivers/gpu/drm/i915/intel_ringbuffer.c | 14 +++++++-------
 drivers/gpu/drm/i915/intel_uncore.c     |  4 ++--
 17 files changed, 49 insertions(+), 39 deletions(-)
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx