Skip to contentSkip to conversation

drm/amdgpu: Enable mca debug mode mode when ras enabled

PATCH In review Stanley.Yang 2 participants 2 messages Oct 18, 2023

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

PATCH v2 1/1 drm/amdgpu: Enable mca debug mode mode when ras enabled

Enable smu_v13_0_6 mca debug mode if ras is enabled.

Changed from V1:
enable mca debug mode if ras enabled.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +1 -1
index cab5a5569bc6..89c63237e470 100644
@@ -2298,7 +2298,7 @@ static int smu_v13_0_6_post_init(struct smu_context *smu)
 {
 	struct amdgpu_device *adev = smu->adev;
 
-	if (!amdgpu_sriov_vf(adev) && amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+	if (!amdgpu_sriov_vf(adev) && adev->ras_enabled)
 		return smu_v13_0_6_mca_set_debug_mode(smu, true);
 
 	return 0;
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Stanley.Yang
Sent: Wednesday, October 18, 2023 21:10
To: [email protected]
Cc: Yang, Stanley <[email protected]>
Subject: [PATCH Review V2 1/1] drm/amdgpu: Enable mca debug mode mode when ras enabled

Enable smu_v13_0_6 mca debug mode if ras is enabled.

Changed from V1:
enable mca debug mode if ras enabled.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +1 -2
index cab5a5569bc6..89c63237e470 100644
@@ -2298,7 +2298,7 @@ static int smu_v13_0_6_post_init(struct smu_context *smu)  {
        struct amdgpu_device *adev = smu->adev;
 
-       if (!amdgpu_sriov_vf(adev) && amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+       if (!amdgpu_sriov_vf(adev) && adev->ras_enabled)
                return smu_v13_0_6_mca_set_debug_mode(smu, true);
 
        return 0;
--

2.25.1