drm/amdgpu/mes11: update ADD_QUEUE interface
authorJack Xiao <Jack.Xiao@amd.com>
Wed, 24 Apr 2024 08:41:04 +0000 (16:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:45 +0000 (17:22 -0400)
Update ADD_QUEUE interface for mes11 to support
mes mapping legacy queue.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/mes_v11_api_def.h

index 410c8d6..b72d5d3 100644 (file)
@@ -299,10 +299,21 @@ union MESAPI__ADD_QUEUE {
                        uint32_t skip_process_ctx_clear : 1;
                        uint32_t map_legacy_kq          : 1;
                        uint32_t exclusively_scheduled  : 1;
-                       uint32_t reserved               : 17;
+                       uint32_t is_long_running        : 1;
+                       uint32_t is_dwm_queue           : 1;
+                       uint32_t is_video_blit_queue    : 1;
+                       uint32_t reserved               : 14;
                };
-               struct MES_API_STATUS           api_status;
-               uint64_t                        tma_addr;
+               struct MES_API_STATUS       api_status;
+               uint64_t                    tma_addr;
+               uint32_t                    sch_id;
+               uint64_t                    timestamp;
+               uint32_t                    process_context_array_index;
+               uint32_t                    gang_context_array_index;
+               uint32_t                    pipe_id;
+               uint32_t                    queue_id;
+               uint32_t                    alignment_mode_setting;
+               uint64_t                    unmap_flag_addr;
        };
 
        uint32_t        max_dwords_in_api[API_FRAME_SIZE_IN_DWORDS];