diff options
author | Lukas Wunner <lukas@wunner.de> | 2017-03-10 21:23:45 +0100 |
---|---|---|
committer | Lukas Wunner <lukas@wunner.de> | 2017-03-30 22:42:30 +0200 |
commit | 7ffb0ce31cf90c21dfa496c19c2c795534b12e76 (patch) | |
tree | b31c059ba32a46e25504c6fa37aad90a921f3abf /drivers/gpu/drm/radeon/radeon_kms.c | |
parent | 8531e283bee66050734fb0e89d53e85fd5ce24a4 (diff) | |
download | op-kernel-dev-7ffb0ce31cf90c21dfa496c19c2c795534b12e76.zip op-kernel-dev-7ffb0ce31cf90c21dfa496c19c2c795534b12e76.tar.gz |
drm/radeon: 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/72d8a9645aece3eff44e116303f0fec8be061c88.1489145162.git.lukas@wunner.de
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_kms.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 56f35c0..e95ceec 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -115,7 +115,8 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags) if ((radeon_runtime_pm != 0) && radeon_has_atpx() && - ((flags & RADEON_IS_IGP) == 0)) + ((flags & RADEON_IS_IGP) == 0) && + !pci_is_thunderbolt_attached(rdev->pdev)) flags |= RADEON_IS_PX; /* radeon_device_init should report only fatal error |