Skip to content

Commit b4fd8e5

Browse files
vyavnielyKobyElbaz
authored andcommitted
accel/habanalabs/gaudi2: fix BMON disable configuration
Change the BMON_CR register value back to its original state before enabling, so that BMON does not continue to collect information after being disabled. Signed-off-by: Vered Yavniely <vered.yavniely@intel.com> Reviewed-by: Koby Elbaz <koby.elbaz@intel.com> Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
1 parent 9f50675 commit b4fd8e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ static int gaudi2_config_bmon(struct hl_device *hdev, struct hl_debug_params *pa
24262426
WREG32(base_reg + mmBMON_ADDRH_E3_OFFSET, 0);
24272427
WREG32(base_reg + mmBMON_REDUCTION_OFFSET, 0);
24282428
WREG32(base_reg + mmBMON_STM_TRC_OFFSET, 0x7 | (0xA << 8));
2429-
WREG32(base_reg + mmBMON_CR_OFFSET, 0x77 | 0xf << 24);
2429+
WREG32(base_reg + mmBMON_CR_OFFSET, 0x41);
24302430
}
24312431

24322432
return 0;

0 commit comments

Comments
 (0)