dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 65068] vgaswitcheroo doesn't deal with powered off dGPU on resume
Date: Mon, 03 Jun 2013 01:39:43 +0000	[thread overview]
Message-ID: <bug-65068-502-4OLrKoihIs@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-65068-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1266 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=65068

--- Comment #6 from Austin Lund <austin.lund@gmail.com> ---
(In reply to comment #5)
> (In reply to comment #4)
> > I'm not sure if this has anything to do with this bug, but the PCI config
> > space is all messed up when running on the integrated GPU:
> 
> When you disable the GPU the hardware is physically powered off so you are
> accessing non-existent registers.  You need to power up the GPU using
> vgaswitcheroo before loading/resuming the driver or access the config space
> with lspci.

I guess what I was trying to say was, does having the device in this state
before you start suspend make the power management subsystem confused?  Will it
try to "restore" the pci configuration space to 0xff?  

The radeon GPU is definitely turned on by the firmware on resume and the
apple-gmux driver turns it off if that was the state of the system when suspend
was started.

I tried a quick hack to call the "ON" function for vga-switcheroo from the
apple-gmux driver suspend hook.  But that didn't work.  However, if I do it
manually (i.e. echo ON > /sys/kernel/debug/vgaswitcheroo/switch) before
suspend, then it does seem to fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2217 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

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

  parent reply	other threads:[~2013-06-03  1:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-28  7:59 [Bug 65068] New: AtomBIOS stuck after suspend/resume cycle whilst GPU turned off bugzilla-daemon
2013-05-29  4:39 ` [Bug 65068] vgaswitcheroo doesn't deal with powered off dGPU on resume bugzilla-daemon
2013-05-29 10:03 ` bugzilla-daemon
2013-05-29 13:29 ` bugzilla-daemon
2013-05-31 23:57 ` bugzilla-daemon
2013-06-01 20:27 ` bugzilla-daemon
2013-06-03  1:39 ` bugzilla-daemon [this message]
2013-06-03 13:18 ` bugzilla-daemon
2013-06-03 13:22 ` bugzilla-daemon
2013-06-09  4:05 ` bugzilla-daemon
2019-11-19  8:33 ` 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=bug-65068-502-4OLrKoihIs@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox