summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorShaoyun Liu <shaoyun.liu@amd.com>2025-11-04 11:27:12 -0500
committerAlex Deucher <alexander.deucher@amd.com>2025-12-16 13:18:59 -0500
commit2b950ac91314ee25daafd3be37ca12db2540f80f (patch)
tree33c076c08c81c882be3b4c45d07f45b79060fd8b /drivers/gpu/drm/amd/include
parentf24e96d69f5b9eb0f3b9c49e53c385c50729edfd (diff)
drm/amd/include : Update MES v12 comments on RESET API
Added comments for the layout of contents that addressed by doorbell_offset_addr in RESET API Signed-off-by: Shaoyun Liu <shaoyun.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
-rw-r--r--drivers/gpu/drm/amd/include/mes_v12_api_def.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/include/mes_v12_api_def.h b/drivers/gpu/drm/amd/include/mes_v12_api_def.h
index a9bbe3070a48..49cb1bc058c0 100644
--- a/drivers/gpu/drm/amd/include/mes_v12_api_def.h
+++ b/drivers/gpu/drm/amd/include/mes_v12_api_def.h
@@ -563,7 +563,26 @@ union MESAPI__RESET {
/* valid only if reset_queue_only = true */
uint32_t doorbell_offset;
- /* valid only if hang_detect_then_reset = true */
+ /*
+ * valid only if hang_detect_then_reset or hang_detect_only = true
+ * doorbell_offset_addr will store the structure as follows
+ * struct
+ * {
+ * uint32_t db_offset[list_size];
+ * uint32_t hqd_id[list_size];
+ * }
+ * The hqd_id has following defines :
+ * struct
+ * {
+ * uint32 queue_type : 3; Type of the queue
+ * uint32 pipe_index : 4; pipe Index
+ * uint32 hqd_index : 8; This is queue_index within the pipe
+ * uint32 reserved : 17;
+ * };
+ * The list_size is the total queue numbers that been managed by mes.
+ * It can be calculated from all hqd_masks(including gfX, compute and sdma)
+ * on set_hw_resource API
+ */
uint64_t doorbell_offset_addr;
enum MES_QUEUE_TYPE queue_type;