From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 05/11] drm/i915: Added debugfs support for PSR Status Date: Mon, 15 Jul 2013 23:18:09 +0100 Message-ID: <20130715221809.GI2823@cantiga.alporthouse.com> References: <1373579105-1732-1-git-send-email-rodrigo.vivi@gmail.com> <1373579105-1732-6-git-send-email-rodrigo.vivi@gmail.com> <20130715140328.GE2823@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C2DDE5C21 for ; Mon, 15 Jul 2013 15:18:21 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Rodrigo Vivi Cc: intel-gfx , Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Mon, Jul 15, 2013 at 05:13:27PM -0300, Rodrigo Vivi wrote: > On Mon, Jul 15, 2013 at 11:03 AM, Chris Wilson wrote: > >> + seq_puts(m, "PSR not supported on this platform\n"); > >> + return 0; > >> + } > >> + > >> + psrctl = I915_READ(EDP_PSR_CTL); > > > > Missing locking. > > what lock? that psr exit is on debug_ctl I wanted to serialise the read of EDP_PSR_CTL against the write after a modeset. It should not be strictly necessary in this debug context. (However, we now have very strict rules that imply concurrent access to registers (within the same cacheline, even) is verboten.) -Chris -- Chris Wilson, Intel Open Source Technology Centre