All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Darren Hart <dvhart@infradead.org>
Cc: platform-driver-x86@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Petri Hodju <petrihodju@yahoo.com>,
	Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
Date: Sun, 25 Oct 2015 17:58:45 +0100	[thread overview]
Message-ID: <20151025175845.0bea0f28@uranus> (raw)
In-Reply-To: <20151022093652.GA25192@malice.jf.intel.com>

Hi Darren,

Looks like the Apple issue with backlight working on hidden Intel IGP
(doing IO on VGA addresses) while graphics are running on visible
discrete GPU (Radeon this time instead of usual nvidia).


I should have offered a solution quite some time ago but it seem time
was running very fast.
The best solution I can think of is denying any vga_arb on Apple EFI
systems (and not trying to choose the right one which is not possible
when one of both GPUs is hidden).


The lines of interest in dmesg are:
[    0.210225] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    0.210227] vgaarb: loaded
[    0.210228] vgaarb: setting as boot device: PCI:0000:01:00.0
[    0.210229] vgaarb: bridge control possible 0000:01:00.0
[    0.385583] fb0: EFI VGA frame buffer device
[    7.738507] apple_gmux: Found gmux version 4.0.20 [indexed]
[    7.738514] apple_gmux: locked IO for PCI:0000:01:00.0
[    7.792805] fb: switching to radeondrmfb from EFI VGA

Not loading apple_gmux might or might not affect ability to control
backlight depending on what backlight devices go registered
(radeon backlight device probably does not affect screen, at best an
ACPI backlight device might work)

Interesting part to check is how things work when both GPU are visible
to OS.

Thanks,
Bruno

On Thu, 22 Oct 2015 11:36:52 Darren Hart wrote:
> Bruno, can you please have a look at the following regression attributed to:
> 
> 4eebd5a apple-gmux: lock iGP IO to protect from vgaarb changes
>  2015-03-18 (7 months ago), Bruno Prémont <bonbons@linux-vserver.org>
> 
> 
> On Thu, Oct 15, 2015 at 04:47:13AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=105051
> > 
> > Felipe Ortiz <fortizc@gmail.com> changed:
> > 
> >            What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >                  CC|                            |fortizc@gmail.com
> > 
> > --- Comment #14 from Felipe Ortiz <fortizc@gmail.com> ---
> > I can confirm the problem with 4eebd5a4e72697aac25a8a57d3f888a9d5f80370. I have
> > a MPB 11,5 with AMD/Intel graphics. I recompile the module (a previous version
> > of 4eebd5a4e72697aac25a8a57d3f888a9d5f80370) and brightness adjusts is working
> > again.
> > 
> > I see two problems: 
> > 
> > 1) If someone uses gpu-switch (https://github.com/0xbb/gpu-switch) with this
> > bug screen seem not work, after severals reboots (with different kernels) I can
> > access a terminal and execute gpu-switch -d and then screen seems work again.
> > 
> > 2) If you use a Intel card (swiched with gpu-switch) the OSD (activated with
> > functions keys) is so slow and chromium have the same problem (temporary fix is
> > deactivate chromium hw acceleration) is this a intel driver bug?
> > 
> > -- 
> > You are receiving this mail because:
> > You are on the CC list for the bug.
> > 
> 
> Thanks,
> 

  reply	other threads:[~2015-10-25 17:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-105051-5380@https.bugzilla.kernel.org/>
     [not found] ` <bug-105051-5380-RlJ9dZd1ch@https.bugzilla.kernel.org/>
2015-10-22  9:36   ` [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 Darren Hart
2015-10-25 16:58     ` Bruno Prémont [this message]
2015-09-26 21:01 [Bug 105051] New: " bugzilla-daemon
2015-09-28 15:07 ` [Bug 105051] " bugzilla-daemon
2015-09-28 15:53 ` bugzilla-daemon
2015-09-28 22:32 ` bugzilla-daemon
2015-09-29  1:15 ` bugzilla-daemon
2015-09-29  1:17 ` bugzilla-daemon
2015-09-29 10:42 ` bugzilla-daemon
2015-09-29 15:52 ` bugzilla-daemon
2015-09-30  2:57 ` bugzilla-daemon
2015-09-30 19:56 ` bugzilla-daemon
2015-10-01  7:42 ` bugzilla-daemon
2015-10-01 21:04 ` bugzilla-daemon
2015-10-01 21:13 ` bugzilla-daemon
2015-10-08 14:46 ` bugzilla-daemon
2015-10-08 15:14 ` bugzilla-daemon
2015-10-15  4:47 ` bugzilla-daemon
2015-10-22  9:37 ` bugzilla-daemon
2015-10-22  9:39 ` bugzilla-daemon

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=20151025175845.0bea0f28@uranus \
    --to=bonbons@linux-vserver.org \
    --cc=bhelgaas@google.com \
    --cc=dvhart@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petrihodju@yahoo.com \
    --cc=platform-driver-x86@vger.kernel.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.