OSDN Git Service

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)
commit977253df6433f85d5e2cb3ab0f8eb4127f8173dd
tree8856ab0b0cc9b9ce22f3f3d69c6e58ac0e6dfd20
parentb68be5c623cdd62b9a8b99eb1443ba9cba812d6d
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