]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Mark contexts as lost during freeing of mock device
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Jul 2017 13:59:57 +0000 (14:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Jul 2017 18:15:12 +0000 (19:15 +0100)
commit2bda5e0b2855bf8a993a63a2aa4d1786c3c8d21b
tree613c9e5b5cb94e4e9eab6caa70dfa0801500f7c2
parent322e4be1036e60895d8bcc04612b6a15f6d19e48
drm/i915/selftests: Mark contexts as lost during freeing of mock device

We need to unpin the last retired context early in the shutdown sequence
so that its RCU free is done before we try to free the context ida. I
included this in a later patch ("drm/i915: Keep a recent cache of freed
contexts objects for reuse") and so missed that the selftests were broken
in the meantime.

Reported-by: Matthew Auld <matthew.auld@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101627
Fixes: 7cfbc7469cf9 ("drm/i915: Allow contexts to be unreferenced locklessly")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170719135957.14603-1-chris@chris-wilson.co.uk
Tested-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/selftests/mock_gem_device.c