aboutsummaryrefslogtreecommitdiff
path: root/applications/driver_unit_tests/command_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/driver_unit_tests/command_stream.cpp')
-rw-r--r--applications/driver_unit_tests/command_stream.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/applications/driver_unit_tests/command_stream.cpp b/applications/driver_unit_tests/command_stream.cpp
index 2de1ae8..5b0de72 100644
--- a/applications/driver_unit_tests/command_stream.cpp
+++ b/applications/driver_unit_tests/command_stream.cpp
@@ -101,8 +101,6 @@ CommandStream::CommandStream(const DataPointer &_commandStream,
const PmuEvents &_pmuEvents) :
drv(ethosu_reserve_driver()),
commandStream(_commandStream), basePointers(_basePointers), pmu(drv, _pmuEvents) {
- // Disable clock gating, else the NPU PMU will be clock gated and report too few cycles
- ethosu_dev_set_clock_and_power(&drv->dev, ETHOSU_CLOCK_Q_DISABLE, ETHOSU_POWER_Q_DISABLE);
// Use simplified driver setup
ethosu_set_power_mode(drv, true);
@@ -130,26 +128,6 @@ int CommandStream::run(size_t repeat) {
printf("Inference failed. error=%d\n", error);
return 1;
}
-
- // Wait for interrupt
- while (true) {
- uint16_t status;
- ethosu_dev_get_status_mask(&drv->dev, &status);
-
- // Return if NPU raise error status
- if (status & 0xcc) {
- printf("Job failed with error. status=0x%08x\n", status);
- return 1;
- }
-
- // Break loop if job is no longer running
- if ((status & 1) == 0) {
- break;
- }
-
- // Sleep waiting on interrupt
- __WFI();
- }
}
return 0;