diff options
| author | Xiang Liu <[email protected]> | 2025-02-11 11:45:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-02-17 19:09:30 +0000 |
| commit | f9d35b945c599e8dbed17f484e82b4ad3d21721a (patch) | |
| tree | e082c3ccb913618f60a420c07a0ff79b8b06c359 /drivers/gpu/drm/amd/pm/amdgpu_dpm.c | |
| parent | drm/amdgpu: Commit CPER entry (diff) | |
| download | kernel-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/pm/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c index 7a22aef6e59c..faae9bf48aa4 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c @@ -716,6 +716,9 @@ int amdgpu_dpm_send_rma_reason(struct amdgpu_device *adev) ret = smu_send_rma_reason(smu); mutex_unlock(&adev->pm.mutex); + if (amdgpu_cper_generate_bp_threshold_record(adev)) + dev_warn(adev->dev, "fail to generate bad page threshold cper records\n"); + return ret; } |
