From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 02/14] drm/i915: DSL_LINEMASK is 12 bits only on gen2 Date: Tue, 8 May 2012 14:27:29 +0200 Message-ID: <20120508122729.GH4802@phenom.ffwll.local> References: <1336010154-2946-1-git-send-email-przanoni@gmail.com> <1336162707-3504-1-git-send-email-przanoni@gmail.com> <20120508114936.GC4802@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id CEE7E9E732 for ; Tue, 8 May 2012 05:26:20 -0700 (PDT) Received: by eaak13 with SMTP id k13so1758960eaa.36 for ; Tue, 08 May 2012 05:26:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20120508114936.GC4802@phenom.ffwll.local> 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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Tue, May 08, 2012 at 01:49:36PM +0200, Daniel Vetter wrote: > On Fri, May 04, 2012 at 05:18:14PM -0300, Paulo Zanoni wrote: > > From: Paulo Zanoni > > > > Gen3+ is 13 bits (12:0), and on gen2 only 12 (11:0). For both the high > > bits are marked reserved, read-only so continue to mask them. Bit 31 > > is not reserved and has a meaning. > > > > Signed-off-by: Paulo Zanoni > > Reviewed-by: Chris Wilson > Queued for -next, thanks for the patch. While reading through the code > I've noticed that there are other places where we get this wrong. In the > crt load detect code we don't even bother with properly masking, and in > the precise vblank timestamp code we always use the gen3+ mask. That code > in addition doesn't properly handle the lack of the PIPEDSL register on > ilk+. Can I volunteer you to look into that? Scrap the last remark, if mixed up PIPEDSL with PIPESTAT. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48