]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make the stale cached active node available for any timeline
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jul 2020 08:50:13 +0000 (09:50 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 7 Sep 2020 10:18:55 +0000 (13:18 +0300)
commit952b6794044113a98c686680be8fcfbe4393c7e9
treef13793280f4263a919e9683d90b478ee2687985e
parentffdc204f8d6914b39301a6ae5f7903ff732a916e
drm/i915: Make the stale cached active node available for any timeline

Rather than require the next timeline after idling to match the MRU
before idling, reset the index on the node and allow it to match the
first request. However, this requires cmpxchg(u64) and so is not trivial
on 32b, so for compatibility we just fallback to keeping the cached node
pointing to the MRU timeline.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Thomas Hellström <thomas.hellstrom@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200731085015.32368-5-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_active.c