drm/amdgpu: Disable DPC for XGMI for now.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 24 Aug 2020 18:41:56 +0000 (14:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:25:22 +0000 (17:25 -0400)
XGMI support is more complicated than single device support as
questions of synchronization between the device recovering from
PCI error and other members of the hive are required.
Leaving this for next round.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index ab42d0088f5745da22245b4f6cb0e2e323864642..36231fe9e4e5fd1b86edf4954ab30589b9d9b15d 100644 (file)
@@ -4783,6 +4783,11 @@ pci_ers_result_t amdgpu_pci_error_detected(struct pci_dev *pdev, pci_channel_sta
 
        DRM_INFO("PCI error: detected callback, state(%d)!!\n", state);
 
+       if (adev->gmc.xgmi.num_physical_nodes > 1) {
+               DRM_WARN("No support for XGMI hive yet...");
+               return PCI_ERS_RESULT_DISCONNECT;
+       }
+
        switch (state) {
        case pci_channel_io_normal:
                return PCI_ERS_RESULT_CAN_RECOVER;