From mboxrd@z Thu Jan 1 00:00:00 1970 From: Deepak S Subject: Re: [PATCH v3] drm/i915: Force GPU Freq to lowest while suspending. Date: Fri, 20 Jun 2014 19:55:05 +0530 Message-ID: <53A44441.3050403@linux.intel.com> References: <20140617221723.GX5821@phenom.ffwll.local> <1403265576-25478-1-git-send-email-deepak.s@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 020056E8CA for ; Thu, 19 Jun 2014 07:30:54 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Thursday 19 June 2014 06:04 PM, Daniel Vetter wrote: > On Fri, Jun 20, 2014 at 1:59 PM, wrote: >> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c >> index 2043c4b..6bbb90b 100644 >> --- a/drivers/gpu/drm/i915/intel_pm.c >> +++ b/drivers/gpu/drm/i915/intel_pm.c >> @@ -4881,6 +4881,9 @@ void intel_suspend_gt_powersave(struct drm_device *dev) >> /* Interrupts should be disabled already to avoid re-arming. */ >> WARN_ON(dev->irq_enabled); >> >> + /* Force GPU to min freq during suspend */ >> + gen6_rps_idle(dev_priv); >> + > Shouldn't this be _after_ we've cancelled the rps works? Otherwise the > work item might sneak in and undo the idling between the idle and work > cancelling. > -Daniel My mistake sending updated patch, -Deepak