aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
diff options
context:
space:
mode:
authorYiPeng Chai <[email protected]>2024-04-12 05:46:03 +0000
committerAlex Deucher <[email protected]>2024-07-16 15:44:30 +0000
commitb3fb79cda5688a44a423c27b791f5456d801e49c (patch)
tree5ed05d47902fd492df8a37d7806e8ae67ca60d93 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
parentdrm/amd/display: Add function banner for idle_workqueue (diff)
downloadkernel-b3fb79cda5688a44a423c27b791f5456d801e49c.tar.gz
kernel-b3fb79cda5688a44a423c27b791f5456d801e49c.zip
drm/amdgpu: add mutex to protect ras shared memory
Add mutex to protect ras shared memory. v2: Add TA_RAS_COMMAND__TRIGGER_ERROR command call status check. Signed-off-by: YiPeng Chai <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
index 3635303e6548..74a96516c913 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
@@ -200,6 +200,7 @@ struct psp_xgmi_context {
struct psp_ras_context {
struct ta_context context;
struct amdgpu_ras *ras;
+ struct mutex mutex;
};
#define MEM_TRAIN_SYSTEM_SIGNATURE 0x54534942