]> git.baikalelectronics.ru Git - kernel.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)
commita58d73c0e0b4426e6ab055d61b6eb0d100014771
tree010d9639e35e6459e38dfbda81495de31797cfdd
parent2fe062caa43628240b05bd32cf6996d90abd0b73
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