From: Tomer Tayar Date: Sun, 5 Jan 2020 15:05:46 +0000 (+0000) Subject: habanalabs: Modify CS jobs counter to u16 X-Git-Tag: Ubuntu-5.10.0-12.13~3168^2~20^2~15 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f3a838c0c72ca09dd153ff29096410ea220660f6;p=mirror_ubuntu-hirsute-kernel.git habanalabs: Modify CS jobs counter to u16 As HL_MAX_JOBS_PER_CS is 512, it is possible that more than 255 CS jobs will be submitted for a certain queue. Hence, modify the "jobs_in_queue_cnt" parameter of the "hl_cs" structure to be u16 instead of u8. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/habanalabs.h b/drivers/misc/habanalabs/habanalabs.h index 5c751b9517c0..954906292c00 100644 --- a/drivers/misc/habanalabs/habanalabs.h +++ b/drivers/misc/habanalabs/habanalabs.h @@ -759,7 +759,7 @@ struct hl_userptr { * @aborted: true if CS was aborted due to some device error. */ struct hl_cs { - u8 jobs_in_queue_cnt[HL_MAX_QUEUES]; + u16 jobs_in_queue_cnt[HL_MAX_QUEUES]; struct hl_ctx *ctx; struct list_head job_list; spinlock_t job_lock;