drm/nouveau: Don't register Thunderbolt eGPU with vga_switcheroo
authorLukas Wunner <lukas@wunner.de>
Fri, 10 Mar 2017 20:23:45 +0000 (21:23 +0100)
committerLukas Wunner <lukas@wunner.de>
Thu, 30 Mar 2017 20:42:30 +0000 (22:42 +0200)
commit1d3c11030103680a30bbe78b599f7e009bba3bc6
treeed44125c33a5041055018d7f9744adc7f44e51d9
parent84c8b22e9fe8d9a7f2ab3d561a6b4576540f5a31
drm/nouveau: Don't register Thunderbolt eGPU with vga_switcheroo

An external Thunderbolt GPU can neither drive the laptop's panel nor be
powered off by the platform, so there's no point in registering it with
vga_switcheroo.  In fact, when the external GPU is runtime suspended,
vga_switcheroo will cut power to the internal discrete GPU, resulting in
a lockup.

Cc: Ben Skeggs <bskeggs@redhat.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: http://patchwork.freedesktop.org/patch/msgid/8e733152b13e7c14501ad5af45c1c5c736584111.1489145162.git.lukas@wunner.de
drivers/gpu/drm/nouveau/nouveau_vga.c