]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/gfx11: fix num_mec
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Mar 2025 13:35:02 +0000 (09:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Mar 2025 21:47:14 +0000 (17:47 -0400)
GC11 only has 1 mec.

Fixes: 3d879e81f0f9 ("drm/amdgpu: add init support for GFX11 (v2)")
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

index f66ca639f39191b951f5f553ff1d2de64deefd40..d57db42f9536008494874fbf510d607ed6321a74 100644 (file)
@@ -1581,7 +1581,7 @@ static int gfx_v11_0_sw_init(struct amdgpu_ip_block *ip_block)
                adev->gfx.me.num_me = 1;
                adev->gfx.me.num_pipe_per_me = 1;
                adev->gfx.me.num_queue_per_pipe = 1;
-               adev->gfx.mec.num_mec = 2;
+               adev->gfx.mec.num_mec = 1;
                adev->gfx.mec.num_pipe_per_mec = 4;
                adev->gfx.mec.num_queue_per_pipe = 4;
                break;