All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
@ 2017-02-27  9:04 bugzilla-daemon
  2017-02-27  9:05 ` [Bug 194721] " bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-27  9:04 UTC (permalink / raw)
  To: dri-devel

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

            Bug ID: 194721
           Summary: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes
                    up Radeon dGPU
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.8 and newer
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@kernel-bugs.osdl.org
          Reporter: eugene.shalygin@gmail.com
        Regression: No

Created attachment 254957
  --> https://bugzilla.kernel.org/attachment.cgi?id=254957&action=edit
dmesg

In ArchLinux with kernel 4.8 and newer accessing file
/sys/bus/pci/devices/0000:01:00.0/config wakes up dGPU (like DRI_PRIME=1
glxinfo would do). Since many program read that file at startup, this is highly
annoying. 

$ lspci 
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor
DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor
PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor
Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor
HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family
USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series
Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family
USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High
Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI
Express Root Port #1 (rev d5)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI
Express Root Port #2 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI
Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI
Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family
USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family
6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus
Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Neptune XT [Radeon HD 8970M]
03:00.0 PCI bridge: Texas Instruments XIO2213A/B/XIO2221 PCI Express to PCI
Bridge [Cheetah Express] (rev 01)
04:00.0 FireWire (IEEE 1394): Texas Instruments XIO2213A/B/XIO2221 IEEE-1394b
OHCI Controller [Cheetah Express] (rev 01)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI
Express Card Reader (rev 01)
05:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
PCI Express Gigabit Ethernet Controller (rev 0a)
06:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)

At the same time on the almost identical machine running Gentoo:
$ diff -U 1 lspci.txt lspci.txt.gentoo 
--- lspci.txt   2017-02-27 09:55:03.885457274 +0100
+++ lspci.txt.gentoo    2017-02-27 09:55:21.978499749 +0100
@@ -16,3 +16,3 @@
 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus
Controller (rev 05)
-01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Neptune XT [Radeon HD 8970M]
+01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Neptune XT [Radeon HD 8970M] (rev ff)
 03:00.0 PCI bridge: Texas Instruments XIO2213A/B/XIO2221 PCI Express to PCI
Bridge [Cheetah Express] (rev 01)
@@ -21,2 +21,2 @@
 05:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411
PCI Express Gigabit Ethernet Controller (rev 0a)
-06:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
+06:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)

this does not happen. Rebuilding kernel with copied from the Gentoo machine
config changed nothing. The attached dmesg output contains several such events
at the end of the file.

When the dGPU is disabled using acpi_call and its example turn_off_gpu.sh
script, accessing the /sys/bus/pci/devices/0000:01:00.0/config hangs a process
(it does not react to SIGKILL).

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
@ 2017-02-27  9:05 ` bugzilla-daemon
  2017-02-27  9:05 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-27  9:05 UTC (permalink / raw)
  To: dri-devel

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

Eugene Shalygin (eugene.shalygin@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Regression|No                          |Yes

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
  2017-02-27  9:05 ` [Bug 194721] " bugzilla-daemon
@ 2017-02-27  9:05 ` bugzilla-daemon
  2017-02-28  1:15 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-27  9:05 UTC (permalink / raw)
  To: dri-devel

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

Eugene Shalygin (eugene.shalygin@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|All                         |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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
  2017-02-27  9:05 ` [Bug 194721] " bugzilla-daemon
  2017-02-27  9:05 ` bugzilla-daemon
@ 2017-02-28  1:15 ` bugzilla-daemon
  2017-02-28  1:39 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-28  1:15 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from Michel Dänzer (michel@daenzer.net) ---
This is https://bugs.freedesktop.org/show_bug.cgi?id=98502 .

I suspect reading the config file always powered up the GPU, but Mesa only
recently started reading the file.

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-02-28  1:15 ` bugzilla-daemon
@ 2017-02-28  1:39 ` bugzilla-daemon
  2017-02-28  1:41 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-28  1:39 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #2 from Eugene Shalygin (eugene.shalygin@gmail.com) ---
Excuse me, but as it is written in the bug report, this was never the case
before, and does not happen on my second (almost identical) laptop which runs
Gentoo and kernel 4.10.0 right now.

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-02-28  1:39 ` bugzilla-daemon
@ 2017-02-28  1:41 ` bugzilla-daemon
  2017-02-28  1:44 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-28  1:41 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #3 from Michel Dänzer (michel@daenzer.net) ---
Are both laptops using the same version of Mesa?

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-02-28  1:41 ` bugzilla-daemon
@ 2017-02-28  1:44 ` bugzilla-daemon
  2017-02-28  1:48 ` bugzilla-daemon
  2017-05-05 18:22 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-28  1:44 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #4 from Eugene Shalygin (eugene.shalygin@gmail.com) ---
Yes, 17.0.0. But does it matter? The problem manifests itself when I do
$ cat /sys/bus/pci/devices/0000:01:00.0/config

or lspci does read this file.

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-02-28  1:44 ` bugzilla-daemon
@ 2017-02-28  1:48 ` bugzilla-daemon
  2017-05-05 18:22 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-02-28  1:48 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #5 from Eugene Shalygin (eugene.shalygin@gmail.com) ---
And the second problem is even worse: if the dGPU was disabled using acpi_call,
any read from that file hangs the reading process somewhere in the kernel. This
also was neither the case before nor happen on the Gentoo machine or in Arch
Linux with kernel version < 4.8.

-- 
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] 9+ messages in thread

* [Bug 194721] Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU
  2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-02-28  1:48 ` bugzilla-daemon
@ 2017-05-05 18:22 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2017-05-05 18:22 UTC (permalink / raw)
  To: dri-devel

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

mathieu.westphal@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathieu.westphal@gmail.com

--- Comment #6 from mathieu.westphal@gmail.com ---
I reproduce this bug as well.

lspci hangs and freeze the system.

-- 
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] 9+ messages in thread

end of thread, other threads:[~2017-05-05 18:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27  9:04 [Bug 194721] New: Reading /sys/bus/pci/devices/0000:01:00.0/config wakes up Radeon dGPU bugzilla-daemon
2017-02-27  9:05 ` [Bug 194721] " bugzilla-daemon
2017-02-27  9:05 ` bugzilla-daemon
2017-02-28  1:15 ` bugzilla-daemon
2017-02-28  1:39 ` bugzilla-daemon
2017-02-28  1:41 ` bugzilla-daemon
2017-02-28  1:44 ` bugzilla-daemon
2017-02-28  1:48 ` bugzilla-daemon
2017-05-05 18:22 ` 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.