Skip to content

Commit 4a33ca3

Browse files
Xiang Liualexdeucher
authored andcommitted
drm/amdgpu: Use correct severity for BP threshold exceed event
The severity of CPER for BP threshold exceed event should be set as CPER_SEV_FATAL to match the OOB implementation. Signed-off-by: Xiang Liu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent cea3031 commit 4a33ca3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int amdgpu_cper_entry_fill_bad_page_threshold_section(struct amdgpu_device *adev
212212
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
213213

214214
amdgpu_cper_entry_fill_section_desc(adev, section_desc, true, false,
215-
CPER_SEV_NUM, RUNTIME, NONSTD_SEC_LEN,
215+
CPER_SEV_FATAL, RUNTIME, NONSTD_SEC_LEN,
216216
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
217217

218218
section->hdr.valid_bits.err_info_cnt = 1;
@@ -326,7 +326,9 @@ int amdgpu_cper_generate_bp_threshold_record(struct amdgpu_device *adev)
326326
return -ENOMEM;
327327
}
328328

329-
amdgpu_cper_entry_fill_hdr(adev, bp_threshold, AMDGPU_CPER_TYPE_BP_THRESHOLD, CPER_SEV_NUM);
329+
amdgpu_cper_entry_fill_hdr(adev, bp_threshold,
330+
AMDGPU_CPER_TYPE_BP_THRESHOLD,
331+
CPER_SEV_FATAL);
330332
ret = amdgpu_cper_entry_fill_bad_page_threshold_section(adev, bp_threshold, 0);
331333
if (ret)
332334
return ret;

0 commit comments

Comments
 (0)