Skip to content

Commit c393857

Browse files
amd-sukhatrialexdeucher
authored andcommitted
drm/amdgpu: select compute ME engines dynamically
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 GFX12. Signed-off-by: Sunil Khatri <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 21e6f60 commit c393857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4946,7 +4946,7 @@ static void gfx_v12_ip_dump(void *handle)
49464946
for (j = 0; j < adev->gfx.mec.num_pipe_per_mec; j++) {
49474947
for (k = 0; k < adev->gfx.mec.num_queue_per_pipe; k++) {
49484948
/* ME0 is for GFX so start from 1 for CP */
4949-
soc24_grbm_select(adev, 1+i, j, k, 0);
4949+
soc24_grbm_select(adev, adev->gfx.me.num_me + i, j, k, 0);
49504950
for (reg = 0; reg < reg_count; reg++) {
49514951
adev->gfx.ip_dump_compute_queues[index + reg] =
49524952
RREG32(SOC15_REG_ENTRY_OFFSET(

0 commit comments

Comments
 (0)