drm/amdkfd: fill in data for control stack header for gfx10
authorJonathan Kim <jonathan.kim@amd.com>
Tue, 10 Mar 2020 18:59:19 +0000 (14:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Feb 2024 21:05:26 +0000 (16:05 -0500)
The debugger requires the control stack header to be filled in to
update_waves.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h

index 57bf5e5..e5cc697 100644 (file)
@@ -128,6 +128,31 @@ struct mqd_manager {
        uint32_t mqd_size;
 };
 
+struct mqd_user_context_save_area_header {
+       /* Byte offset from start of user context
+        * save area to the last saved top (lowest
+        * address) of control stack data. Must be
+        * 4 byte aligned.
+        */
+       uint32_t control_stack_offset;
+
+       /* Byte size of the last saved control stack
+        * data. Must be 4 byte aligned.
+        */
+       uint32_t control_stack_size;
+
+       /* Byte offset from start of user context save
+        * area to the last saved base (lowest address)
+        * of wave state data. Must be 4 byte aligned.
+        */
+       uint32_t wave_state_offset;
+
+       /* Byte size of the last saved wave state data.
+        * Must be 4 byte aligned.
+        */
+       uint32_t wave_state_size;
+};
+
 struct kfd_mem_obj *allocate_hiq_mqd(struct kfd_node *dev,
                                struct queue_properties *q);