mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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>
This commit is contained in:
parent
46791d147d
commit
6588766d08
|
|
@ -335,6 +335,11 @@ static int amdgpu_ras_mgr_hw_init(struct amdgpu_ip_block *ip_block)
|
|||
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;
|
||||
|
||||
|
|
@ -346,6 +351,8 @@ static int amdgpu_ras_mgr_hw_init(struct amdgpu_ip_block *ip_block)
|
|||
|
||||
ras_mgr->ras_is_ready = true;
|
||||
|
||||
amdgpu_enable_uniras(adev, true);
|
||||
|
||||
RAS_DEV_INFO(adev, "AMDGPU RAS Is Ready.\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -355,6 +362,11 @@ static int amdgpu_ras_mgr_hw_fini(struct amdgpu_ip_block *ip_block)
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user