Commit ec70578c authored by Hawking Zhang's avatar Hawking Zhang Committed by Alex Deucher

drm/amdgpu: Allow issue disable gfx ras cmd to firmware

Disable gfx ras command is needed in some use cases
Signed-off-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e370f8f3
...@@ -769,9 +769,10 @@ int amdgpu_ras_feature_enable(struct amdgpu_device *adev, ...@@ -769,9 +769,10 @@ int amdgpu_ras_feature_enable(struct amdgpu_device *adev,
if (!con) if (!con)
return -EINVAL; return -EINVAL;
/* Do not enable ras feature if it is not allowed */ /* For non-gfx ip, do not enable ras feature if it is not allowed */
if (enable && /* For gfx ip, regardless of feature support status, */
head->block != AMDGPU_RAS_BLOCK__GFX && /* Force issue enable or disable ras feature commands */
if (head->block != AMDGPU_RAS_BLOCK__GFX &&
!amdgpu_ras_is_feature_allowed(adev, head)) !amdgpu_ras_is_feature_allowed(adev, head))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment