Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1343116 > unrolled thread

Re: Enable CONFIG_VGA_SWITCHEROO cause lspci on MSI GS60-070XCN stuck

Started byLukas Wunner <lukas@wunner.de>
First post2016-02-25 12:20 +0100
Last post2016-02-29 17:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Enable CONFIG_VGA_SWITCHEROO cause lspci on MSI GS60-070XCN stuck Lukas Wunner <lukas@wunner.de> - 2016-02-25 12:20 +0100
    Re: Enable CONFIG_VGA_SWITCHEROO cause lspci on MSI GS60-070XCN stuck Daniel Vetter <daniel@ffwll.ch> - 2016-02-29 17:40 +0100

#1343116 — Re: Enable CONFIG_VGA_SWITCHEROO cause lspci on MSI GS60-070XCN stuck

FromLukas Wunner <lukas@wunner.de>
Date2016-02-25 12:20 +0100
SubjectRe: Enable CONFIG_VGA_SWITCHEROO cause lspci on MSI GS60-070XCN stuck
Message-ID<r627E-2Zd-9@gated-at.bofh.it>
Hi,

On Wed, Feb 24, 2016 at 11:32:15PM +0800, Drunkard Zhang wrote:
> I may hit a bug, when enabled CONFIG_VGA_SWITCHEROO, run lspci command
> on MSI GS60-070XCN will stuck, it eats 100% CPU of one core, and
> CPU/memory allocation on this system fails sometimes.

Sounds like a deadlock. Does reverting 8f12a3118f55 ("vga_switcheroo:
Add missing locking") help?

If not I'd suspect this to be caused by a codepath in nouveau which is
only executed if CONFIG_VGA_SWITCHEROO is enabled. I believe Maxwell
support is still somewhat limited. Does unloading or blacklisting
nouveau help?

Best regards,

Lukas

> 
> I'll bisect later, put my enviroment here, hope you guys give me some hint :)
> 
> Tested kernel versions are: latest Linus' kernel code, 4.4.2-gentoo;
> 
> My hardware info:
> 
> 23:25:37 ~ # lspci
> 00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM
> Registers (rev 07)
> 00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
> 00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
> 00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI
> Controller (rev 31)
> 00:14.2 Signal processing controller: Intel Corporation Sunrise
> Point-H Thermal subsystem (rev 31)
> 00:16.0 Communication controller: Intel Corporation Sunrise Point-H
> CSME HECI #1 (rev 31)
> 00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA
> Controller [AHCI mode] (rev 31)
> 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> Port #1 (rev f1)
> 00:1c.2 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> Port #3 (rev f1)
> 00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> Port #4 (rev f1)
> 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> Port #5 (rev f1)
> 00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> Port #9 (rev f1)
> 00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
> 00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
> 00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
> 00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
> 01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
> 02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless
> Network Adapter (rev 20)
> 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
> RTS5249 PCI Express Card Reader (rev 01)
> 04:00.0 Ethernet controller: Qualcomm Atheros Device e0a1 (rev 10)
> 05:00.0 PCI bridge: Intel Corporation Device 1576
> 06:00.0 PCI bridge: Intel Corporation Device 1576
> 06:01.0 PCI bridge: Intel Corporation Device 1576
> 06:02.0 PCI bridge: Intel Corporation Device 1576
> 07:00.0 System peripheral: Intel Corporation Device 1575
> 09:00.0 USB controller: Intel Corporation Device 15b5
> 3e:00.0 Non-Volatile memory controller: Toshiba America Info Systems
> Device 010f (rev 01)
> 
> Any other hints?

[toc] | [next] | [standalone]


#1345980

FromDaniel Vetter <daniel@ffwll.ch>
Date2016-02-29 17:40 +0100
Message-ID<r7z1x-5sW-35@gated-at.bofh.it>
In reply to#1343116
On Thu, Feb 25, 2016 at 12:18:25PM +0100, Lukas Wunner wrote:
> Hi,
> 
> On Wed, Feb 24, 2016 at 11:32:15PM +0800, Drunkard Zhang wrote:
> > I may hit a bug, when enabled CONFIG_VGA_SWITCHEROO, run lspci command
> > on MSI GS60-070XCN will stuck, it eats 100% CPU of one core, and
> > CPU/memory allocation on this system fails sometimes.
> 
> Sounds like a deadlock. Does reverting 8f12a3118f55 ("vga_switcheroo:
> Add missing locking") help?
> 
> If not I'd suspect this to be caused by a codepath in nouveau which is
> only executed if CONFIG_VGA_SWITCHEROO is enabled. I believe Maxwell
> support is still somewhat limited. Does unloading or blacklisting
> nouveau help?

http://www.spinics.net/lists/dri-devel/msg101339.html

might be relevant, no idea ...
-Daniel

> 
> Best regards,
> 
> Lukas
> 
> > 
> > I'll bisect later, put my enviroment here, hope you guys give me some hint :)
> > 
> > Tested kernel versions are: latest Linus' kernel code, 4.4.2-gentoo;
> > 
> > My hardware info:
> > 
> > 23:25:37 ~ # lspci
> > 00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM
> > Registers (rev 07)
> > 00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
> > 00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
> > 00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI
> > Controller (rev 31)
> > 00:14.2 Signal processing controller: Intel Corporation Sunrise
> > Point-H Thermal subsystem (rev 31)
> > 00:16.0 Communication controller: Intel Corporation Sunrise Point-H
> > CSME HECI #1 (rev 31)
> > 00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA
> > Controller [AHCI mode] (rev 31)
> > 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> > Port #1 (rev f1)
> > 00:1c.2 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> > Port #3 (rev f1)
> > 00:1c.3 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> > Port #4 (rev f1)
> > 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> > Port #5 (rev f1)
> > 00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root
> > Port #9 (rev f1)
> > 00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
> > 00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
> > 00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
> > 00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
> > 01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
> > 02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless
> > Network Adapter (rev 20)
> > 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd.
> > RTS5249 PCI Express Card Reader (rev 01)
> > 04:00.0 Ethernet controller: Qualcomm Atheros Device e0a1 (rev 10)
> > 05:00.0 PCI bridge: Intel Corporation Device 1576
> > 06:00.0 PCI bridge: Intel Corporation Device 1576
> > 06:01.0 PCI bridge: Intel Corporation Device 1576
> > 06:02.0 PCI bridge: Intel Corporation Device 1576
> > 07:00.0 System peripheral: Intel Corporation Device 1575
> > 09:00.0 USB controller: Intel Corporation Device 15b5
> > 3e:00.0 Non-Volatile memory controller: Toshiba America Info Systems
> > Device 010f (rev 01)
> > 
> > Any other hints?
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web