]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Add a mutex lock to protect poison injection
authorCe Sun <cesun102@amd.com>
Tue, 19 Aug 2025 06:47:05 +0000 (14:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2025 17:57:47 +0000 (13:57 -0400)
commit0989b764f43d4de2c6665c15165c251d9cfde9c0
treee7d49f88e5d3a8480892aafdcab618666350ac2a
parent907813e5d7cadfeafab12467d748705a5309efb0
drm/amdgpu: Add a mutex lock to protect poison injection

When poison is triggered multiple times, competition will occur.
Add a mutex lock to protect poison injection

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@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_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h