drm/amdgpu: 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)
commit84c8b22e9fe8d9a7f2ab3d561a6b4576540f5a31
tree53ead813505c6efe3ea29d23f9ca356f64eaf3b9
parent7ffb0ce31cf90c21dfa496c19c2c795534b12e76
drm/amdgpu: 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.  Moreover AMD's Windows driver special-cases Thunderbolt as
well.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: http://patchwork.freedesktop.org/patch/msgid/701a8e89ce8ac39734736ab779558b6a4042a19e.1489145162.git.lukas@wunner.de
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c