summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
diff options
context:
space:
mode:
authorXiang Liu <xiang.liu@amd.com>2025-02-11 19:45:52 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-02-17 14:09:30 -0500
commitf9d35b945c599e8dbed17f484e82b4ad3d21721a (patch)
treee082c3ccb913618f60a420c07a0ff79b8b06c359 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
parent4058e7cbfd0fb0cae7cbb8035bb43c593cc7c964 (diff)
downloadlinux-stable-f9d35b945c599e8dbed17f484e82b4ad3d21721a.tar.gz
linux-stable-f9d35b945c599e8dbed17f484e82b4ad3d21721a.tar.bz2
linux-stable-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 <xiang.liu@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@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.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);