dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
@ 2020-04-20  2:46 ` bugzilla-daemon
  2020-04-20 13:50 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20  2:46 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

Zhang Rui (rui.zhang@intel.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rui.zhang@intel.com
          Component|Other                       |Video(DRI - non Intel)
           Assignee|rjw@rjwysocki.net           |drivers_video-dri@kernel-bu
                   |                            |gs.osdl.org
            Product|Power Management            |Drivers

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
  2020-04-20  2:46 ` [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo bugzilla-daemon
@ 2020-04-20 13:50 ` bugzilla-daemon
  2020-04-20 13:52 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 13:50 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

Alex Deucher (alexdeucher@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexdeucher@gmail.com

--- Comment #1 from Alex Deucher (alexdeucher@gmail.com) ---
Can you bisect?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
  2020-04-20  2:46 ` [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo bugzilla-daemon
  2020-04-20 13:50 ` bugzilla-daemon
@ 2020-04-20 13:52 ` bugzilla-daemon
  2020-04-20 21:03 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 13:52 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #2 from Alex Deucher (alexdeucher@gmail.com) ---
Please attach your dmesg output in both the working and non-working cases.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (2 preceding siblings ...)
  2020-04-20 13:52 ` bugzilla-daemon
@ 2020-04-20 21:03 ` bugzilla-daemon
  2020-04-20 21:04 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:03 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #3 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Created attachment 288637
  --> https://bugzilla.kernel.org/attachment.cgi?id=288637&action=edit
dmesg for 4.16.17

I no longer had the kernels installed so I have used the nearest distribution
kernels I could find in the interest of simplicity and speed, as that doesn't
seem to make a difference and compiling kernels takes a while on this machine.
I hope that's OK. If not it might take a while to get round to compiling the
kernels again.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (3 preceding siblings ...)
  2020-04-20 21:03 ` bugzilla-daemon
@ 2020-04-20 21:04 ` bugzilla-daemon
  2020-04-20 21:05 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:04 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #4 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Created attachment 288639
  --> https://bugzilla.kernel.org/attachment.cgi?id=288639&action=edit
dmesg for 4.17.2

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (4 preceding siblings ...)
  2020-04-20 21:04 ` bugzilla-daemon
@ 2020-04-20 21:05 ` bugzilla-daemon
  2020-04-20 21:08 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:05 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #5 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
(In reply to Alex Deucher from comment #1)
> Can you bisect?

Probably not. I can just about compile a kernel, but finding my way around
anything other than a standard source download is likely to be beyond me.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (5 preceding siblings ...)
  2020-04-20 21:05 ` bugzilla-daemon
@ 2020-04-20 21:08 ` bugzilla-daemon
  2020-04-20 21:16 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

K J Petrie (kernel.bugs@kjpetrie.co.uk) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|IA-64                       |x86-64

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (6 preceding siblings ...)
  2020-04-20 21:08 ` bugzilla-daemon
@ 2020-04-20 21:16 ` bugzilla-daemon
  2020-04-20 21:27 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:16 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #6 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Comment on attachment 288639
  --> https://bugzilla.kernel.org/attachment.cgi?id=288639
dmesg for 4.17.2

Scrub this. It has radeon.runpm=0 on it's command line. I'll upload a corrected
version.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (7 preceding siblings ...)
  2020-04-20 21:16 ` bugzilla-daemon
@ 2020-04-20 21:27 ` bugzilla-daemon
  2020-04-22  5:58 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-20 21:27 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

K J Petrie (kernel.bugs@kjpetrie.co.uk) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #288639|0                           |1
        is obsolete|                            |

--- Comment #7 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Created attachment 288641
  --> https://bugzilla.kernel.org/attachment.cgi?id=288641&action=edit
Corrected dmesg for 4.17.2

This one doesn't have radeon.runpm=0 in its command line!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (8 preceding siblings ...)
  2020-04-20 21:27 ` bugzilla-daemon
@ 2020-04-22  5:58 ` bugzilla-daemon
  2020-04-22 11:46 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-22  5:58 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

Lukas Wunner (lukas@wunner.de) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lukas@wunner.de

--- Comment #8 from Lukas Wunner (lukas@wunner.de) ---
Starting with v4.17, the power management of HDA controllers on discrete GPUs
was changed such that the HDA keeps the GPU awake as long as it's in use:
https://lists.freedesktop.org/archives/nouveau/2018-February/029851.html

This exposed an issue with some ATI cards which was fixed in June 2018:
https://git.kernel.org/linus/57cb54e53bdd

So if you still experience GPU insomnia with v5.3 (which contains that fix),
then it's a different problem.

In one case, a user reported GPU insomnia with an Nvidia card and it turned out
that it was caused by a user space tool called "tlp" which disabled runtime
power management of the HDA via sysfs. Naturally, this caused the GPU to stay
awake. The solution in this case was to change the configuration of "tlp". But
it was also possible to manually override disablement of runtime PM on the HDA
by echoing "on" to the "power/control" file in the HDA PCI device's sysfs
directory:
https://bugs.freedesktop.org/show_bug.cgi?id=75985#c116

So you first may want to check whether runtime PM is disabled in sysfs, try to
manually enable it and see if the GPU runtime suspends, and if that works, find
out which user space tool disabled runtime PM on the HDA.

It's also possible that you've got a user space tool running which has opened
the HDA and thereby keeps the GPU awake. Some audio mixers do that.

If none of that fixes the problem, then we may indeed be dealing with a kernel
bug. The other bugs related to runtime PM of the HDA contain all the steps and
several debug patches to understand what's keeping the HDA awake, so we need
you to follow those instructions and report the results back. Here are the
relevant bugzillas:
https://bugs.freedesktop.org/show_bug.cgi?id=106597#c4
https://bugs.freedesktop.org/show_bug.cgi?id=106957#c1

One oddity I notice in your dmesg output is that there's only a single HDA
controller detected in your machine and that's the one on the discrete GPU.
Normally there are two HDAs, one is part of the Intel chipset and is
responsible for headphones, loudspeakers, mic and so on, and the other one is
on the discrete GPU and is only responsible for HDMI audio. On your machine,
there's no Intel chipset HDA and the one on the discrete GPU has a Line Out for
loudspeakers, headphone out, digital out and two microphone inputs. So that's a
little odd and may contribute to this issue.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (9 preceding siblings ...)
  2020-04-22  5:58 ` bugzilla-daemon
@ 2020-04-22 11:46 ` bugzilla-daemon
  2020-04-22 11:49 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-22 11:46 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #9 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Well, it'll take time to patch and recompile the kernel, but in the meantime
here is all the contents of the power directories:

AMD Radeon GPU
cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_status 
active
cat /sys/bus/pci/devices/0000\:01\:00.0/power/control 
auto
cat /sys/bus/pci/devices/0000\:01\:00.0/power/autosuspend_delay_ms 
5000
cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_active_time 
1744516
cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_suspended_time 
184197

AMD HDA
cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_status 
active
cat /sys/bus/pci/devices/0000\:01\:00.1/power/control 
auto
cat /sys/bus/pci/devices/0000\:01\:00.1/power/autosuspend_delay_ms 
cat: '/sys/bus/pci/devices/0000:01:00.1/power/autosuspend_delay_ms':
Input/output error
cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_active_time 
2415454
cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_suspended_time 
214644

I double-checked that IO error, in case it was just a fluke, but it's
consistent.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (10 preceding siblings ...)
  2020-04-22 11:46 ` bugzilla-daemon
@ 2020-04-22 11:49 ` bugzilla-daemon
  2020-04-23  9:57 ` bugzilla-daemon
  2020-05-07 10:39 ` bugzilla-daemon
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-22 11:49 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

--- Comment #10 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Looks like I need to recompile with CONFIG_PM_ADVANCED_DEBUG, I suspect.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (11 preceding siblings ...)
  2020-04-22 11:49 ` bugzilla-daemon
@ 2020-04-23  9:57 ` bugzilla-daemon
  2020-05-07 10:39 ` bugzilla-daemon
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-04-23  9:57 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

K J Petrie (kernel.bugs@kjpetrie.co.uk) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #11 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
I decided to compile 5.6.6 with CONFIG_PM_ADVANCED_DEBUG.

To my amazement, this gave me:
# uname -r
5.6.6

# cat /sys/kernel/debug/vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
2:DIS-Audio: :DynOff:0000:01:00.1    (!!!!!!)

(GPU)
# cat /sys/bus/pci/devices/0000\:01\:00.0/power/control 
auto
# cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_status 
suspended
cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_usage 
0
# cat /sys/bus/pci/devices/0000\:01\:00.0/power/runtime_active_kids
0

(HDA)
# cat /sys/bus/pci/devices/0000\:01\:00.1/power/control 
auto
# cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_status 
suspended
# cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_usage 
0
# cat /sys/bus/pci/devices/0000\:01\:00.1/power/runtime_active_kids 
0

So, either enabling CONFIG_PM_ADVANCED_DEBUG affects this or it's fixed in the
latest kernels.

As a quick check I installed the distribution's latest kernel:

# uname -r
5.5.19-pclos1
[root@master2 ken]# cat /sys/kernel/debug/vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0
2:DIS-Audio: :DynOff:0000:01:00.1

So it looks as if it was fixed in the 5.5 kernels.

However, both the 5.5 (distro) and 5.6 (mainline) kernels emit a terrible
clattering sound during services start up. I'm unsure whether that's coming
from the speakers, HDD or optical drive. If the former, it's just a nuisance,
if one of the latter it's not good news. I hope that's not related to the fix!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo
       [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
                   ` (12 preceding siblings ...)
  2020-04-23  9:57 ` bugzilla-daemon
@ 2020-05-07 10:39 ` bugzilla-daemon
  13 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2020-05-07 10:39 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=205291

K J Petrie (kernel.bugs@kjpetrie.co.uk) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|CODE_FIX                    |---

--- Comment #12 from K J Petrie (kernel.bugs@kjpetrie.co.uk) ---
Reopening as the problem has returned with 5.6.11, although the rattling sound
from the speaker (bug 207437) has now gone!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-05-07 10:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-205291-2300@https.bugzilla.kernel.org/>
2020-04-20  2:46 ` [Bug 205291] Cannot switch off Radeon HD 4330/4350/4550 with vgaswitcheroo bugzilla-daemon
2020-04-20 13:50 ` bugzilla-daemon
2020-04-20 13:52 ` bugzilla-daemon
2020-04-20 21:03 ` bugzilla-daemon
2020-04-20 21:04 ` bugzilla-daemon
2020-04-20 21:05 ` bugzilla-daemon
2020-04-20 21:08 ` bugzilla-daemon
2020-04-20 21:16 ` bugzilla-daemon
2020-04-20 21:27 ` bugzilla-daemon
2020-04-22  5:58 ` bugzilla-daemon
2020-04-22 11:46 ` bugzilla-daemon
2020-04-22 11:49 ` bugzilla-daemon
2020-04-23  9:57 ` bugzilla-daemon
2020-05-07 10:39 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).