From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 2/4] drm/i915: put ring frequency and turbo setup into a work queue v3 Date: Fri, 02 Nov 2012 13:37:58 +0000 Message-ID: References: <1351723265-4086-1-git-send-email-jbarnes@virtuousgeek.org> <1351723265-4086-2-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 58E389E7EB for ; Fri, 2 Nov 2012 06:38:44 -0700 (PDT) In-Reply-To: <1351723265-4086-2-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, 31 Oct 2012 15:41:03 -0700, Jesse Barnes wrote: > Communicating via the mailbox registers with the PCU can take quite > awhile. And updating the ring frequency or enabling turbo is not > something that needs to happen synchronously, so take it out of our init > and resume paths to speed things up (~200ms on my T420). > > v2: add comment about why we use a work queue (Daniel) > make sure work queue is idle on suspend (Daniel) > use a delayed work queue since there's no hurry (Daniel) > v3: make cleanup symmetric and just call cancel work directly (Daniel) > > References: https://bugs.freedesktop.org/show_bug.cgi?id=54089 Use round_jiffies_up_relative(HZ) to compute the delay to align the wakeup with others. -Chris -- Chris Wilson, Intel Open Source Technology Centre