]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/mes: fix mes submission in atomic context
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 7 Jul 2022 12:57:34 +0000 (20:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jul 2022 22:25:56 +0000 (18:25 -0400)
commit3439827f5c7ca547022ede9d6c155a6cc854d0ac
treef910e560336e78405a46460c4f482325aaa17378
parentaeeaf667324c79c17471c694d393158ccfb4fa97
drm/amdgpu/mes: fix mes submission in atomic context

For some cases (accessing registers, unmap legacy queue), it needs
access mes in atomic context. Use spinlock to protect agaist mes
ring buffer race condition.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c