summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/gaudi2/gaudi2_security.c
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2022-06-29 19:20:38 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-07-12 09:09:30 +0300
commit25ad86383968698b95264cb54c8d662381e20312 (patch)
tree7f19c056dabea8ff539761eadb127d8bea8d0630 /drivers/misc/habanalabs/gaudi2/gaudi2_security.c
parent1cf596c6b9ac07a94fa8489866511e76f9c7644b (diff)
downloadlinux-25ad86383968698b95264cb54c8d662381e20312.tar.xz
habanalabs/gaudi2: replace defines for reserved sob/mob with enums
Following patches are going to add more reserved sync objects and monitors. To make the counting of these reserved resources simpler, replace the existing RESERVED_* defines with enumerations. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/gaudi2/gaudi2_security.c')
-rw-r--r--drivers/misc/habanalabs/gaudi2/gaudi2_security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/gaudi2/gaudi2_security.c b/drivers/misc/habanalabs/gaudi2/gaudi2_security.c
index afca8352a223..89a06ff5ba34 100644
--- a/drivers/misc/habanalabs/gaudi2/gaudi2_security.c
+++ b/drivers/misc/habanalabs/gaudi2/gaudi2_security.c
@@ -2703,8 +2703,8 @@ static int gaudi2_init_pb_sm_objs(struct hl_device *hdev)
if (!sec_array)
return -ENOMEM;
- first_sob = GAUDI2_RESERVED_SOBS;
- first_mon = GAUDI2_RESERVED_MONITORS;
+ first_sob = GAUDI2_RESERVED_SOB_NUMBER;
+ first_mon = GAUDI2_RESERVED_MON_NUMBER;
/* 8192 SOB_OBJs skipping first GAUDI2_MAX_PENDING_CS of them */
for (j = i = first_sob ; i < DCORE_NUM_OF_SOB ; i++, j++)