OSDN Git Service

drm/i915: Defer kicking the tasklet until all rescheduling is complete
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 11:48:52 +0000 (12:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 31 Mar 2020 20:42:12 +0000 (21:42 +0100)
commit86dbf52d26cce688ed45d8080f337aa42913ceaa
tree7191e25f79479d89089d90de0837b4e295249254
parent9f7ffa297978c63ea55181899de7afaa9b68331b
drm/i915: Defer kicking the tasklet until all rescheduling is complete

Since we may kick more than engine, and may kick each one a couple of
times, coalesce the tasklet execution to the end. This also ensures that
we have the chance to run the tasklet immediately after priority
bumping.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200331114852.11583-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.c