]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Lock the request while validating it during promotion
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 10:35:46 +0000 (10:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 12:14:45 +0000 (12:14 +0000)
commit04ec77c2ac9a4c69f475ffd7f858d45c009cebd0
tree338abef8d2d085dedf84bb4a6816c82ea1e6c770
parent3a67efd19f715f9c701dddcca97bb41f260f76fb
drm/i915/execlists: Lock the request while validating it during promotion

Since the request is already on the HW as we perform its validation, it
and even its subsequent barrier may be concurrently retired before we
process the assertions. If it is retired already and so off the HW, our
assertions become void and we need to ignore them.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112363
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121103546.146487-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c