Skip to content

Commit

Permalink
drm/amdgpu: enable mca debug mode on APU by default
Browse files Browse the repository at this point in the history
enable MCA debug mode on APU device by default.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Yang Wang authored and Alex Deucher committed Nov 30, 2023
1 parent 9596ffe commit f875f61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,8 @@ int amdgpu_ras_late_init(struct amdgpu_device *adev)
if (amdgpu_sriov_vf(adev))
return 0;

amdgpu_ras_set_mca_debug_mode(adev, false);
/* enable MCA debug on APU device */
amdgpu_ras_set_mca_debug_mode(adev, !!(adev->flags & AMD_IS_APU));

list_for_each_entry_safe(node, tmp, &adev->ras_list, node) {
if (!node->ras_obj) {
Expand Down

0 comments on commit f875f61

Please sign in to comment.