All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 106957] GPU runtime suspend broken since 4.17
@ 2018-06-18 20:49 bugzilla-daemon
  2018-06-18 22:06 ` bugzilla-daemon
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-18 20:49 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 106957
           Summary: GPU runtime suspend broken since 4.17
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/Radeon
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: prg@cooco.de
                CC: lukas@wunner.de

Created attachment 140212
  --> https://bugs.freedesktop.org/attachment.cgi?id=140212&action=edit
dmesg from 4.17.2

I got a notebook with some Intel IGP and a Radeon HD5650. Since commit
07f4f97d7b4bf325d9f558c5b58230387e4e57e0 the dGPU is constantly DynPwr'd. This
still happens in 4.17.2, so the patch mentioned in #106597 doesn't help.

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
@ 2018-06-18 22:06 ` bugzilla-daemon
  2018-06-19 16:08 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-18 22:06 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Lukas Wunner <lukas@wunner.de> ---
Hm, what does the following show?

cat /sys/bus/pci/devices/0000:02:00.0/power/control               # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status        # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage         # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids   # GPU
cat /sys/bus/pci/devices/0000:02:00.1/power/control               # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status        # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage         # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids   # HDA

I can't see anything in dmesg that the HDA controller is bound to a driver.
What does the following show?

ls -l /sys/bus/pci/devices/0000:02:00.1/driver

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
  2018-06-18 22:06 ` bugzilla-daemon
@ 2018-06-19 16:08 ` bugzilla-daemon
  2018-06-19 17:51 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-19 16:08 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from prg@cooco.de ---
# cat /sys/bus/pci/devices/0000:02:00.0/power/control               # GPU
auto

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status        # GPU
active

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage         # GPU
cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_usage': No such file or
directory

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids   # GPU
cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids': No such
file or directory                               

# cat /sys/bus/pci/devices/0000:02:00.1/power/control               # HDA       
auto                                                                            

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status        # HDA
active

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage         # HDA
cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_usage': No such file or
directory

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids   # HDA
cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids': No such
file or directory

# ls -l /sys/bus/pci/devices/0000:02:00.1/driver
lrwxrwxrwx 1 root root 0 Jun 19 18:04 /sys/bus/pci/devices/0000:02:00.1/driver
-> ../../../../bus/pci/drivers/snd_hda_intel

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
  2018-06-18 22:06 ` bugzilla-daemon
  2018-06-19 16:08 ` bugzilla-daemon
