]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24616f230b71913ba9d7d4275b53dca583c7d47b
tree019d9b1ca2306cabe125a216916eb9b106e09524
parent92a7267774d37b0f7f180e27b8a3fe00680c36bc
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