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)
commitc95d31c3df1b9ff29bcd85c47324e16d430bbd5a
tree338abef8d2d085dedf84bb4a6816c82ea1e6c770
parent090a82e9166fbefdb8d371431d4a7f514b3acb86
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