Commit 4fd2cb15 authored by Dotan Barak's avatar Dotan Barak Committed by Oded Gabbay

habanalabs: explicitly set the queue-id enumerated numbers

When looking at kernel log messages and when debugging user applications,
we only see the queue id. This patch explicitly set the queue id in the
queue enumeration which will be helpful for finding the queue name when we
have its id.
Signed-off-by: default avatarDotan Barak <dbarak@habana.ai>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 867b58ac
...@@ -28,20 +28,20 @@ ...@@ -28,20 +28,20 @@
enum goya_queue_id { enum goya_queue_id {
GOYA_QUEUE_ID_DMA_0 = 0, GOYA_QUEUE_ID_DMA_0 = 0,
GOYA_QUEUE_ID_DMA_1, GOYA_QUEUE_ID_DMA_1 = 1,
GOYA_QUEUE_ID_DMA_2, GOYA_QUEUE_ID_DMA_2 = 2,
GOYA_QUEUE_ID_DMA_3, GOYA_QUEUE_ID_DMA_3 = 3,
GOYA_QUEUE_ID_DMA_4, GOYA_QUEUE_ID_DMA_4 = 4,
GOYA_QUEUE_ID_CPU_PQ, GOYA_QUEUE_ID_CPU_PQ = 5,
GOYA_QUEUE_ID_MME, /* Internal queues start here */ GOYA_QUEUE_ID_MME = 6, /* Internal queues start here */
GOYA_QUEUE_ID_TPC0, GOYA_QUEUE_ID_TPC0 = 7,
GOYA_QUEUE_ID_TPC1, GOYA_QUEUE_ID_TPC1 = 8,
GOYA_QUEUE_ID_TPC2, GOYA_QUEUE_ID_TPC2 = 9,
GOYA_QUEUE_ID_TPC3, GOYA_QUEUE_ID_TPC3 = 10,
GOYA_QUEUE_ID_TPC4, GOYA_QUEUE_ID_TPC4 = 11,
GOYA_QUEUE_ID_TPC5, GOYA_QUEUE_ID_TPC5 = 12,
GOYA_QUEUE_ID_TPC6, GOYA_QUEUE_ID_TPC6 = 13,
GOYA_QUEUE_ID_TPC7, GOYA_QUEUE_ID_TPC7 = 14,
GOYA_QUEUE_ID_SIZE GOYA_QUEUE_ID_SIZE
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment