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)
commitb2b599fb54f90ae395ddc51f0d49e4f28244a8f8
tree203bdb7cd72ab203716a90b6bc8f8c7fa71f351e
parentb9b824a55876275f8506c1c187558ab22d879f73
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: b24881e0b0b6("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