Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Send RMA CPER at bad page loading

Some older builds weren't sending RMA CPERs when the bad page threshold
was exceeded. Newer builds have resolved this, but there could be
systems out there with bad page numbers higher than the threshold, that
haven't sent out an RMA CPER. To be thorough and safe, send an RMA CPER
when we load the table, if the threshold is met or exceeded, instead of
waiting for the next UE to trigger the CPER.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Kent Russell and committed by
Alex Deucher
e0d11bdb 91544c45

+4
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
··· 1712 1712 dev_warn(adev->dev, "RAS records:%u exceeds 90%% of threshold:%d", 1713 1713 control->ras_num_bad_pages, 1714 1714 ras->bad_page_cnt_threshold); 1715 + if (amdgpu_bad_page_threshold != 0 && 1716 + control->ras_num_bad_pages >= ras->bad_page_cnt_threshold) 1717 + amdgpu_dpm_send_rma_reason(adev); 1718 + 1715 1719 } else if (hdr->header == RAS_TABLE_HDR_BAD && 1716 1720 amdgpu_bad_page_threshold != 0) { 1717 1721 if (hdr->version >= RAS_TABLE_VER_V2_1) {