]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: set default gfx reset masks for gfx6-8
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Oct 2025 20:45:17 +0000 (16:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 18:15:43 +0000 (13:15 -0500)
These were not set so soft recovery was inadvertantly
disabled.

Fixes: 6ac55eab4fc4 ("drm/amdgpu: move reset support type checks into the caller")
Reviewed-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1972763505d728c604b537180727ec8132e619df)

drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 7693b79534267ea9751cca911e2e5c0b33c88e4a..80565392313f152da445c5a17b84e3c10000c882 100644 (file)
@@ -3102,6 +3102,11 @@ static int gfx_v6_0_sw_init(struct amdgpu_ip_block *ip_block)
                        return r;
        }
 
+       adev->gfx.gfx_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.gfx_ring[0]);
+       adev->gfx.compute_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.compute_ring[0]);
+
        return r;
 }
 
index 5976ed55d9dbdb6a3633844d4ea1eab891b99f11..2b7aba22ecc19031c4340fffd46c570d9577e1e4 100644 (file)
@@ -4399,6 +4399,11 @@ static int gfx_v7_0_sw_init(struct amdgpu_ip_block *ip_block)
 
        gfx_v7_0_gpu_early_init(adev);
 
+       adev->gfx.gfx_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.gfx_ring[0]);
+       adev->gfx.compute_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.compute_ring[0]);
+
        return r;
 }
 
index 0856ff65288c0e588595f61e352e50c4f62f9426..8a81713d97aac24a8adb3b80439c0acef2586171 100644 (file)
@@ -2023,6 +2023,11 @@ static int gfx_v8_0_sw_init(struct amdgpu_ip_block *ip_block)
        if (r)
                return r;
 
+       adev->gfx.gfx_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.gfx_ring[0]);
+       adev->gfx.compute_supported_reset =
+               amdgpu_get_soft_full_reset_mask(&adev->gfx.compute_ring[0]);
+
        return 0;
 }