]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amdgpu: disable GPU RAS bad page feature for specific ASIC
authorTao Zhou <tao.zhou1@amd.com>
Mon, 9 Sep 2024 10:51:42 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2024 14:04:57 +0000 (10:04 -0400)
The feature is not applicable to specific app platform.

v2: update the disablement condition and commit description
v3: move the setting to amdgpu_ras_check_supported

Signed-off-by: Tao Zhou <tao.zhou1@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.c

index 61a2f386d9fbe9b4248e6835ae3b6c83f1a83712..2e4c867e1d424417aa29106849bc93e0b4d9a99e 100644 (file)
@@ -3468,6 +3468,11 @@ init_ras_enabled_flag:
 
        /* aca is disabled by default */
        adev->aca.is_enabled = false;
+
+       /* bad page feature is not applicable to specific app platform */
+       if (adev->gmc.is_app_apu &&
+           amdgpu_ip_version(adev, UMC_HWIP, 0) == IP_VERSION(12, 0, 0))
+               amdgpu_bad_page_threshold = 0;
 }
 
 static void amdgpu_ras_counte_dw(struct work_struct *work)