Skip to contentSkip to conversation

drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0

PATCH Superseded Candice Li 3 participants 4 messages Sep 8, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Candice Li

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0

Enable full reset for RAS supported configuration on gc v11_0_0.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -0
index a26c5723c46e27..81f32d77c98cd5 100644
@@ -421,6 +421,10 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
 {
 	switch (adev->ip_versions[GC_HWIP][0]) {
 	case IP_VERSION(11, 0, 0):
+		if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+			return true;
+		else
+			return false;
 	case IP_VERSION(11, 0, 2):
 		return false;
 	default:
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Hawking
From: amd-gfx <[email protected]> on behalf of Candice Li <[email protected]>
Date: Thursday, September 8, 2022 at 09:13
To: [email protected] <[email protected]>
Cc: Li, Candice <[email protected]>
Subject: [PATCH] drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0 Enable full reset for RAS supported configuration on gc v11_0_0.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -0
index a26c5723c46e27..81f32d77c98cd5 100644
@@ -421,6 +421,10 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
 {
         switch (adev->ip_versions[GC_HWIP][0]) {
         case IP_VERSION(11, 0, 0):
+               if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+                       return true;
+               else
+                       return false;
         case IP_VERSION(11, 0, 2):
                 return false;
         default:

--
2.17.1

#2 lore raw
In reply to Candice Li

Am 2022-09-07 um 21:10 schrieb Candice Li:

Quoted 12 lines

Enable full reset for RAS supported configuration on gc v11_0_0.

---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -0
index a26c5723c46e27..81f32d77c98cd5 100644

drivers/gpu/drm/amd/amdgpu/soc21.c static bool soc21_need_full_reset(struct amdgpu_device *adev) · line 427

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -0
@@ -421,6 +421,10 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
  	switch (adev->ip_versions[GC_HWIP][0]) {
  	case IP_VERSION(11, 0, 0):
+		if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+			return true;
+		else
+			return false;

Is there a reason why this can't be written simply as

    return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);

Regards,
  Felix

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -0
  	case IP_VERSION(11, 0, 2):
  		return false;
  	default:
#3 lore raw

[AMD Official Use Only - General]

Good point, thanks for the review. I will send a new one.

Thanks,
Candice

-----Original Message-----
From: Kuehling, Felix <[email protected]>
Sent: Thursday, September 8, 2022 11:54 AM
To: Li, Candice <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0

Am 2022-09-07 um 21:10 schrieb Candice Li:

Quoted 12 lines

Enable full reset for RAS supported configuration on gc v11_0_0.

---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -0
index a26c5723c46e27..81f32d77c98cd5 100644

drivers/gpu/drm/amd/amdgpu/soc21.c static bool soc21_need_full_reset(struct amdgpu_device *adev) · line 427

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -0
@@ -421,6 +421,10 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
  	switch (adev->ip_versions[GC_HWIP][0]) {
  	case IP_VERSION(11, 0, 0):
+		if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
+			return true;
+		else
+			return false;

Is there a reason why this can't be written simply as

    return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);

Regards,
  Felix

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -0
  	case IP_VERSION(11, 0, 2):
  		return false;
  	default: