]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:09 +0000 (15:37 -0500)
[ Upstream commit c8d6e90abe50377110f92702fbebc6efdd22391d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index 9bda9ad13f882e50b9e55973d116412bfca8bfd7..88ded6296be34d4337f01222926c513afd69772c 100644 (file)
@@ -774,9 +774,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)