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@intel.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Oded Gabbay 2022-06-30 11:53:33 +03:00
parent c979cb5d8b
commit e475acabb9

View File

@ -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);