drm/i915/gt: Taint the reset mutex with the shrinker
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Dec 2020 14:16:26 +0000 (14:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 30 Dec 2020 13:36:54 +0000 (13:36 +0000)
commitcecb2af42cb0ebbd5758cad222b39c2363cde682
tree81c90881b4f3d92c3f84d3726c54f1eba32c8b27
parentcc1557cadfd4d3894aab910250716b74a141fcfe
drm/i915/gt: Taint the reset mutex with the shrinker

Declare that, under extreme circumstances, the shrinker may need to wait
upon a request, in which case reset must not itself deadlock in order to
ensure forward progress of the driver. That is since the shrinker may
depend upon a reset, any reset cannot touch the shrinker.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201229141626.4773-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_reset.c