Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: correct MEC number for gfx11 APUs

There is only one MEC on these APUs.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x

authored by

Lang Yu and committed by
Alex Deucher
0ddadc3a e433adc6

+9 -2
+9 -2
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
··· 1287 1287 1288 1288 switch (adev->ip_versions[GC_HWIP][0]) { 1289 1289 case IP_VERSION(11, 0, 0): 1290 - case IP_VERSION(11, 0, 1): 1291 1290 case IP_VERSION(11, 0, 2): 1292 1291 case IP_VERSION(11, 0, 3): 1293 - case IP_VERSION(11, 0, 4): 1294 1292 adev->gfx.me.num_me = 1; 1295 1293 adev->gfx.me.num_pipe_per_me = 1; 1296 1294 adev->gfx.me.num_queue_per_pipe = 1; 1297 1295 adev->gfx.mec.num_mec = 2; 1296 + adev->gfx.mec.num_pipe_per_mec = 4; 1297 + adev->gfx.mec.num_queue_per_pipe = 4; 1298 + break; 1299 + case IP_VERSION(11, 0, 1): 1300 + case IP_VERSION(11, 0, 4): 1301 + adev->gfx.me.num_me = 1; 1302 + adev->gfx.me.num_pipe_per_me = 1; 1303 + adev->gfx.me.num_queue_per_pipe = 1; 1304 + adev->gfx.mec.num_mec = 1; 1298 1305 adev->gfx.mec.num_pipe_per_mec = 4; 1299 1306 adev->gfx.mec.num_queue_per_pipe = 4; 1300 1307 break;