drm/amd/ras: Add vram_type to ras_ta_init_flags

Add vram_type to ras_ta_init_flags.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Candice Li 2025-12-05 09:16:26 +08:00 committed by Alex Deucher
parent d6e8148328
commit 90254524ee
4 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,7 @@ static int amdgpu_ras_mgr_get_ras_ta_init_param(struct ras_core_context *ras_cor
ras_ta_param->channel_dis_num = hweight32(adev->gmc.m_half_use) * 2;
ras_ta_param->active_umc_mask = adev->umc.active_mask;
ras_ta_param->vram_type = (uint8_t)adev->gmc.vram_type;
if (!amdgpu_ras_mgr_get_curr_nps_mode(adev, &nps_mode))
ras_ta_param->nps_mode = nps_mode;

View File

@ -507,6 +507,7 @@ static int send_load_ta_fw_cmd(struct ras_core_context *ras_core,
ta_init_flags->channel_dis_num = ta_ctx->init_param.channel_dis_num;
ta_init_flags->nps_mode = ta_ctx->init_param.nps_mode;
ta_init_flags->active_umc_mask = ta_ctx->init_param.active_umc_mask;
ta_init_flags->vram_type = ta_ctx->init_param.vram_type;
/* Setup load ras ta command */
memset(&psp_load_ta_cmd, 0, sizeof(psp_load_ta_cmd));

View File

@ -51,6 +51,7 @@ struct ras_ta_init_param {
uint8_t channel_dis_num;
uint8_t nps_mode;
uint32_t active_umc_mask;
uint8_t vram_type;
};
struct gpu_mem_block {

View File

@ -167,6 +167,7 @@ struct ras_ta_init_flags {
uint8_t channel_dis_num;
uint8_t nps_mode;
uint32_t active_umc_mask;
uint8_t vram_type;
};
struct ras_ta_mca_addr {