Skip to content

Commit e771d71

Browse files
Luben Tuikovalexdeucher
authored andcommitted
drm/amd/pm: Print the error on command submission
Print the error on command submission immediately after submitting to the SMU. This is rate-limited. It helps to immediately know there was an error on command submission, rather than leave it up to clients to report the error, as sometimes they do not. Cc: Alex Deucher <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent dc78fea commit e771d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
352352
__smu_cmn_send_msg(smu, (uint16_t) index, param);
353353
reg = __smu_cmn_poll_stat(smu);
354354
res = __smu_cmn_reg2errno(smu, reg);
355-
if (res == -EREMOTEIO)
355+
if (res != 0)
356356
__smu_cmn_reg_print_error(smu, reg, index, param, msg);
357357
if (read_arg)
358358
smu_cmn_read_arg(smu, read_arg);

0 commit comments

Comments
 (0)