drm/amdgpu: always force full reset for SOC21
Subsystems (2)
Alex Deucher
maintainerPATCH 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
@@ -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
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
Signed-off-by Alex Deucher<[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc21.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/amdgpu/soc21.c +0
-2@@ -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; }
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,
FriedrichQuoted 20 lines
Signed-off-by Alex Deucher<[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc21.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/amdgpu/soc21.c +0
-2@@ -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; }
Kasiviswanathan, Harish
Reviewed-by[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,
FriedrichQuoted 20 lines
Signed-off-by Alex Deucher<[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc21.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/amd/amdgpu/soc21.c +0
-2@@ -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; }
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.
Signed-off-by Alex Deucher <[email protected]>
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@@ -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; }