Skip to contentSkip to conversation

drm/amdgpu/vega20: use mode1 reset for RAS and XGMI

PATCH In review Alex Deucher 2 participants 2 messages May 15, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/vega20: use mode1 reset for RAS and XGMI

If RAS or XGMI are enabled, you have to use mode1 reset rather than BACO.

---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +9 -0
index 16c747f838ee..cf63b4dada4b 100644
@@ -65,6 +65,8 @@
 #include "dce_virtual.h"
 #include "mxgpu_ai.h"
 #include "amdgpu_smu.h"
+#include "amdgpu_ras.h"
+#include "amdgpu_xgmi.h"
 #include <uapi/linux/kfd_ioctl.h>
 
 #define mmMP0_MISC_CGTT_CTRL0                                                                   0x01b9
@@ -476,6 +478,13 @@ static int soc15_asic_reset(struct amdgpu_device *adev)
 			soc15_asic_get_baco_capability(adev, &baco_reset);
 		else
 			baco_reset = false;
+		if (baco_reset) {
+			struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev, 0);
+			struct amdgpu_ras *ras = amdgpu_ras_get_context(adev);
+
+			if (hive || (ras && ras->supported))
+				baco_reset = false;
+		}
 		break;
 	default:
 		baco_reset = false;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20190515202930.15701-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by Andrey Grodzovsky
#2 lore raw

Andrey

Quoted 40 lines · Alex Deucher

[CAUTION: External Email]

If RAS or XGMI are enabled, you have to use mode1 reset rather than BACO.

---
  drivers/gpu/drm/amd/amdgpu/soc15.c | 9 +++++++++
  1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15.c +9 -1
index 16c747f838ee..cf63b4dada4b 100644
@@ -65,6 +65,8 @@
  #include "dce_virtual.h"
  #include "mxgpu_ai.h"
  #include "amdgpu_smu.h"
+#include "amdgpu_ras.h"
+#include "amdgpu_xgmi.h"
  #include <uapi/linux/kfd_ioctl.h>
 
  #define mmMP0_MISC_CGTT_CTRL0                                                                   0x01b9
@@ -476,6 +478,13 @@ static int soc15_asic_reset(struct amdgpu_device *adev)
                         soc15_asic_get_baco_capability(adev, &baco_reset);
                 else
                         baco_reset = false;
+               if (baco_reset) {
+                       struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev, 0);
+                       struct amdgpu_ras *ras = amdgpu_ras_get_context(adev);
+
+                       if (hive || (ras && ras->supported))
+                               baco_reset = false;
+               }
                 break;
         default:
                 baco_reset = false;
--

2.20.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx