]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4aa628edb489791f19fdbc73763a8f724e803862
tree81c90881b4f3d92c3f84d3726c54f1eba32c8b27
parent73ecf6e69a5dc32163668142ff2731329a53af4c
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