drm/amd/pm: add pmfw eeprom messages into uniras interface

add pmfw eeprom related messages into smu_v13_0_6_ras_send_msg

v2: add sriov check before sending smu commands

Signed-off-by: Gangliang Xie <ganglxie@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Gangliang Xie 2025-12-11 18:14:46 +08:00 committed by Alex Deucher
parent 366201e790
commit fd58392dc5

View File

@ -3160,14 +3160,25 @@ static int smu_v13_0_6_reset_vcn(struct smu_context *smu, uint32_t inst_mask)
static int smu_v13_0_6_ras_send_msg(struct smu_context *smu, enum smu_message_type msg, uint32_t param, uint32_t *read_arg)
{
struct amdgpu_device *adev = smu->adev;
int ret;
if (amdgpu_sriov_vf(adev))
return -EOPNOTSUPP;
switch (msg) {
case SMU_MSG_QueryValidMcaCount:
case SMU_MSG_QueryValidMcaCeCount:
case SMU_MSG_McaBankDumpDW:
case SMU_MSG_McaBankCeDumpDW:
case SMU_MSG_ClearMcaOnRead:
case SMU_MSG_GetRASTableVersion:
case SMU_MSG_GetBadPageCount:
case SMU_MSG_GetBadPageMcaAddr:
case SMU_MSG_SetTimestamp:
case SMU_MSG_GetTimestamp:
case SMU_MSG_GetBadPageIpid:
case SMU_MSG_EraseRasTable:
ret = smu_cmn_send_smc_msg_with_param(smu, msg, param, read_arg);
break;
default: