drm/amdgpu: Move mca debug mode decision to ras
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 9 Nov 2023 05:20:38 +0000 (10:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 21:49:01 +0000 (16:49 -0500)
commit201761b5eb57c3fad810cde555795c3b5721a031
tree7e3a9037888ec23903120e0bf7887e9f8467629e
parentdb4616f7667c9d1f733ec360a754a4d7fd32c28e
drm/amdgpu: Move mca debug mode decision to ras

Refactor code such that ras block decides the default mca debug mode,
and not swsmu block.

By default mca debug mode is set to false.

v2: squash in uninitialized value fix (Alex)

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c