From: Chris Wilson Subject: Re: [PATCH 6/8] drm/i915: Disable power management for i915 driver in VM Date: Fri, 19 Sep 2014 09:16:08 +0100 Message-ID: <20140919081608.GF21738@nuc-i3427.alporthouse.com> References: <1411152428-7226-1-git-send-email-jike.song@intel.com> <1411152428-7226-7-git-send-email-jike.song@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (mail.fireflyinternet.com [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D9836E5CF for ; Fri, 19 Sep 2014 01:16:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1411152428-7226-7-git-send-email-jike.song@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Jike Song Cc: daniel.vetter@intel.com, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, Sep 20, 2014 at 02:47:06AM +0800, Jike Song wrote: > From: Yu Zhang > > In XenGT, GPU power management is controlled by host i915 > driver, so there is no need to provide virtualized GPU PM > support. In the future it might be useful to gather VM > input for freq boost, but now let's disable it simply. > > Signed-off-by: Yu Zhang > Signed-off-by: Jike Song > --- > drivers/gpu/drm/i915/intel_pm.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index 675e8a2..1535fa3 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -5419,6 +5419,12 @@ void intel_enable_gt_powersave(struct drm_device *dev) > mutex_unlock(&dev->struct_mutex); > } else if (INTEL_INFO(dev)->gen >= 6) { > /* > + * Powersaving is disabled when running inside a VM. > + */ > + if (intel_vgpu_active(dev)) > + return; Don't special case this to gen6+, it always applies because the comment is not accurate, whereas the changelog is a much more apt description. /* Powersaving is controlled by the host when inside a VM */ if (intel_vgpu_active(dev)) return; -Chris -- Chris Wilson, Intel Open Source Technology Centre