struct amdgpu_ras_mgr *ras_mgr = amdgpu_ras_mgr_get_context(adev);
int ret;
+ /* Currently only debug mode can enable the ras module
+ */
+ if (!adev->debug_enable_ras_aca)
+ return 0;
+
if (!ras_mgr || !ras_mgr->ras_core)
return -EINVAL;
ras_mgr->ras_is_ready = true;
+ amdgpu_enable_uniras(adev, true);
+
RAS_DEV_INFO(adev, "AMDGPU RAS Is Ready.\n");
return 0;
}
struct amdgpu_device *adev = ip_block->adev;
struct amdgpu_ras_mgr *ras_mgr = amdgpu_ras_mgr_get_context(adev);
+ /* Currently only debug mode can enable the ras module
+ */
+ if (!adev->debug_enable_ras_aca)
+ return 0;
+
if (!ras_mgr || !ras_mgr->ras_core)
return -EINVAL;