DML icon indicating copy to clipboard operation
DML copied to clipboard

Debugging DML_STATUS_INTERNAL_ERROR with OP_MEM_MOVE

Open fxlt2000 opened this issue 1 year ago • 0 comments

Is there any instruction for debugging DML_STATUS_INTERNAL_ERROR? I run into this issue randomly when running multi-threads application calling OP_MEM_MOVE. It fails some time but passes next time with exactly same src/dest addresses and copy length.

part of the code is shown below: dml_job_t dml_job_ptr = NULL; dml_path_t execution_path = DML_PATH_HW; uint32_t size = 0u; status = dml_get_job_size(execution_path, &size); dml_job_ptr = (dml_job_t )malloc(size); status = dml_init_job(execution_path, dml_job_ptr); dml_job_ptr->operation = DML_OP_MEM_MOVE; dml_job_ptr->source_length = 161024; dml_job_ptr->source_first_ptr = src_ptr; / 16KB aligned / dml_job_ptr->destination_first_ptr = dst_ptr; / 16KB aligned */ status = dml_execute_job(dml_job_ptr, DML_WAIT_MODE_BUSY_POLL);

fxlt2000 avatar Jul 19 '24 06:07 fxlt2000