]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915: Make RING_PDP relative to engine->mmio_base
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Apr 2019 12:38:31 +0000 (13:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Apr 2019 14:23:40 +0000 (15:23 +0100)
commit6d4257284a87ecbd0fd7eaed0d98531a009f579f
tree010d9639e35e6459e38dfbda81495de31797cfdd
parente57ce4b193a306ac8ccaf47c1cac3c49e6bd7190
drm/i915: Make RING_PDP relative to engine->mmio_base

The PDP registers are an oddity inside the set of context saved
registers in that they take the engine as a parameter to the macro and
not the mmio_base as the others do. Make it accept the engine->mmio_base
for consistency in programming the context registers.

add/remove: 0/0 grow/shrink: 2/1 up/down: 3/-32 (-29)
Function                                     old     new   delta
emit_ppgtt_update                            324     326      +2
capture                                     5102    5103      +1
execlists_init_reg_state.isra               1128    1096     -32

And similar savings later!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405123831.9724-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_lrc.c