Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5140a749 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: print msg id when smu failed.



Print the failed msg when it fails.

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e5432ebd
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -124,9 +124,8 @@ int rv_send_msg_to_smc(struct pp_smumgr *smumgr, uint16_t msg)

	rv_send_msg_to_smc_without_waiting(smumgr, msg);

	PP_ASSERT_WITH_CODE(rv_wait_for_response(smumgr) == 1,
			"Failed to send Message.",
			return -EINVAL);
	if (rv_wait_for_response(smumgr) == 0)
		printk("Failed to send Message %x.\n", msg);

	return 0;
}
@@ -149,9 +148,9 @@ int rv_send_msg_to_smc_with_parameter(struct pp_smumgr *smumgr,

	rv_send_msg_to_smc_without_waiting(smumgr, msg);

	PP_ASSERT_WITH_CODE(rv_wait_for_response(smumgr) == 1,
			"Failed to send Message.",
			return -EINVAL);

	if (rv_wait_for_response(smumgr) == 0)
		printk("Failed to send Message %x.\n", msg);

	return 0;
}