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)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 29 Dec 2019 06:58:04 +0000 (01:58 -0500)
commite0e384c398d4638e54b6d2098f0ceaafdab870ee
tree3910bd91f776dd40675692ed641bdf8ed90ffe35
parent1da87c9f67c98d552679974dbfc1f0f65b6a0a53
drm/amdgpu/smu: add metrics table lock for navi (v2)

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
drivers/gpu/drm/amd/powerplay/navi10_ppt.c