drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Subsystems (2)
PATCH v2 1/1 drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Fix ras mode2 reset failure in ras aca mode.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4 -0
@@ -1254,6 +1254,10 @@ int amdgpu_ras_bind_aca(struct amdgpu_device *adev, enum amdgpu_ras_block blk, {struct ras_manager *obj; +/* in resume phase, no need to create aca fs node */ +if (adev->in_suspend ||amdgpu_in_reset (adev)) +return 0 ; + obj =get_ras_manager (adev, blk);if (!obj)return -EINVAL ;
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Best Regards,
Kevin
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Wednesday, April 24, 2024 1:52 PM
To: [email protected]
Cc: Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH V2] drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Fix ras mode2 reset failure in ras aca mode.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4 -1
@@ -1254,6 +1254,10 @@ int amdgpu_ras_bind_aca(struct amdgpu_device *adev, enum amdgpu_ras_block blk, {struct ras_manager *obj; +/* in resume phase, no need to create aca fs node */ +if (adev->in_suspend ||amdgpu_in_reset (adev)) +return 0 ; + obj =get_ras_manager (adev, blk);if (!obj)return -EINVAL ; --
2.34.1
[AMD Official Use Only - General]
The patch is Reviewed-by: Hawking Zhang <[email protected]>
Kevin, Thomas,
Alternatively, we need to explore the opportunity to centralize legacy ras and aca ras implementation in the same API. Take sysfs create/remove interface for example, legacy RAS and ACA RAS do share the same logic, just have different filesystem node.
For now, ACA RAS is trending to back to IP specific ras late init. Let's revisit the code to see if we can re-use the common ras_late_init or create aca_ras_late_init api.
Regards,
Hawking
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Wednesday, April 24, 2024 13:52
To: [email protected]
Cc: Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH V2] drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Fix ras mode2 reset failure in ras aca mode.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4 -1
@@ -1254,6 +1254,10 @@ int amdgpu_ras_bind_aca(struct amdgpu_device *adev, enum amdgpu_ras_block blk, {struct ras_manager *obj; +/* in resume phase, no need to create aca fs node */ +if (adev->in_suspend ||amdgpu_in_reset (adev)) +return 0 ; + obj =get_ras_manager (adev, blk);if (!obj)return -EINVAL ; --
2.34.1
[AMD Official Use Only - General]
Quoted 2 lines
Quoted 2 lines
Alternatively, we need to explore the opportunity to centralize legacy ras and aca ras implementation in the same API. Take sysfs create/remove interface for example, legacy RAS and ACA RAS do share the same logic, just have different filesystem node. For now, ACA RAS is trending to back to IP specific ras late init. Let's revisit the code to see if we can re-use the common
ras_late_initor createaca_ras_late_initapi.
Sure, thanks.
We will make improvements in this direction.
Best Regards,
Kevin
-----Original Message-----
From: Zhang, Hawking <[email protected]>
Sent: Thursday, April 25, 2024 10:46 AM
To: Chai, Thomas <[email protected]>; [email protected]
Cc: Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Yang, Stanley <[email protected]>
Subject: RE: [PATCH V2] drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
[AMD Official Use Only - General]
The patch is Reviewed-by: Hawking Zhang <[email protected]>
Kevin, Thomas,
Alternatively, we need to explore the opportunity to centralize legacy ras and aca ras implementation in the same API. Take sysfs create/remove interface for example, legacy RAS and ACA RAS do share the same logic, just have different filesystem node.
For now, ACA RAS is trending to back to IP specific ras late init. Let's revisit the code to see if we can re-use the common ras_late_init or create aca_ras_late_init api.
Regards,
Hawking
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Wednesday, April 24, 2024 13:52
To: [email protected]
Cc: Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH V2] drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Fix ras mode2 reset failure in ras aca mode.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4 -1
@@ -1254,6 +1254,10 @@ int amdgpu_ras_bind_aca(struct amdgpu_device *adev, enum amdgpu_ras_block blk, {struct ras_manager *obj; +/* in resume phase, no need to create aca fs node */ +if (adev->in_suspend ||amdgpu_in_reset (adev)) +return 0 ; + obj =get_ras_manager (adev, blk);if (!obj)return -EINVAL ; --
2.34.1