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

commit e0e384c398d4638e54b6d2098f0ceaafdab870ee 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/navi10_ppt.c