From: Jesse Barnes Subject: Re: [PATCH] drm/i915: fix locking around punit access in cur_delayinfo for VLV Date: Tue, 23 Apr 2013 09:39:31 -0700 Message-ID: <20130423093931.6e17ad09@jbarnes-desktop> References: <1366671570-11524-1-git-send-email-jbarnes@virtuousgeek.org> <8761zdznun.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy5-pub.bluehost.com (oproxy5-pub.bluehost.com [67.222.38.55]) by gabe.freedesktop.org (Postfix) with SMTP id 71B26E5C76 for ; Tue, 23 Apr 2013 09:42:08 -0700 (PDT) In-Reply-To: <8761zdznun.fsf@intel.com> 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: Jani Nikula Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, 23 Apr 2013 10:51:28 +0300 Jani Nikula wrote: > On Tue, 23 Apr 2013, Jesse Barnes wrote: > > We need to hold the rps lock around punit access. > > Reviewed-by: Jani Nikula > > And a semi-related question while at it... we will need punit access > also for non-rps stuff. Shall we just bundle them under the semantically > wrong rps lock? It would also feel a bit awkward to add another level of > locking for punit when we already have a "hw_lock" in rps. Unless the new users will need to take the lock in a blocking way (thus potentially impacting freq changes for a long time), I'd say we just keep abusing the rps hw_lock. -- Jesse Barnes, Intel Open Source Technology Center