Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gangliang Xie and committed by
Alex Deucher
fd58392d 366201e7

+11
+11
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
··· 3160 3160 3161 3161 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) 3162 3162 { 3163 + struct amdgpu_device *adev = smu->adev; 3163 3164 int ret; 3165 + 3166 + if (amdgpu_sriov_vf(adev)) 3167 + return -EOPNOTSUPP; 3164 3168 3165 3169 switch (msg) { 3166 3170 case SMU_MSG_QueryValidMcaCount: ··· 3172 3168 case SMU_MSG_McaBankDumpDW: 3173 3169 case SMU_MSG_McaBankCeDumpDW: 3174 3170 case SMU_MSG_ClearMcaOnRead: 3171 + case SMU_MSG_GetRASTableVersion: 3172 + case SMU_MSG_GetBadPageCount: 3173 + case SMU_MSG_GetBadPageMcaAddr: 3174 + case SMU_MSG_SetTimestamp: 3175 + case SMU_MSG_GetTimestamp: 3176 + case SMU_MSG_GetBadPageIpid: 3177 + case SMU_MSG_EraseRasTable: 3175 3178 ret = smu_cmn_send_smc_msg_with_param(smu, msg, param, read_arg); 3176 3179 break; 3177 3180 default: