From: Jesse Barnes Subject: Re: [PATCH v2 2/5] drm/i915: refactor VLV IOSF sideband accessors to use one helper Date: Wed, 22 May 2013 08:34:51 -0700 Message-ID: <20130522083451.37db8771@jbarnes-t420> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy12-pub.bluehost.com (oproxy12-pub.bluehost.com [50.87.16.10]) by gabe.freedesktop.org (Postfix) with SMTP id 64E1DE645B for ; Wed, 22 May 2013 08:34:55 -0700 (PDT) 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: Jani Nikula Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, 22 May 2013 15:36:17 +0300 Jani Nikula wrote: > Both the intel_dpio_{read,write} and valleyview_{punit,nc}_{read,write} > use the IOSF sideband interface. They access the same registers and do > mostly the same stuff, but no shared code. There are even duplicate > register defines for the same registers. Both have locking, but the > former use dpio_lock and the latter rps.hw_lock. It's racy. Nice catch... The docs for each came from different places with no indication that the req register was re-used, but it's obvious now of course. Acked-by: Jesse Barnes