]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Mark intel_wakeref_get() as a sleeper
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 13:05:28 +0000 (13:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 13:22:04 +0000 (13:22 +0000)
commit56ae57a7bad96a1a4fb0e7b6789ec83ff6161b2b
treec7d0ac5b8f1c1f5bf88c4cafa36262ce8ab08472
parent04ec77c2ac9a4c69f475ffd7f858d45c009cebd0
drm/i915: Mark intel_wakeref_get() as a sleeper

Assume that intel_wakeref_get() may take the mutex, and perform other
sleeping actions in the course of its callbacks and so use might_sleep()
to ensure that all callers abide. Anything that cannot sleep has to use
e.g. intel_wakeref_get_if_active() to guarantee its avoidance of the
non-atomic paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121130528.309474-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_pm.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/intel_wakeref.h