Skip to content

Commit c8d6e90

Browse files
Xiang Liualexdeucher
authored andcommitted
drm/amdgpu: Notify pmfw bad page threshold exceeded
Notify pmfw when bad page threshold is exceeded, no matter the module parameter 'bad_page_threshold' is set or not. Signed-off-by: Xiang Liu <xiang.liu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b1d8354 commit c8d6e90

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,10 @@ amdgpu_ras_eeprom_update_header(struct amdgpu_ras_eeprom_control *control)
777777
control->tbl_rai.health_percent = 0;
778778
}
779779
ras->is_rma = true;
780-
/* ignore the -ENOTSUPP return value */
781-
amdgpu_dpm_send_rma_reason(adev);
782780
}
781+
782+
/* ignore the -ENOTSUPP return value */
783+
amdgpu_dpm_send_rma_reason(adev);
783784
}
784785

785786
if (control->tbl_hdr.version >= RAS_TABLE_VER_V2_1)

0 commit comments

Comments
 (0)