aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
diff options
context:
space:
mode:
authorYang Wang <[email protected]>2024-05-16 11:57:24 +0000
committerAlex Deucher <[email protected]>2024-05-17 21:40:38 +0000
commitf6bce954f432c556659a57be9e18fecdc575affb (patch)
tree57f8c9bcb3bbb6278cb5816c4027a0ae156b8275 /drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
parentdrm/amdgpu: Describe all object placements in debugfs (diff)
downloadkernel-f6bce954f432c556659a57be9e18fecdc575affb.tar.gz
kernel-f6bce954f432c556659a57be9e18fecdc575affb.zip
drm/amdgpu: change aca bank error lock type to spinlock
modify the lock type to 'spinlock' to avoid schedule issue in interrupt context. Signed-off-by: Yang Wang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
index 5ef6b745f222..ba724c2a997d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h
@@ -25,6 +25,7 @@
#define __AMDGPU_ACA_H__
#include <linux/list.h>
+#include <linux/spinlock.h>
struct ras_err_data;
struct ras_query_context;
@@ -133,7 +134,7 @@ struct aca_bank_error {
struct aca_error {
struct list_head list;
- struct mutex lock;
+ spinlock_t lock;
enum aca_error_type type;
int nr_errors;
};