When the transfer command is called with the SGXMKIF_TQFLAGS_KEEPPENDING
source and destination sync counters were not zeroed in the
corresponding trace record, leading to a corrupted trace output.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Tested-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
pvr_trcmd_set_syn(&ttrace->dst_syn[loop], psSyncInfo);
}
+ } else {
+ for (loop = 0; loop < SGX_MAX_TRANSFER_SYNC_OPS; loop++) {
+ pvr_trcmd_clear_syn(&ttrace->src_syn[loop]);
+ pvr_trcmd_clear_syn(&ttrace->dst_syn[loop]);
+ }
}
#if defined(PDUMP)