From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH] CHROMIUM: i915: Initialize panel timing registers if VBIOS did not. Date: Thu, 7 Oct 2010 16:52:39 -0700 Message-ID: <20101007165239.1dc815a7@jbarnes-desktop> References: <8u3s8d$jqd8sk@orsmga001.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cpoproxy1-pub.bluehost.com (cpoproxy1-pub.bluehost.com [69.89.21.11]) by gabe.freedesktop.org (Postfix) with SMTP id 96E4B9ECD8 for ; Thu, 7 Oct 2010 16:50:47 -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: Bryan Freed Cc: intel-gfx@lists.freedesktop.org, Mandeep Baines , Olof Johansson List-Id: intel-gfx@lists.freedesktop.org I don't think 0 is a reasonable value for any of those fields, so checking them against 0 should be fine. Jesse On Thu, 7 Oct 2010 16:48:51 -0700 Bryan Freed wrote: > My change tries to detect the lack of initialization by A) finding no VBT, > and B) finding 0 values in these registers. > > But what if there is a VBIOS out there that really wants these values to be > 0? I provide for that case by checking for VBT. > > Is this a reasonable case? If not, I have no problem moving the check > to init_vbt_default(). > > bryan. > > On Thu, Oct 7, 2010 at 3:55 PM, Chris Wilson wrote: > > > On Thu, 7 Oct 2010 15:48:14 -0700, Bryan Freed > > wrote: > > > The time between start of the pixel clock and backlight enable is a basic > > > panel timing constraint. If no VBIOS Table is found, and the Panel Power > > > On/Off registers are found to be 0, assume we are booting without VBIOS > > > initialization and set these registers to something reasonable. > > > > IIRC, the panel sequence registers are meant to be stored in the VBIOS. So > > if we add the parsing of those to the driver and add the defaults to > > init_vbt_default() then we can check whether PP_ON_DELAYS is valid upon > > device init (module load and resume) and fixup in case the BIOS does not. > > -Chris > > > > -- > > Chris Wilson, Intel Open Source Technology Centre > > -- Jesse Barnes, Intel Open Source Technology Center