diff options
author | 2025-01-22 16:55:51 +0800 | |
---|---|---|
committer | 2025-02-17 14:09:29 -0500 | |
commit | 4d614ce8ffd757e4c7944bf9b5598b4a250a8a61 (patch) | |
tree | 1ed8f3e2e75e0eb13e88b197986564aff5efa7ca /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h | |
parent | drm/amdgpu: Get timestamp from system time (diff) | |
download | wireguard-linux-4d614ce8ffd757e4c7944bf9b5598b4a250a8a61.tar.xz wireguard-linux-4d614ce8ffd757e4c7944bf9b5598b4a250a8a61.zip |
drm/amdgpu: add RAS CPER ring buffer
And initialize it, this is a pure software ring to store RAS CPER data.
v2: change ring size to 0x100000
v2: update the initialization of count_dw of cper ring, it's dword
variable
v3: skip VM inv eng for cper
v3: init/fini when aca enabled
Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Xiang Liu <xiang.liu@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_cper.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h index 6860a809f2f5..466ec59e5341 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h @@ -29,6 +29,7 @@ #include "amdgpu_aca.h" #define CPER_MAX_ALLOWED_COUNT 0x1000 +#define CPER_MAX_RING_SIZE 0X100000 #define HDR_LEN (sizeof(struct cper_hdr)) #define SEC_DESC_LEN (sizeof(struct cper_sec_desc)) @@ -62,6 +63,7 @@ struct amdgpu_cper { uint32_t wptr; void *ring[CPER_MAX_ALLOWED_COUNT]; + struct amdgpu_ring ring_buf; }; void amdgpu_cper_entry_fill_hdr(struct amdgpu_device *adev, |