mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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>
This commit is contained in:
committed by
Koby Elbaz
parent
9f5067531c
commit
b4fd8e56c9
@@ -2426,7 +2426,7 @@ static int gaudi2_config_bmon(struct hl_device *hdev, struct hl_debug_params *pa
|
||||
WREG32(base_reg + mmBMON_ADDRH_E3_OFFSET, 0);
|
||||
WREG32(base_reg + mmBMON_REDUCTION_OFFSET, 0);
|
||||
WREG32(base_reg + mmBMON_STM_TRC_OFFSET, 0x7 | (0xA << 8));
|
||||
WREG32(base_reg + mmBMON_CR_OFFSET, 0x77 | 0xf << 24);
|
||||
WREG32(base_reg + mmBMON_CR_OFFSET, 0x41);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user