From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:50462 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbeGaQuM (ORCPT ); Tue, 31 Jul 2018 12:50:12 -0400 Date: Tue, 31 Jul 2018 17:09:22 +0200 From: Greg KH To: hang.yuan@linux.intel.com Cc: intel-gvt-dev@lists.freedesktop.org, stable@vger.kernel.org, Xiong Zhang Subject: Re: [PATCH] drm/i915/gvt: move intel_runtime_pm_get out of spin_lock in stop_schedule Message-ID: <20180731150922.GA13018@kroah.com> References: <1533031546-29178-1-git-send-email-hang.yuan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1533031546-29178-1-git-send-email-hang.yuan@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Jul 31, 2018 at 06:05:46PM +0800, hang.yuan@linux.intel.com wrote: > From: Hang Yuan > > 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 > Signed-off-by: Hang Yuan > Signed-off-by: Xiong Zhang > --- > drivers/gpu/drm/i915/gvt/mmio_context.c | 2 -- > drivers/gpu/drm/i915/gvt/sched_policy.c | 3 +++ > 2 files changed, 3 insertions(+), 2 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.