All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lu, Ran" <hephooey@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 00/11] Enable gpu switching on the MacBook Pro
Date: Sat, 02 May 2015 14:03:24 -0500	[thread overview]
Message-ID: <mi371l$voi$1@ger.gmane.org> (raw)
In-Reply-To: 20150425142004.GA1108@wunner.de

Hi Lukas,

Lukas Wunner wrote:
> Included below is a tentative patch to set register 0x7F when switching
> the DDC lines. It would be great if someone with a retina could test
> the patchset I've posted plus this tentative patch since I can't test it
> myself.
> 
> * MacBookPro11 (second-gen retina):
>   The patchset I've posted plus the tentative patch below.
>   Fellow gmux hackers Andreas Heider and Bruno Bierbaumer tell me that
>   additionally, this patch is needed otherwise the i915 gpu is turned off:
>   https://www.marc.info/?l=grub-deavel&m=141586614924917&w=2

Thank you very much for your effort of bringing gpu switching to RMBP, I 
tried your patchset, including the one in this email, on my laptop. It is a 
Retina MacBookPro, late 2013 version, which is how ifixit calls it. It seems 
to work at least partially. Here is the results I observed.

First of all, I use gfxstatus in OSX to force the system to use the intel 
gpu. So when I boot into Linux the intel gpu will be activated and I can 
turn of the discrete nvidia gpu to save power.

After booted with the patched kernel (on top of v4.0). I can use "echo DIS > 
/sys/kernel/debug/vgaswitcheroo/switch" to switch to the nvidia gpu. The 
console turned black, I guess the system is incapable of switching to the 
nouveau's framebuffer at this moment. But after I startx through ssh, I can 
use everything without any problem. After quit the X the framebuffer is 
recovered as well. I can switch back to intel gpu and start X again no 
problem. However when I activated the discrete gpu again, I got a black 
screen after startx, the log of X seems normal, just no display on the 
screen.

I also tried to use the gfxstatus to resume the "normal" (dynamical 
switching) behavior in OSX. Then the nvidia gpu will be used when booting to 
linux. I switched to the intel gpu but it appears the gpu did not find the 
correct screen. After startx I got a black screen, xrandr does not give me 
the eDP output, only some Virtual and VGA outputs.

I hope these information can help to improve those patches. I am happy to 
try any (hopefully not dangerous) patches if you have any new ones.

-- 
Best Regards,
LR

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2015-05-02 20:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21  9:58 [PATCH 00/11] Enable gpu switching on the MacBook Pro Lukas Wunner
2012-09-07 15:22 ` [PATCH 01/11] vga_switcheroo: Add support for switching only the DDC Lukas Wunner
2012-09-07 15:22 ` [PATCH 02/11] vga_switcheroo: Add helper function to get the active client Lukas Wunner
2012-09-07 15:22 ` [PATCH 03/11] apple-gmux: Add switch_ddc support Lukas Wunner
2012-09-07 15:22 ` [PATCH 04/11] drm/edid: Switch DDC when reading the EDID Lukas Wunner
2012-12-22  2:52 ` [PATCH 05/11] vga_switcheroo: Lock/unlock DDC lines Lukas Wunner
2014-03-05 22:34 ` [PATCH 09/11] apple-gmux: Assign apple_gmux_data before registering Lukas Wunner
2015-03-27 11:29 ` [PATCH 06/11] vga_switcheroo: Lock/unlock DDC lines harder Lukas Wunner
2015-04-19 15:01 ` [PATCH 10/11] drm/i915: Reprobe connectors if vga_switcheroo handler registers late Lukas Wunner
2015-04-21 11:50   ` Chris Wilson
2015-04-21 12:16     ` Lukas Wunner
2015-04-21 12:37       ` Chris Wilson
2015-04-19 15:18 ` [PATCH 11/11] drm/nouveau: Pause between setting gpu to D3hot and cutting the power Lukas Wunner
2015-04-20 10:08 ` [PATCH 08/11] vga_switcheroo: Reprobe connectors if handler registers late Lukas Wunner
2015-04-21  8:39 ` [PATCH 07/11] Revert "vga_switcheroo: Add helper function to get the active client" Lukas Wunner
2015-04-21 19:49 ` [PATCH 00/11] Enable gpu switching on the MacBook Pro Matthew Garrett
2015-04-22 13:48   ` Lukas Wunner
2015-04-25 14:20   ` Lukas Wunner
2015-05-02 19:03     ` Lu, Ran [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='mi371l$voi$1@ger.gmane.org' \
    --to=hephooey@gmail.com \
    --cc=dri-devel@lists.freedesktop.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.