From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Bryan Freed <bfreed@chromium.org>
Cc: intel-gfx@lists.freedesktop.org,
Mandeep Baines <msb@chromium.org>,
Olof Johansson <olofj@chromium.org>
Subject: Re: [PATCH] CHROMIUM: i915: Initialize panel timing registers if VBIOS did not.
Date: Thu, 7 Oct 2010 16:52:39 -0700 [thread overview]
Message-ID: <20101007165239.1dc815a7@jbarnes-desktop> (raw)
In-Reply-To: <AANLkTimrOpY7n9Hi3NRKZVPekg1gNxLLxr1di_cMvf9J@mail.gmail.com>
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 <bfreed@chromium.org> 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 <chris@chris-wilson.co.uk>wrote:
>
> > On Thu, 7 Oct 2010 15:48:14 -0700, Bryan Freed <bfreed@chromium.org>
> > 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
prev parent reply other threads:[~2010-10-07 23:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikoPjDs-RNs+nvOJUO5UWHedGjRT1Ee7kuDyVdO@mail.gmail.com>
2010-10-07 22:55 ` [PATCH] CHROMIUM: i915: Initialize panel timing registers if VBIOS did not Chris Wilson
2010-10-07 23:06 ` Jesse Barnes
2010-10-07 23:48 ` Bryan Freed
2010-10-07 23:52 ` Jesse Barnes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101007165239.1dc815a7@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=bfreed@chromium.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=msb@chromium.org \
--cc=olofj@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.