]> 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)
commit5cd9173b59139adc3cc949d3d6a53030459ac80e
tree019d9b1ca2306cabe125a216916eb9b106e09524
parenta310b686f963262aabc257de6bf139fa2ce42a8d
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