Skip to content

Commit 6588766

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: Enable ras module
Enable ras module, disabled by default. Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 46791d1 commit 6588766

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ static int amdgpu_ras_mgr_hw_init(struct amdgpu_ip_block *ip_block)
335335
struct amdgpu_ras_mgr *ras_mgr = amdgpu_ras_mgr_get_context(adev);
336336
int ret;
337337

338+
/* Currently only debug mode can enable the ras module
339+
*/
340+
if (!adev->debug_enable_ras_aca)
341+
return 0;
342+
338343
if (!ras_mgr || !ras_mgr->ras_core)
339344
return -EINVAL;
340345

@@ -346,6 +351,8 @@ static int amdgpu_ras_mgr_hw_init(struct amdgpu_ip_block *ip_block)
346351

347352
ras_mgr->ras_is_ready = true;
348353

354+
amdgpu_enable_uniras(adev, true);
355+
349356
RAS_DEV_INFO(adev, "AMDGPU RAS Is Ready.\n");
350357
return 0;
351358
}
@@ -355,6 +362,11 @@ static int amdgpu_ras_mgr_hw_fini(struct amdgpu_ip_block *ip_block)
355362
struct amdgpu_device *adev = ip_block->adev;
356363
struct amdgpu_ras_mgr *ras_mgr = amdgpu_ras_mgr_get_context(adev);
357364

365+
/* Currently only debug mode can enable the ras module
366+
*/
367+
if (!adev->debug_enable_ras_aca)
368+
return 0;
369+
358370
if (!ras_mgr || !ras_mgr->ras_core)
359371
return -EINVAL;
360372

0 commit comments

Comments
 (0)