drm/amdgpu/smu: add metrics table lock for arcturus (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Dec 2019 14:49:52 +0000 (09:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:19:55 +0000 (10:19 +0100)
commit881b399da3a160273905010a154e07bdeb003109
tree93e353f515373d79637bd0bf3fba972aee571ea7
parent7514bbe97516963d6071c37bd06eadd9ad463d1d
drm/amdgpu/smu: add metrics table lock for arcturus (v2)

commit 1da87c9f67c98d552679974dbfc1f0f65b6a0a53 upstream.

To protect access to the metrics table.

v2: unlock on error

Bug: https://gitlab.freedesktop.org/drm/amd/issues/900
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c