drm/amdgpu/smu: add metrics table lock for vega20 (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Dec 2019 14:51:40 +0000 (09:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:19:56 +0000 (10:19 +0100)
commitf72e33675f3fd2d5808efd101d737b1517154bf3
tree226f0fa44d7e0b3f1ed11dee6baf31eaa880dae1
parent86164784cfbe7a23f91d2cf6e0dba82d61f38c32
drm/amdgpu/smu: add metrics table lock for vega20 (v2)

commit 1c455101c6d10c99b310d6bcf613244c97854012 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/vega20_ppt.c