summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2021-07-28 11:07:03 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-15 10:02:16 +0200
commit148bef1825ae82114a40c759d738ae243c29499d (patch)
tree2d72787a4a393e9c0dffad093ba75818f7a6f649 /lib
parentd589ff1e808f0fe3ce2e790c042bd98c29a717c6 (diff)
drm/amd/pm: Fix a bug in semaphore double-lock
[ Upstream commit 544dcd74b7093ad4befac99b11d90331aa73348e ] 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: 5810323ba69289 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions