drm/amdgpu: enable mca debug mode on APU by default
Subsystems (2)
PATCH 1/1 drm/amdgpu: enable mca debug mode on APU by default
enable MCA debug mode on APU device by default.
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
@@ -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) {
Signature · 1 line
2.34.1
[AMD Official Use Only - General]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Thursday, November 30, 2023 18:46
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amdgpu: enable mca debug mode on APU by default
enable MCA debug mode on APU device by default.
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
@@ -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) {
--
2.34.1