summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-03-20 12:09:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:42:00 +0200
commita7df5d6c34f0caf359bc7a71a6bbdd3d796a071c (patch)
treeb800244be80a2e9842a9e390b928450056f3be63
parentf4081b00587889f61ad24189579c1f419feea445 (diff)
downloadlinux-a7df5d6c34f0caf359bc7a71a6bbdd3d796a071c.tar.gz
linux-a7df5d6c34f0caf359bc7a71a6bbdd3d796a071c.tar.bz2
linux-a7df5d6c34f0caf359bc7a71a6bbdd3d796a071c.zip
drm/amdgpu/gfx12: fix num_mec
[ Upstream commit dce8bd9137b88735dd0efc4e2693213d98c15913 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
index d4218e9e43b5..a0df3baaf2b4 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
@@ -1332,7 +1332,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;