drm/amdgpu/psp: add a mutex to protect access to the psp ring
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2019 18:33:22 +0000 (13:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Jul 2019 22:43:39 +0000 (17:43 -0500)
commit32eaeae0ef193b64a67177006bdf5d9130d83fd3
tree019d9b1ca2306cabe125a216916eb9b106e09524
parent7f963d9f69bf28d639013630da30d7a4c95edd5d
drm/amdgpu/psp: add a mutex to protect access to the psp ring

We need to serialize access to the psp ring if there are multiple
callers at runtime.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h