]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/pm: record mca debug mode in RAS
authorTao Zhou <tao.zhou1@amd.com>
Thu, 12 Oct 2023 03:24:10 +0000 (11:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 22:41:21 +0000 (18:41 -0400)
Call amdgpu_ras_set_mca_debug_mode when we set mca debug mode in smu
v13_0_6.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 60eb6f8af1873b57accf15cd3469d122fe1950c8..f42b48b31927071d90f7af5eb7474d8d778b34b7 100644 (file)
@@ -1478,6 +1478,7 @@ static int smu_v13_0_6_mca_set_debug_mode(struct smu_context *smu, bool enable)
        if (smu->smc_fw_version < 0x554800)
                return 0;
 
+       amdgpu_ras_set_mca_debug_mode(smu->adev, enable);
        return smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_ClearMcaOnRead,
                                               enable ? 0 : ClearMcaOnRead_UE_FLAG_MASK | ClearMcaOnRead_CE_POLL_MASK,
                                               NULL);