Commit ba662265 authored by Tal Albo's avatar Tal Albo Committed by Oded Gabbay

habanalabs/gaudi: update coresight configuration

Update STMTCSR and STMSYNCR values in order to reduce amount of sync
packets
Signed-off-by: default avatarTal Albo <talbo@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent f5eb7bf0
...@@ -424,7 +424,7 @@ static int gaudi_config_stm(struct hl_device *hdev, ...@@ -424,7 +424,7 @@ static int gaudi_config_stm(struct hl_device *hdev,
if (frequency == 0) if (frequency == 0)
frequency = input->frequency; frequency = input->frequency;
WREG32(base_reg + 0xE8C, frequency); WREG32(base_reg + 0xE8C, frequency);
WREG32(base_reg + 0xE90, 0x7FF); WREG32(base_reg + 0xE90, 0x1F00);
/* SW-2176 - SW WA for HW bug */ /* SW-2176 - SW WA for HW bug */
if ((CFG_BASE + base_reg) >= mmDMA_CH_0_CS_STM_BASE && if ((CFG_BASE + base_reg) >= mmDMA_CH_0_CS_STM_BASE &&
...@@ -434,7 +434,7 @@ static int gaudi_config_stm(struct hl_device *hdev, ...@@ -434,7 +434,7 @@ static int gaudi_config_stm(struct hl_device *hdev,
WREG32(base_reg + 0xE6C, 0x0); WREG32(base_reg + 0xE6C, 0x0);
} }
WREG32(base_reg + 0xE80, 0x27 | (input->id << 16)); WREG32(base_reg + 0xE80, 0x23 | (input->id << 16));
} else { } else {
WREG32(base_reg + 0xE80, 4); WREG32(base_reg + 0xE80, 4);
WREG32(base_reg + 0xD64, 0); WREG32(base_reg + 0xD64, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment