aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
diff options
context:
space:
mode:
authorXiang Liu <[email protected]>2025-02-11 11:45:52 +0000
committerAlex Deucher <[email protected]>2025-02-17 19:09:30 +0000
commitf9d35b945c599e8dbed17f484e82b4ad3d21721a (patch)
treee082c3ccb913618f60a420c07a0ff79b8b06c359 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
parentdrm/amdgpu: Commit CPER entry (diff)
downloadkernel-f9d35b945c599e8dbed17f484e82b4ad3d21721a.tar.gz
kernel-f9d35b945c599e8dbed17f484e82b4ad3d21721a.zip
drm/amdgpu: Generate bad page threshold cper records
Generate CPER record when bad page threshold exceed and commit to CPER ring. v2: return -ENOMEM instead of false v2: check return value of fill section function Signed-off-by: Xiang Liu <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h2
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 d35d1ddac7cc..bcb97d245673 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
@@ -95,6 +95,8 @@ int amdgpu_cper_generate_ue_record(struct amdgpu_device *adev,
int amdgpu_cper_generate_ce_records(struct amdgpu_device *adev,
struct aca_banks *banks,
uint16_t bank_count);
+/* Bad page threshold is encoded into separated cper entry */
+int amdgpu_cper_generate_bp_threshold_record(struct amdgpu_device *adev);
void amdgpu_cper_ring_write(struct amdgpu_ring *ring,
void *src, int count);
int amdgpu_cper_init(struct amdgpu_device *adev);