]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Stop holding onto the pinned_default_state
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 May 2020 18:07:45 +0000 (19:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 May 2020 20:12:33 +0000 (21:12 +0100)
commit07d2c9b61eca7e4558de66c942dcce8890534dce
tree8856ab0b0cc9b9ce22f3f3d69c6e58ac0e6dfd20
parent7ed83e127aec7edf234a2c5726b96a642d1ab14c
drm/i915/gt: Stop holding onto the pinned_default_state

As we only restore the default context state upon banning a context, we
only need enough of the state to run the ring and nothing more. That is
we only need our bare protocontext.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200504180745.15645-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_pm.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_context.c
drivers/gpu/drm/i915/gt/selftest_lrc.c