File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1061,6 +1061,14 @@ int acl_kernel_if_post_pll_config_init(acl_kernel_if *kern) {
1061
1061
// Register addresses are pushed back since previous versions
1062
1062
// doesn't have the start register
1063
1063
kern->cra_address_offset = 0 ;
1064
+ } else {
1065
+ // In case an old CSR version is queried before we program our new aocx,
1066
+ // make sure the offset is set correctly when we query the correct CSR
1067
+ // aocx from the newly compile aocx. Old CSR versions may be queried since
1068
+ // users may trigger context creation whenever they try to query device
1069
+ // info, which would lead to reading the CSR before programming the actual
1070
+ // aocx and it would read from the default aocx provided by the BSP.
1071
+ kern->cra_address_offset = 8 ;
1064
1072
}
1065
1073
} else {
1066
1074
ACL_KERNEL_IF_DEBUG_MSG (kern,
You can’t perform that action at this time.
0 commit comments