]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: select compute ME engines dynamically
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 9 Jul 2024 05:29:36 +0000 (10:59 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jul 2024 14:12:48 +0000 (10:12 -0400)
GFX ME right now is one but this could change in
future SOC's. Use no of ME for GFX as start point
for ME for compute for GFX10.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 4bc2abe97087b8ebad8f3ebf98863afb1e894134..2957702fca0c668801d05c79e6a3d9b00be5ce8e 100644 (file)
@@ -9332,7 +9332,7 @@ static void gfx_v10_ip_dump(void *handle)
                for (j = 0; j < adev->gfx.mec.num_pipe_per_mec; j++) {
                        for (k = 0; k < adev->gfx.mec.num_queue_per_pipe; k++) {
                                /* ME0 is for GFX so start from 1 for CP */
-                               nv_grbm_select(adev, 1 + i, j, k, 0);
+                               nv_grbm_select(adev, adev->gfx.me.num_me + i, j, k, 0);
 
                                for (reg = 0; reg < reg_count; reg++) {
                                        adev->gfx.ip_dump_compute_queues[index + reg] =