projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a28ce42
)
habanalabs: fix mmu cache registers init
author
Oded Gabbay
<
[email protected]
>
Thu, 28 Feb 2019 08:46:13 +0000
(10:46 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 28 Feb 2019 12:04:59 +0000
(13:04 +0100)
This patch fix an incorrect initialization of the MMU cache registers. The
shift operation was done in the wrong direction.
Signed-off-by: Oded Gabbay <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/misc/habanalabs/goya/goya.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/goya/goya.c
b/drivers/misc/habanalabs/goya/goya.c
index 5780041abe32ae97ad560bab1403de76ea11f10a..5444cd0824b446aa86a6f01b126fad0fb3a381df 100644
(file)
--- a/
drivers/misc/habanalabs/goya/goya.c
+++ b/
drivers/misc/habanalabs/goya/goya.c
@@
-2675,8
+2675,9
@@
static int goya_mmu_init(struct hl_device *hdev)
goya->hw_cap_initialized |= HW_CAP_MMU;
/* init MMU cache manage page */
- WREG32(mmSTLB_CACHE_INV_BASE_39_8, MMU_CACHE_MNG_ADDR >> 8);
- WREG32(mmSTLB_CACHE_INV_BASE_49_40, MMU_CACHE_MNG_ADDR << 40);
+ WREG32(mmSTLB_CACHE_INV_BASE_39_8,
+ lower_32_bits(MMU_CACHE_MNG_ADDR >> 8));
+ WREG32(mmSTLB_CACHE_INV_BASE_49_40, MMU_CACHE_MNG_ADDR >> 40);
/* Remove follower feature due to performance bug */
WREG32_AND(mmSTLB_STLB_FEATURE_EN,