From 90c00c89dd19179bf555be5a901ac969b3439431 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Wed, 11 Jan 2012 16:07:48 +0200 Subject: [PATCH] gfx: pvr: fix corrupted command trace for SGX transfer command 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 Reviewed-by: Pauli Nieminen Tested-by: Pauli Nieminen Signed-off-by: Kirill A. Shutemov --- drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxtransfer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxtransfer.c b/drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxtransfer.c index f804650..0a6d65d 100644 --- a/drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxtransfer.c +++ b/drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxtransfer.c @@ -171,6 +171,11 @@ IMG_EXPORT PVRSRV_ERROR SGXSubmitTransferKM(IMG_HANDLE hDevHandle, PVRSRV_TRANSF 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) -- 2.7.4