[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220704092941.2237683-8-ogabbay@kernel.org>
Date: Mon, 4 Jul 2022 12:29:37 +0300
From: Oded Gabbay <ogabbay@...nel.org>
To: linux-kernel@...r.kernel.org
Cc: kernel test robot <lkp@...el.com>
Subject: [PATCH 08/12] habanalabs/gaudi2: SM mask can only be 8-bit
Otherwise, due to how we calculate it, we might fail in FIELD_PREP
checks.
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Oded Gabbay <ogabbay@...nel.org>
---
drivers/misc/habanalabs/gaudi2/gaudi2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/habanalabs/gaudi2/gaudi2.c b/drivers/misc/habanalabs/gaudi2/gaudi2.c
index 6911b42e52e1..dbf273d96b00 100644
--- a/drivers/misc/habanalabs/gaudi2/gaudi2.c
+++ b/drivers/misc/habanalabs/gaudi2/gaudi2.c
@@ -5751,8 +5751,9 @@ static void gaudi2_kdma_set_mmbp_asid(struct hl_device *hdev,
static void gaudi2_arm_cq_monitor(struct hl_device *hdev, u32 index, u32 cq_id,
u32 mon_payload, u32 sync_value)
{
+ u32 sync_group_id, mode, mon_arm;
int offset = index * 4;
- u32 sync_group_id, mask, mode, mon_arm;
+ u8 mask;
/* Reset the SOB value */
WREG32(mmDCORE0_SYNC_MNGR_OBJS_SOB_OBJ_0 + offset, 0);
--
2.25.1
Powered by blists - more mailing lists