Skip to content

Commit 6f3b691

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: Fix ras mode2 reset failure in ras aca mode
Fix ras mode2 reset failure in ras aca mode. Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 506c245 commit 6f3b691

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,10 @@ int amdgpu_ras_bind_aca(struct amdgpu_device *adev, enum amdgpu_ras_block blk,
12501250
{
12511251
struct ras_manager *obj;
12521252

1253+
/* in resume phase, no need to create aca fs node */
1254+
if (adev->in_suspend || amdgpu_in_reset(adev))
1255+
return 0;
1256+
12531257
obj = get_ras_manager(adev, blk);
12541258
if (!obj)
12551259
return -EINVAL;

0 commit comments

Comments
 (0)