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: Only send RMA CPER when threshold is exceeded

According to our documentation, the RMA should only occur when the
threshold has been exceeded, not met.

Fixes: 5028a24aa89a ("drm/amdgpu: Send applicable RMA CPERs at end of RAS init")
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>
(cherry picked from commit 8bc09a7d0e90ec45a0b4865661cf45cbbce1c3d7)

authored by

Kent Russell and committed by
Alex Deucher
b56922fc 686e5985

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
··· 1950 1950 if (!control || amdgpu_bad_page_threshold == 0) 1951 1951 return; 1952 1952 1953 - if (control->ras_num_bad_pages >= ras->bad_page_cnt_threshold) { 1953 + if (control->ras_num_bad_pages > ras->bad_page_cnt_threshold) { 1954 1954 if (amdgpu_dpm_send_rma_reason(adev)) 1955 1955 dev_warn(adev->dev, "Unable to send out-of-band RMA CPER"); 1956 1956 else