mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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 <ttayar@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
64a7e2955d
commit
f3a838c0c7
1 changed files with 1 additions and 1 deletions
|
@ -759,7 +759,7 @@ struct hl_userptr {
|
||||||
* @aborted: true if CS was aborted due to some device error.
|
* @aborted: true if CS was aborted due to some device error.
|
||||||
*/
|
*/
|
||||||
struct hl_cs {
|
struct hl_cs {
|
||||||
u8 jobs_in_queue_cnt[HL_MAX_QUEUES];
|
u16 jobs_in_queue_cnt[HL_MAX_QUEUES];
|
||||||
struct hl_ctx *ctx;
|
struct hl_ctx *ctx;
|
||||||
struct list_head job_list;
|
struct list_head job_list;
|
||||||
spinlock_t job_lock;
|
spinlock_t job_lock;
|
||||||
|
|
Loading…
Reference in a new issue