From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Tettamanti Subject: Re: [PATCH] drm/radeon: add new AMD ACPI header and update relevant code Date: Sat, 28 Jul 2012 16:56:26 +0200 Message-ID: <20120728145626.GA6304@growl> References: <1343237889-5220-1-git-send-email-alexdeucher@gmail.com> <20120726125838.GA28853@growl> <20120726193346.GA11288@growl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 942C99E79F for ; Sat, 28 Jul 2012 07:56:33 -0700 (PDT) Received: by wibhm11 with SMTP id hm11so418410wib.12 for ; Sat, 28 Jul 2012 07:56:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: Alex Deucher , joeyli , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Thu, Jul 26, 2012 at 03:42:26PM -0400, Alex Deucher wrote: > On Thu, Jul 26, 2012 at 3:33 PM, Luca Tettamanti wrote: > > On Thu, Jul 26, 2012 at 11:35:25AM -0400, Alex Deucher wrote: > >> On Thu, Jul 26, 2012 at 8:58 AM, Luca Tettamanti wrote: > >> > The other missing bit is how to actually change the brightness... Alex, > >> > do you know what registers to poke? > >> > >> You need to check if the GPU controls the backlight or the system > >> does. I think the attached patches should point you in the right > >> direction. > > > > Yep :) > > > > 0050: ATOM_FIRMWARE_CAPABILITY_ACCESS usFirmwareCapability : > > 0050: (union) ATOM_FIRMWARE_CAPABILITY sbfAccess : > > USHORT GPUControlsBL:1 = 0x0001 (1) > > > > The panel is using the INTERNAL_UNIPHY encoder, and I see the > > UNIPHYTransmitterControl command table. > > > > Interaction with video.ko is still a bit messy... > > > > Do you already have code for handling the notifications? I'll work on it > > in the weekend otherwise ;) > > I don't have patches for that. Please feel free to work on it :) I just found the first problem (probably a BIOS bug): ATIF_FUNCTION_GET_SYSTEM_PARAMETERS is implemented in the DSDT, but the corresponding bit ATIF_GET_SYSTEM_PARAMETERS_SUPPORTED is not set :( I intended to use the method to set up the notification handler but now my BIOS says that it's not there even if it is... Can I assume some default values (e.g. notifications are enabled and will use 0x81 unless ATIF_FUNCTION_GET_SYSTEM_PARAMETERS says something different)? thanks, Luca