From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915/vlv: hack to init backlight regs if BIOS fails to do so Date: Wed, 25 Sep 2013 22:53:14 +0200 Message-ID: <20130925205314.GP12663@phenom.ffwll.local> References: <1380127240-1310-1-git-send-email-jbarnes@virtuousgeek.org> <87bo3glt00.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 0847BE5C1F for ; Wed, 25 Sep 2013 13:52:59 -0700 (PDT) Received: by mail-ea0-f169.google.com with SMTP id k11so102967eaj.0 for ; Wed, 25 Sep 2013 13:52:57 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87bo3glt00.fsf@intel.com> 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, Sep 25, 2013 at 08:18:39PM +0300, Jani Nikula wrote: > On Wed, 25 Sep 2013, Jesse Barnes wrote: > > Still digging up the actual VBT info for this, but wanted to get this > > out there for testing, or in case others are also bugged by this. > > I had a look at this a few weeks back. The VBT value for max backlight > is in Hz (as is the value you get through opregion) and transforming > that into the value the registers eat needs some digging. I tried, but > none of the real world examples of VBT and PWM freq matched any of that, > so I moved on... > > > This can happen if you boot with an external display connected. In that > > case, the attached eDP backlight modulation frequency may not be > > programmed, so we need to use something (in this case the value my BIOS > > normally programs with just the internal display enabled). > > Something similar is required for non-vlv ChromeOS stuff too AFAIK. Afaik ChromeOS doesn't have a vbt, so I think we need to shovel some failsafe (yeah, failsafe and backlight doesn't compute, I know) default into the regs in case all else fails. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch