Skip to contentSkip to conversation

drm/amdgpu: always force full reset for SOC21

PATCH In review Alex Deucher 5 participants 5 messages Mar 24, 2024 – Apr 2, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: always force full reset for SOC21

There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -2
index 581a3bd11481..8526282f4da1 100644
@@ -457,10 +457,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
 {
 	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
 	case IP_VERSION(11, 0, 0):
-		return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
 	case IP_VERSION(11, 0, 2):
 	case IP_VERSION(11, 0, 3):
-		return false;
 	default:
 		return true;
 	}
Signature · 1 line
2.44.0
#1 lore raw
Quoted 2 lines · Alex Deucher

There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now.

Does "for now" mean that a proper fix is being worked on/will appear later?

Immediately falling back to full resets is a really bad experience, and it's especially catastrophic when only MODE1 is available.

Of course, soft resets succeeding but leaving the GPU in a faulty state isn't acceptable either, but I think it's pretty important to keep the ability to do soft resets if at all possible.

If it's not possible to wait with this until the proper fix is available, I hope that at least it can be reverted soon.

Thanks,
Friedrich

Quoted 20 lines
---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -2
index 581a3bd11481..8526282f4da1 100644
@@ -457,10 +457,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
  	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
  	case IP_VERSION(11, 0, 0):
-		return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
  	case IP_VERSION(11, 0, 2):
  	case IP_VERSION(11, 0, 3):
-		return false;
  	default:
  		return true;
  	}
#2 lore raw
Quoted 10 lines · Friedrich Vock
Quoted 2 lines · Alex Deucher

There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now.

Does "for now" mean that a proper fix is being worked on/will appear later?

Immediately falling back to full resets is a really bad experience, and it's especially catastrophic when only MODE1 is available.

Quoted 6 lines

Of course, soft resets succeeding but leaving the GPU in a faulty state isn't acceptable either, but I think it's pretty important to keep the ability to do soft resets if at all possible.

If it's not possible to wait with this until the proper fix is available, I hope that at least it can be reverted soon.

Yes, it's being actively debugged.

Alex

Quoted 24 lines

Thanks,
Friedrich

Quoted 20 lines
---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -2
index 581a3bd11481..8526282f4da1 100644
@@ -457,10 +457,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
      switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
      case IP_VERSION(11, 0, 0):
-             return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
      case IP_VERSION(11, 0, 2):
      case IP_VERSION(11, 0, 3):
-             return false;
      default:
              return true;
      }
#3 lore raw

[AMD Official Use Only - General]

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Monday, March 25, 2024 11:01 AM
To: Friedrich Vock <[email protected]>
Cc: Deucher, Alexander <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: always force full reset for SOC21

Quoted 10 lines · Friedrich Vock
Quoted 2 lines · Alex Deucher

There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now.

Does "for now" mean that a proper fix is being worked on/will appear later?

Immediately falling back to full resets is a really bad experience, and it's especially catastrophic when only MODE1 is available.

Quoted 6 lines

Of course, soft resets succeeding but leaving the GPU in a faulty state isn't acceptable either, but I think it's pretty important to keep the ability to do soft resets if at all possible.

If it's not possible to wait with this until the proper fix is available, I hope that at least it can be reverted soon.

Yes, it's being actively debugged.

Alex

Quoted 24 lines

Thanks,
Friedrich

Quoted 20 lines
---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -2
index 581a3bd11481..8526282f4da1 100644
@@ -457,10 +457,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
      switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
      case IP_VERSION(11, 0, 0):
-             return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
      case IP_VERSION(11, 0, 2):
      case IP_VERSION(11, 0, 3):
-             return false;
      default:
              return true;
      }
Acked-by on v1 1/1
#4 lore raw
In reply to Alex Deucher

Am 24.03.24 um 01:52 schrieb Alex Deucher:

Quoted 4 lines

There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now.

IIRC I've requested some changes to how soft reset is done for SOC21 but never found the time to actually go over the new specification.

We should probably just need to adjust the soft recovery code for those new hardware generations.

Regards,
Christian.

Quoted 19 lines
---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +0 -2
index 581a3bd11481..8526282f4da1 100644
@@ -457,10 +457,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
  {
  	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
  	case IP_VERSION(11, 0, 0):
-		return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
  	case IP_VERSION(11, 0, 2):
  	case IP_VERSION(11, 0, 3):
-		return false;
  	default:
  		return true;
  	}