From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65068] vgaswitcheroo doesn't deal with powered off dGPU on resume
Date: Mon, 03 Jun 2013 01:39:43 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2123343915=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id C1336E5C75
for ;
Sun, 2 Jun 2013 18:39:43 -0700 (PDT)
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: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============2123343915==
Content-Type: multipart/alternative; boundary="1370223583.A14ef1.28808"; charset="us-ascii"
--1370223583.A14ef1.28808
Date: Mon, 3 Jun 2013 01:39:43 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65068
--- Comment #6 from Austin Lund ---
(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.
--1370223583.A14ef1.28808
Date: Mon, 3 Jun 2013 01:39:43 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 6
on bug 65068
from Austin Lund
(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.
--1370223583.A14ef1.28808--
--===============2123343915==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============2123343915==--