mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
drm/amdgpu: add ext_umc_mask to RAS TA init
Add ext_umc_mask for the upper half of adev->umc.active_mask and fill both fields when building RAS TA init message. Signed-off-by: Candice Li <candice.li@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
87d30adf9a
commit
37608c5089
|
|
@ -2453,8 +2453,9 @@ int psp_ras_initialize(struct psp_context *psp)
|
|||
if (adev->gmc.gmc_funcs->query_mem_partition_mode)
|
||||
ras_cmd->ras_in_message.init_flags.nps_mode =
|
||||
adev->gmc.gmc_funcs->query_mem_partition_mode(adev);
|
||||
ras_cmd->ras_in_message.init_flags.active_umc_mask = adev->umc.active_mask;
|
||||
ras_cmd->ras_in_message.init_flags.active_umc_mask = lower_32_bits(adev->umc.active_mask);
|
||||
ras_cmd->ras_in_message.init_flags.vram_type = (uint8_t)adev->gmc.vram_type;
|
||||
ras_cmd->ras_in_message.init_flags.ext_umc_mask = upper_32_bits(adev->umc.active_mask);
|
||||
|
||||
ret = psp_ta_load(psp, &psp->ras_context.context);
|
||||
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ struct ta_ras_init_flags {
|
|||
uint8_t nps_mode;
|
||||
uint32_t active_umc_mask;
|
||||
uint8_t vram_type;
|
||||
uint32_t ext_umc_mask;
|
||||
};
|
||||
|
||||
struct ta_ras_mca_addr {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user