From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 65068] New: AtomBIOS stuck after suspend/resume cycle whilst GPU turned off Date: Tue, 28 May 2013 07:59:18 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1338261410==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 566DEE6120 for ; Tue, 28 May 2013 00:59:19 -0700 (PDT) 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 --===============1338261410== Content-Type: multipart/alternative; boundary="1369727959.83aEb0.14871"; charset="us-ascii" --1369727959.83aEb0.14871 Date: Tue, 28 May 2013 07:59:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 Priority: medium Bug ID: 65068 Assignee: dri-devel@lists.freedesktop.org Summary: AtomBIOS stuck after suspend/resume cycle whilst GPU turned off Severity: normal Classification: Unclassified OS: All Reporter: austin.lund@gmail.com Hardware: Other Status: NEW Version: XOrg CVS Component: DRM/Radeon Product: DRI Created attachment 79884 --> https://bugs.freedesktop.org/attachment.cgi?id=79884&action=edit dmesg output when trying to switch back to radeon gpu. I have two GPUs in my system: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6600M/6700M/7600M Series] 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) This is a macbookpro8,2 and hence the gmuxer is controlled by the apple-gmux driver. If I suspend the system to ram whilst on the integrated gpu (i.e. the intel gpu), then after resume switch back to the radeon, I get a GPU hang. I've attached the dmesg output that I get when I try this. I'm using linux 3.10-rc3. I don't have X running when doing this (vgaswitcheroo won't allow this). -- You are receiving this mail because: You are the assignee for the bug. --1369727959.83aEb0.14871 Date: Tue, 28 May 2013 07:59:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 65068
Assignee dri-devel@lists.freedesktop.org
Summary AtomBIOS stuck after suspend/resume cycle whilst GPU turned off
Severity normal
Classification Unclassified
OS All
Reporter austin.lund@gmail.com
Hardware Other
Status NEW
Version XOrg CVS
Component DRM/Radeon
Product DRI

Created attachment 79884 [details]
dmesg output when trying to switch back to radeon gpu.

I have two GPUs in my system:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Whistler [Radeon HD 6600M/6700M/7600M Series]

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09)

This is a macbookpro8,2 and hence the gmuxer is controlled by the apple-gmux
driver.

If I suspend the system to ram whilst on the integrated gpu (i.e. the intel
gpu), then after resume switch back to the radeon, I get a GPU hang.

I've attached the dmesg output that I get when I try this.

