Skip to content

Commit e126600

Browse files
committed
uapi/habanalabs: add some comments in habanalabs.h
This patch adds two comments in uapi/habanalabs.h: - From which queue id the internal queues begin - Invalid values that can be returned in the seq field from the CS IOCTL Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
1 parent 393e5b5 commit e126600

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎include/uapi/misc/habanalabs.h‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum goya_queue_id {
3333
GOYA_QUEUE_ID_DMA_3,
3434
GOYA_QUEUE_ID_DMA_4,
3535
GOYA_QUEUE_ID_CPU_PQ,
36-
GOYA_QUEUE_ID_MME,
36+
GOYA_QUEUE_ID_MME, /* Internal queues start here */
3737
GOYA_QUEUE_ID_TPC0,
3838
GOYA_QUEUE_ID_TPC1,
3939
GOYA_QUEUE_ID_TPC2,
@@ -181,7 +181,10 @@ struct hl_cs_in {
181181
};
182182

183183
struct hl_cs_out {
184-
/* this holds the sequence number of the CS to pass to wait ioctl */
184+
/*
185+
* seq holds the sequence number of the CS to pass to wait ioctl. All
186+
* values are valid except for 0 and ULLONG_MAX
187+
*/
185188
__u64 seq;
186189
/* HL_CS_STATUS_* */
187190
__u32 status;

0 commit comments

Comments
 (0)