]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu: pass xcc mask to ras ta
authorStanley.Yang <Stanley.Yang@amd.com>
Wed, 29 Mar 2023 14:03:09 +0000 (22:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:39:51 +0000 (12:39 -0400)
pass xcc mask to ras ta, ras ta will compare
the mask with the one from chiplet topology.

Changed from V1:
Remove IP version checking.
Set ras_cmd->ras_init_message.init_flags.xcc_mask
directly due to xcc_mask is common structres to
all the devices.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-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/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/ta_ras_if.h

index 789cc16e1be7ee58ba5aaca92d97477441c5e161..3c7c9fca2391025008fa5ada3d26d9b3fbbfd249 100644 (file)
@@ -1655,6 +1655,8 @@ int psp_ras_initialize(struct psp_context *psp)
                ras_cmd->ras_in_message.init_flags.poison_mode_en = 1;
        if (!adev->gmc.xgmi.connected_to_cpu)
                ras_cmd->ras_in_message.init_flags.dgpu_mode = 1;
+       ras_cmd->ras_in_message.init_flags.xcc_mask =
+               adev->gfx.xcc_mask;
 
        ret = psp_ta_load(psp, &psp->ras_context.context);
 
index 30d0482ac466ccbdf4dd9658cd74da24e388be5b..be2984ac00a56d758a2dda5556f86b5620573fdd 100644 (file)
@@ -129,6 +129,7 @@ struct ta_ras_trigger_error_input {
 struct ta_ras_init_flags {
        uint8_t poison_mode_en;
        uint8_t dgpu_mode;
+       uint16_t xcc_mask;
 };
 
 struct ta_ras_output_flags {