]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: Notify pmfw bad page threshold exceeded
authorXiang Liu <xiang.liu@amd.com>
Wed, 27 Aug 2025 01:40:27 +0000 (09:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Aug 2025 14:07:19 +0000 (10:07 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index e3e6b32e48308901663058539bb3c642cf0cf13b..3eb3fb55ccb05a4194355657cf7345945c4bf5d7 100644 (file)
@@ -777,9 +777,10 @@ amdgpu_ras_eeprom_update_header(struct amdgpu_ras_eeprom_control *control)
                                control->tbl_rai.health_percent = 0;
                        }
                        ras->is_rma = true;
-                       /* ignore the -ENOTSUPP return value */
-                       amdgpu_dpm_send_rma_reason(adev);
                }
+
+               /* ignore the -ENOTSUPP return value */
+               amdgpu_dpm_send_rma_reason(adev);
        }
 
        if (control->tbl_hdr.version >= RAS_TABLE_VER_V2_1)