@ 2018-06-19 17:51 ` bugzilla-daemon
  2018-06-19 18:32 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-19 17:51 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Lukas Wunner <lukas@wunner.de> ---
Okay so the HDA controller is bound to a driver and is runtime active. 
Naturally, if it's runtime active it'll keep the GPU awake.  Question is what's
keeping it active.

Could you check if there are any user space processes accessing the HDA
controller:
sudo lsof /dev/snd/controlC1

You got "No such file or directory" for some of the commands I gave you because
the kernel isn't compiled with CONFIG_PM_ADVANCED_DEBUG=y.  Could you enable
that option and try again?  Thanks!

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-06-19 17:51 ` bugzilla-daemon
@ 2018-06-19 18:32 ` bugzilla-daemon
  2018-06-19 20:09 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-19 18:32 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from prg@cooco.de ---
# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage
1

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids
0

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage
0

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids
0

# lsof /dev/snd/controlC1

No output. Yes, I did run this as root.

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-06-19 18:32 ` bugzilla-daemon
@ 2018-06-19 20:09 ` bugzilla-daemon
  2018-06-19 20:25 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-19 20:09 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Lukas Wunner <lukas@wunner.de> ---
Okay the HDA's runtime ref counter is 0 and it has no active children, so it
should suspend. Chances are it doesn't because rpm_idle() fails for some
reason.

Could you try this debug patch that I had created for #106597 and post the
dmesg output?

https://bugs.freedesktop.org/attachment.cgi?id=139706&action=edit

You can add "log_buf_len=10M ignore_loglevel" to the command line to ensure
that dmesg isn't truncated and contains all debug output.

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-06-19 20:09 ` bugzilla-daemon
@ 2018-06-19 20:25 ` bugzilla-daemon
  2018-06-20  4:12 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-19 20:25 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from prg@cooco.de ---
Created attachment 140235
  --> https://bugs.freedesktop.org/attachment.cgi?id=140235&action=edit
dmesg with debug patch

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-06-19 20:25 ` bugzilla-daemon
@ 2018-06-20  4:12 ` bugzilla-daemon
  2018-06-20  7:27 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-20  4:12 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Lukas Wunner <lukas@wunner.de> ---
I'm having a déjà vu here :-)

[    7.840122] snd_hda_intel 0000:02:00.1: azx_runtime_idle:
!power_save_controller = 0, !azx_has_pm_runtime(chip) = 0,
azx_bus(chip)->codec_powered = 0x1, !chip->running = 0

The single codec on this HDA controller is considered powered on, hence the HDA
controller refuses to runtime suspend. Same problem as in #106597.

What does the following show:
grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps

And could you try this debug patch (in lieu of the other one) to narrow down
the root cause further:
https://bugs.freedesktop.org/attachment.cgi?id=139735&action=edit

Thanks!

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-06-20  4:12 ` bugzilla-daemon
@ 2018-06-20  7:27 ` bugzilla-daemon
  2018-06-21 19:43 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-20  7:27 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #8 from prg@cooco.de ---
Created attachment 140242
  --> https://bugs.freedesktop.org/attachment.cgi?id=140242&action=edit
dmesg with second debug patch

# grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps
/sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0x00000009

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-06-20  7:27 ` bugzilla-daemon
@ 2018-06-21 19:43 ` bugzilla-daemon
  2018-06-24 16:50 ` bugzilla-daemon
  2018-06-29 11:15 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-21 19:43 UTC (permalink / raw)
  To: dri-devel


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

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

Lukas Wunner <lukas@wunner.de> changed:

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

--- Comment #9 from Lukas Wunner <lukas@wunner.de> ---
Fixed with commit 57cb54e53bdd ("ALSA: hda - Force to link down at runtime
suspend on ATI/AMD HDMI") which is now queued for 4.18-rc2 and marked for
stable, it will probably appear in 4.17.3:
https://git.kernel.org/tiwai/sound/c/57cb54e53bdd

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-06-21 19:43 ` bugzilla-daemon
@ 2018-06-24 16:50 ` bugzilla-daemon
  2018-06-29 11:15 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-24 16:50 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #10 from Lukas Wunner <lukas@wunner.de> ---
It looks like no pull request was sent out for the sound subsystem this week,
so I'm afraid the fix will not appear in mainline earlier than 4.18-rc3.

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

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

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

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

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

* [Bug 106957] GPU runtime suspend broken since 4.17
  2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-06-24 16:50 ` bugzilla-daemon
@ 2018-06-29 11:15 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-06-29 11:15 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #11 from Lukas Wunner <lukas@wunner.de> ---
The fix landed in Linus' tree yesterday:
https://git.kernel.org/linus/57cb54e53bdd

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

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

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

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

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

end of thread, other threads:[~2018-06-29 11:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-18 20:49 [Bug 106957] GPU runtime suspend broken since 4.17 bugzilla-daemon
2018-06-18 22:06 ` bugzilla-daemon
2018-06-19 16:08 ` bugzilla-daemon
2018-06-19 17:51 ` bugzilla-daemon
2018-06-19 18:32 ` bugzilla-daemon
2018-06-19 20:09 ` bugzilla-daemon
2018-06-19 20:25 ` bugzilla-daemon
2018-06-20  4:12 ` bugzilla-daemon
2018-06-20  7:27 ` bugzilla-daemon
2018-06-21 19:43 ` bugzilla-daemon
2018-06-24 16:50 ` bugzilla-daemon
2018-06-29 11:15 ` bugzilla-daemon

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.