projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5eb7bf
)
habanalabs/gaudi: update coresight configuration
author
Tal Albo
<talbo@habana.ai>
Thu, 10 Jun 2021 09:18:37 +0000
(12:18 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:42 +0000
(15:23 +0300)
Update STMTCSR and STMSYNCR values in order to reduce amount of sync
packets
Signed-off-by: Tal Albo <talbo@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi_coresight.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/gaudi/gaudi_coresight.c
b/drivers/misc/habanalabs/gaudi/gaudi_coresight.c
index 9e271fd9f0d2336c4638be2fb96af24281709388..c2a27ed1c4d11eff26d9b0b845ffc9f85e9d9266 100644
(file)
--- a/
drivers/misc/habanalabs/gaudi/gaudi_coresight.c
+++ b/
drivers/misc/habanalabs/gaudi/gaudi_coresight.c
@@
-424,7
+424,7
@@
static int gaudi_config_stm(struct hl_device *hdev,
if (frequency == 0)
frequency = input->frequency;
WREG32(base_reg + 0xE8C, frequency);
- WREG32(base_reg + 0xE90, 0x
7FF
);
+ WREG32(base_reg + 0xE90, 0x
1F00
);
/* SW-2176 - SW WA for HW bug */
if ((CFG_BASE + base_reg) >= mmDMA_CH_0_CS_STM_BASE &&
@@
-434,7
+434,7
@@
static int gaudi_config_stm(struct hl_device *hdev,
WREG32(base_reg + 0xE6C, 0x0);
}
- WREG32(base_reg + 0xE80, 0x2
7
| (input->id << 16));
+ WREG32(base_reg + 0xE80, 0x2
3
| (input->id << 16));
} else {
WREG32(base_reg + 0xE80, 4);
WREG32(base_reg + 0xD64, 0);