Skip to content

Commit 536ae08

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Require CONFIG_HOTPLUG_PCI_PCIE for BOCO
If the kernel hasn't been compiled with PCIe hotplug support this can lead to problems with dGPUs that use BOCO because they effectively drop off the bus. To prevent issues, disable BOCO support when compiled without PCIe hotplug. Reported-by: Gabriel Marcano <gabemarcano@yahoo.com> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1707#note_2696862 Acked-by: Alex Deucher <alexander.deucher@amd.com> Link: https://lore.kernel.org/r/20241211155601.3585256-1-superm1@kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 1ad5bdc)
1 parent d172ea6 commit 536ae08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ bool amdgpu_device_supports_boco(struct drm_device *dev)
417417
{
418418
struct amdgpu_device *adev = drm_to_adev(dev);
419419

420+
if (!IS_ENABLED(CONFIG_HOTPLUG_PCI_PCIE))
421+
return false;
422+
420423
if (adev->has_pr3 ||
421424
((adev->flags & AMD_IS_PX) && amdgpu_is_atpx_hybrid()))
422425
return true;

0 commit comments

Comments
 (0)