]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: move intel_runtime_pm_get out of spin_lock in stop_schedule
authorHang Yuan <hang.yuan@linux.intel.com>
Wed, 29 Aug 2018 09:15:56 +0000 (17:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 30 Aug 2018 04:54:32 +0000 (12:54 +0800)
commit76540c3353a7b2ac1016c63aa2b5877488c556a8
tree203bdb7cd72ab203716a90b6bc8f8c7fa71f351e
parent0bcfdb6ed1a036b6b91d7ddcaf8d62cf157c2122
drm/i915/gvt: move intel_runtime_pm_get out of spin_lock in stop_schedule

pm_runtime_get_sync in intel_runtime_pm_get might sleep if i915
device is not active. When stop vgpu schedule, the device may be
inactive. So need to move runtime_pm_get out of spin_lock/unlock.

Fixes: 994ac630e4a8("drm/i915/gvt: Add runtime_pm_get/put into gvt_switch_mmio
Cc: <stable@vger.kernel.org>
Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/mmio_context.c
drivers/gpu/drm/i915/gvt/sched_policy.c