Skip to content

Commit 1cacdc2

Browse files
shuoniu-intelpcolberg
authored andcommitted
Remove CSR version 5 because the compiler side support is backed out
This partially reverts commit 55140e6.
1 parent ba6818b commit 1cacdc2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/acl_kernel_if.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ acl_process_autorun_profiler_scan_chain(unsigned int physical_device_id,
4545
// address map.
4646
#define CSR_VERSION_ID_18_1 (3)
4747
#define CSR_VERSION_ID_19_1 (4)
48-
#define CSR_VERSION_ID_2022_3 (5)
49-
#define CSR_VERSION_ID CSR_VERSION_ID_2022_3
48+
#define CSR_VERSION_ID CSR_VERSION_ID_19_1
5049

5150
// Address map
5251
// For unit tests to work, these defines must match those in the unit test
@@ -1447,10 +1446,8 @@ static void acl_kernel_if_update_status_finish(acl_kernel_if *kern,
14471446

14481447
// Just clear the "done" bit. The "go" bit should already have been
14491448
// cleared, but this is harmless anyway.
1450-
// Since csr version 19, done bit is cleared when finish counter is read.
1451-
// Since csr version 2022.3, done bit needs to be cleared explicitly.
1452-
if (kern->csr_version == CSR_VERSION_ID_18_1 ||
1453-
kern->csr_version >= CSR_VERSION_ID_2022_3) {
1449+
// Since csr version 4, done bit is cleared when finish counter is read.
1450+
if (kern->csr_version == CSR_VERSION_ID_18_1) {
14541451
unsigned int dum;
14551452
acl_kernel_cra_write(kern, accel_id, KERNEL_OFFSET_CSR, 0);
14561453
acl_kernel_cra_read(kern, accel_id, KERNEL_OFFSET_CSR, &dum);

0 commit comments

Comments
 (0)