]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu/gfx12: fix num_mec
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Mar 2025 16:09:11 +0000 (12:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Mar 2025 21:47:18 +0000 (17:47 -0400)
GC12 only has 1 mec.

Fixes: 52cb80c12e8a ("drm/amdgpu: Add gfx v12_0 ip block support (v6)")
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

index b6889e32dd8f09b79eeab92b2cea653ce958f37f..e7b58e470292717279b9d72e60744e4d5bab95d7 100644 (file)
@@ -1355,7 +1355,7 @@ static int gfx_v12_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 = 2;
                adev->gfx.mec.num_queue_per_pipe = 4;
                break;