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 <[email protected]> Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 506c245 commit 6f3b691

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)