mirror-linux/drivers/gpu/drm/amd
Orlando Chamberlain 78e32896ec drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmux
[ Upstream commit d37a3929ca ]

Commit 3840c5bcc2 ("drm/amdgpu: disentangle runtime pm and
vga_switcheroo") made amdgpu only register a vga_switcheroo client for
GPU's with PX, however AMD GPUs in dual gpu Apple Macbooks do need to
register, but don't have PX. Instead of AMD's PX, they use apple-gmux.

Use apple_gmux_detect() to identify these gpus, and
pci_is_thunderbolt_attached() to ensure eGPUs connected to Dual GPU
Macbooks don't register with vga_switcheroo.

Fixes: 3840c5bcc2 ("drm/amdgpu: disentangle runtime pm and vga_switcheroo")
Link: https://lore.kernel.org/amd-gfx/20230210044826.9834-10-orlandoch.dev@gmail.com/
Signed-off-by: Orlando Chamberlain <orlandoch.dev@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:07 +09:00
..
acp
amdgpu drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmux 2023-05-11 23:03:07 +09:00
amdkfd drm/amdkfd: Get prange->offset after svm_range_vram_node_new 2023-04-06 12:10:58 +02:00
display drm/amd/display: fix a divided-by-zero error 2023-05-11 23:03:03 +09:00
include drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback 2022-12-31 13:33:01 +01:00
pm drm/amd/pm: re-enable the gfx imu when smu resume 2023-05-11 23:03:04 +09:00