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>
Wed, 18 Dec 2019 21:09:13 +0000 (16:09 -0500)
commit885d386540129e5bf5eec0c10dde3dd1380ef1f8
tree4f0a916161c89368b7b2ddc6acb3d28c53cb6c49
parent59847dc82cf2b490af82bf37f35c97f8dedb49b8
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>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c