From: Jesse Barnes Subject: Re: [PATCH 08/19] drm/i915: manual FDI training for Ivy Bridge Date: Thu, 28 Apr 2011 16:06:00 -0700 Message-ID: <20110428160600.04c5ff99@jbarnes-desktop> References: <1304028785-10583-1-git-send-email-jbarnes@virtuousgeek.org> <1304028785-10583-9-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 oproxy4-pub.bluehost.com (oproxy4-pub.bluehost.com [69.89.21.11]) by gabe.freedesktop.org (Postfix) with SMTP id 2B8C89E76B for ; Thu, 28 Apr 2011 16:06:04 -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: Keith Packard Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 28 Apr 2011 15:43:10 -0700 Keith Packard wrote: > On Thu, 28 Apr 2011 15:12:54 -0700, Jesse Barnes wrote: > > > + if (IS_GEN6(dev)) { > > + temp &= ~FDI_LINK_TRAIN_NONE; > > + temp |= FDI_LINK_TRAIN_NONE | FDI_TX_ENHANCE_FRAME_ENABLE; > > + } else if (IS_IVYBRIDGE(dev)) { > > + temp &= ~FDI_LINK_TRAIN_NONE_IVB; > > + temp |= FDI_LINK_TRAIN_NONE_IVB | FDI_TX_ENHANCE_FRAME_ENABLE; > > + } > > This seems inconsistent using IS_GEN6 for SNB and IS_IVYBRIDGE for IVB? Yes, there are several IS_GEN checks that I'd argue are wrong, I can clean them up in a subsequent. -- Jesse Barnes, Intel Open Source Technology Center