]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Avoid with_intel_runtime_pm within spinlock
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Sat, 20 Nov 2021 01:42:01 +0000 (17:42 -0800)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 22 Nov 2021 09:16:32 +0000 (09:16 +0000)
commit18281498d3ee00a7b48a347832d5d40ffff919fc
treebf71bc3c71e16992bb70e5365154a1a40c2ef229
parentdcab18505192d06a1803e458f7c6243ebba348ad
drm/i915/pmu: Avoid with_intel_runtime_pm within spinlock

When guc timestamp ping worker runs it takes the spinlock and calls
with_intel_runtime_pm.  Since with_intel_runtime_pm may sleep, move the
spinlock inside __update_guc_busyness_stats.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211120014201.26480-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c