@@ -45,8 +45,7 @@ acl_process_autorun_profiler_scan_chain(unsigned int physical_device_id,
45
45
// address map.
46
46
#define CSR_VERSION_ID_18_1 (3 )
47
47
#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
50
49
51
50
// Address map
52
51
// 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,
1447
1446
1448
1447
// Just clear the "done" bit. The "go" bit should already have been
1449
1448
// 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) {
1454
1451
unsigned int dum;
1455
1452
acl_kernel_cra_write (kern, accel_id, KERNEL_OFFSET_CSR, 0 );
1456
1453
acl_kernel_cra_read (kern, accel_id, KERNEL_OFFSET_CSR, &dum);
0 commit comments