summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
diff options
context:
space:
mode:
authorCe Sun <cesun102@amd.com>2025-08-19 09:47:05 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-27 20:57:47 +0300
commit0989b764f43d4de2c6665c15165c251d9cfde9c0 (patch)
treee7d49f88e5d3a8480892aafdcab618666350ac2a /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
parent907813e5d7cadfeafab12467d748705a5309efb0 (diff)
downloadlinux-0989b764f43d4de2c6665c15165c251d9cfde9c0.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index ff63020f9c6c..2a70782b07bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -587,6 +587,8 @@ struct amdgpu_ras {
struct list_head critical_region_head;
struct mutex critical_region_lock;
+ /* Protect poison injection */
+ struct mutex poison_lock;
};
struct ras_fs_data {