I'm using linux 3.10-rc3.  I don't have X running when doing this
(vgaswitcheroo won't allow this).


You are receiving this mail because:
  • You are the assignee for the bug.
--1369727959.83aEb0.14871-- --===============1338261410== 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 --===============1338261410==-- 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: Wed, 29 May 2013 04:39:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0210948416==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 26CEBE5C5C for ; Tue, 28 May 2013 21:39:45 -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 --===============0210948416== Content-Type: multipart/alternative; boundary="1369802385.ddA26d0.7403"; charset="us-ascii" --1369802385.ddA26d0.7403 Date: Wed, 29 May 2013 04:39:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 Alex Deucher changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|AtomBIOS stuck after |vgaswitcheroo doesn't deal |suspend/resume cycle whilst |with powered off dGPU on |GPU turned off |resume --- Comment #1 from Alex Deucher --- It looks like vagswitcheroo doesn't properly enable the dgpu on resume so the driver tried to resume disabled hardware. -- You are receiving this mail because: You are the assignee for the bug. --1369802385.ddA26d0.7403 Date: Wed, 29 May 2013 04:39:45 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 65068
What Removed Added
Summary AtomBIOS stuck after suspend/resume cycle whilst GPU turned off vgaswitcheroo doesn't deal with powered off dGPU on resume

Comment # 1 on bug 65068 from
It looks like vagswitcheroo doesn't properly enable the dgpu on resume so the
driver tried to resume disabled hardware.


You are receiving this mail because:
  • You are the assignee for the bug.
--1369802385.ddA26d0.7403-- --===============0210948416== 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 --===============0210948416==-- 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: Wed, 29 May 2013 10:03:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1584947153==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 38257E63F0 for ; Wed, 29 May 2013 03:03:09 -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 --===============1584947153== Content-Type: multipart/alternative; boundary="1369821788.dfFa51.26534"; charset="us-ascii" --1369821788.dfFa51.26534 Date: Wed, 29 May 2013 10:03:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #2 from Austin Lund --- Are there any traces/dumps which I could produce to help debug this? -- You are receiving this mail because: You are the assignee for the bug. --1369821788.dfFa51.26534 Date: Wed, 29 May 2013 10:03:08 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 2 on bug 65068 from
Are there any traces/dumps which I could produce to help debug this?


You are receiving this mail because:
  • You are the assignee for the bug.
--1369821788.dfFa51.26534-- --===============1584947153== 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 --===============1584947153==-- 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: Wed, 29 May 2013 13:29:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2108967360==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 677A2E6311 for ; Wed, 29 May 2013 06:29:03 -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 --===============2108967360== Content-Type: multipart/alternative; boundary="1369834143.5e4ad0Ee1.27249"; charset="us-ascii" --1369834143.5e4ad0Ee1.27249 Date: Wed, 29 May 2013 13:29:03 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #3 from Alex Deucher --- There's nothing that needs to be debugged per se. Someone just needs to implement support for making sure the dGPU is powered up when the driver resumes or having the driver defer resume until the dGPU is powered up. -- You are receiving this mail because: You are the assignee for the bug. --1369834143.5e4ad0Ee1.27249 Date: Wed, 29 May 2013 13:29:03 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 3 on bug 65068 from
There's nothing that needs to be debugged per se.  Someone just needs to
implement support for making sure the dGPU is powered up when the driver
resumes or having the driver defer resume until the dGPU is powered up.


You are receiving this mail because:
  • You are the assignee for the bug.
--1369834143.5e4ad0Ee1.27249-- --===============2108967360== 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 --===============2108967360==-- 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: Fri, 31 May 2013 23:57:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2005872695==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C04D1E5E0A for ; Fri, 31 May 2013 16:57:54 -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 --===============2005872695== Content-Type: multipart/alternative; boundary="1370044674.Bfb851.30167"; charset="us-ascii" --1370044674.Bfb851.30167 Date: Fri, 31 May 2013 23:57:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #4 from Austin Lund --- 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: # cat /sys/kernel/debug/vgaswitcheroo/switch 0:IGD:+:Pwr:0000:00:02.0 1:DIS: :Off:0000:01:00.0 2:DIS-Audio: :Off:0000:01:00.1 # lspci -s 01:00 -xx 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6600M/6700M/7600M Series] (rev ff) 00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series] (rev ff) 00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff Maybe this is why suspend/resume doesn't work? Should the apple gmuxer remove the radeon device from the list of pci devices when in this state? (Like hotplugging?) -- You are receiving this mail because: You are the assignee for the bug. --1370044674.Bfb851.30167 Date: Fri, 31 May 2013 23:57:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 4 on bug 65068 from
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:

# cat /sys/kernel/debug/vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0
2:DIS-Audio: :Off:0000:01:00.1
# lspci -s 01:00 -xx
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Whistler [Radeon HD 6600M/6700M/7600M Series] (rev ff)
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler
HDMI Audio [Radeon HD 6000 Series] (rev ff)
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Maybe this is why suspend/resume doesn't work?  Should the apple gmuxer remove
the radeon device from the list of pci devices when in this state?  (Like
hotplugging?)


You are receiving this mail because:
  • You are the assignee for the bug.
--1370044674.Bfb851.30167-- --===============2005872695== 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 --===============2005872695==-- 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: Sat, 01 Jun 2013 20:27:12 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0150994798==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id EFFB3E5FE5 for ; Sat, 1 Jun 2013 13:27:11 -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 --===============0150994798== Content-Type: multipart/alternative; boundary="1370118431.Af84131.18204"; charset="us-ascii" --1370118431.Af84131.18204 Date: Sat, 1 Jun 2013 20:27:11 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #5 from Alex Deucher --- (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. -- You are receiving this mail because: You are the assignee for the bug. --1370118431.Af84131.18204 Date: Sat, 1 Jun 2013 20:27:11 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 5 on bug 65068 from
(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.


You are receiving this mail because:
  • You are the assignee for the bug.
--1370118431.Af84131.18204-- --===============0150994798== 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 --===============0150994798==-- 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
(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==-- 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 13:18:22 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0273828421==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A1A2E6158 for ; Mon, 3 Jun 2013 06:18:22 -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 --===============0273828421== Content-Type: multipart/alternative; boundary="1370265502.3C2C203C1.27735"; charset="us-ascii" --1370265502.3C2C203C1.27735 Date: Mon, 3 Jun 2013 13:18:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #7 from Alex Deucher --- (In reply to comment #6) > (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 reason you are getting 0xff is because you are accessing a disabled device. lspci would need to power up the GPU using vgaswitcheroo before accessing the hardware. > > 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 suspect the gmux driver resumes first and disables the hardware before the radeon driver resumes. So the radeon driver resumes on disabled hardware. > > 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. Some one needs to sort out the interactions between the the vgaswitcheroo drivers and the GPU drivers so that they do the right thing on suspend and resume and hw access from userspace utilities like lspci. -- You are receiving this mail because: You are the assignee for the bug. --1370265502.3C2C203C1.27735 Date: Mon, 3 Jun 2013 13:18:22 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 7 on bug 65068 from
(In reply to comment #6)
> (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 reason you are getting 0xff is because you are accessing a disabled device.
 lspci would need to power up the GPU using vgaswitcheroo before accessing the
hardware.

> 
> 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 suspect the gmux driver resumes first and disables the hardware before the
radeon driver resumes. So the radeon driver resumes on disabled hardware.

> 
> 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.

Some one needs to sort out the interactions between the the vgaswitcheroo
drivers and the GPU drivers so that they do the right thing on suspend and
resume and hw access from userspace utilities like lspci.


You are receiving this mail because:
  • You are the assignee for the bug.
--1370265502.3C2C203C1.27735-- --===============0273828421== 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 --===============0273828421==-- 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 13:22:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0356716803==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B979E5EA2 for ; Mon, 3 Jun 2013 06:22:09 -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 --===============0356716803== Content-Type: multipart/alternative; boundary="1370265729.5dA8B1.28486"; charset="us-ascii" --1370265729.5dA8B1.28486 Date: Mon, 3 Jun 2013 13:22:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #8 from Alex Deucher --- Additionally, since the audio device is part of the GPU, it needs to work properly with vgaswitcheroo. Dave Airlie was doing some work to support all of this properly, but it's not complete yet: http://cgit.freedesktop.org/~airlied/linux/log/?h=switchy-wip http://cgit.freedesktop.org/~airlied/linux/log/?h=nv-pm-ops2-wip -- You are receiving this mail because: You are the assignee for the bug. --1370265729.5dA8B1.28486 Date: Mon, 3 Jun 2013 13:22:09 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 8 on bug 65068 from
Additionally, since the audio device is part of the GPU, it needs to work
properly with vgaswitcheroo.  Dave Airlie was doing some work to support all of
this properly, but it's not complete yet:
http://cgit.freedesktop.org/~airlied/linux/log/?h=switchy-wip
http://cgit.freedesktop.org/~airlied/linux/log/?h=nv-pm-ops2-wip


You are receiving this mail because:
  • You are the assignee for the bug.
--1370265729.5dA8B1.28486-- --===============0356716803== 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 --===============0356716803==-- 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: Sun, 09 Jun 2013 04:05:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1487427115==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id CDF5CE5F27 for ; Sat, 8 Jun 2013 21:06:00 -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 --===============1487427115== Content-Type: multipart/alternative; boundary="1370750756.4d04DCa1.3892"; charset="us-ascii" --1370750756.4d04DCa1.3892 Date: Sun, 9 Jun 2013 04:05:56 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=65068 --- Comment #9 from Austin Lund --- Created attachment 80547 --> https://bugs.freedesktop.org/attachment.cgi?id=80547&action=edit pci_restore_config_dword debugging when resuming with dGPU off at suspend It is log output like this that worries my about the 0xff reads from the pci config space. I set this in dynamic_debug: drivers/pci/pci.c:964 [pci]pci_restore_config_dword =p "restoring config space at offset %#x (was %#x, writing %#x)\012" Then it gives this 0xff writing to the pci address space on restore when using the integrated gpu. Surely this cannot help. My guess is that the hardware should be removed from the kernel when the power is turned off. But that's just a hunch. -- You are receiving this mail because: You are the assignee for the bug. --1370750756.4d04DCa1.3892 Date: Sun, 9 Jun 2013 04:05:56 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 9 on bug 65068 from
Created attachment 80547 [details]
pci_restore_config_dword debugging when resuming with dGPU off at suspend

It is log output like this that worries my about the 0xff reads from the pci
config space.

I set this in dynamic_debug:

drivers/pci/pci.c:964 [pci]pci_restore_config_dword =p "restoring config space
at offset %#x (was %#x, writing %#x)\012"

Then it gives this 0xff writing to the pci address space on restore when using
the integrated gpu.  Surely this cannot help.  My guess is that the hardware
should be removed from the kernel when the power is turned off.  But that's
just a hunch.


You are receiving this mail because:
  • You are the assignee for the bug.
--1370750756.4d04DCa1.3892-- --===============1487427115== 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 --===============1487427115==-- 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: Tue, 19 Nov 2019 08:33:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1627105229==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D8E86EB77 for ; Tue, 19 Nov 2019 08:33:01 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1627105229== Content-Type: multipart/alternative; boundary="15741523813.9ED26.19074" Content-Transfer-Encoding: 7bit --15741523813.9ED26.19074 Date: Tue, 19 Nov 2019 08:33:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D65068 Martin Peres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #10 from Martin Peres --- -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this = link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/331. --=20 You are receiving this mail because: You are the assignee for the bug.= --15741523813.9ED26.19074 Date: Tue, 19 Nov 2019 08:33:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated <= span class=3D"fn">Martin Peres changed bug 65068<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- MOVED

Commen= t # 10 on bug 65068<= /a> from Martin Peres
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this =
link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/331.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15741523813.9ED26.19074-- --===============1627105229== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1627105229==--