]> 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)
commit751c7bf8a1c62507e64d8a39c422285f958534c2
treebf71bc3c71e16992bb70e5365154a1a40c2ef229
parentaa1004457a0fdc95a165f2aedfc6cd8e3826db0e
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