]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: Fix a bug in semaphore double-lock
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 28 Jul 2021 15:07:03 +0000 (11:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Jul 2021 02:15:44 +0000 (22:15 -0400)
commitd8159f408817ab7fc200b65aa256e35fbea954c3
tree96900ef5f94d411dda6dcf00809a9a967e0bd613
parent5bd65db9d89565d2a8a10928726f5859c686c397
drm/amd/pm: Fix a bug in semaphore double-lock

Fix a bug in smu_cmn_send_msg_without_waiting() in
that this function does not need to take the
smu->message_lock mutex in order to send a message
down to the SMU. The mutex is acquired by the
caller of this function instead.

Cc: Alex Deucher <Alexander.Deucher@amd.com>
Cc: Changfeng Zhu <Changfeng.Zhu@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Fixes: a817ad9b320f1f ("drm/amd/pm: Fix a bug communicating with the SMU (v5)")
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c