gpu: pvr: pass proc info to sgxkick and sgxtransfer
authorImre Deak <imre.deak@nokia.com>
Fri, 1 Apr 2011 15:13:11 +0000 (18:13 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:43:05 +0000 (21:43 +0300)
Needed by the next patch adding tracing to these commands.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Luc Verhaegen <libv@codethink.co.uk>
pvr/bridged_sgx_bridge.c
pvr/sgx_bridge_km.h
pvr/sgxkick.c
pvr/sgxtransfer.c

index f3a24a4..70e698b 100644 (file)
@@ -255,7 +255,8 @@ int SGXDoKickBW(u32 ui32BridgeID,
                        return 0;
        }
 
-       psRetOUT->eError = SGXDoKickKM(hDevCookieInt, &psDoKickIN->sCCBKick);
+       psRetOUT->eError = SGXDoKickKM(hDevCookieInt, &psDoKickIN->sCCBKick,
+                                       psPerProc);
 
        return 0;
 }
@@ -357,7 +358,8 @@ int SGXSubmitTransferBW(u32 ui32BridgeID,
                        return 0;
        }
 
-       psRetOUT->eError = SGXSubmitTransferKM(hDevCookieInt, psKick);
+       psRetOUT->eError = SGXSubmitTransferKM(hDevCookieInt, psKick,
+                                               psPerProc);
 
        return 0;
 }
index fbd3379..f0613e7 100644 (file)
 
 
 enum PVRSRV_ERROR SGXSubmitTransferKM(void *hDevHandle,
-               struct PVRSRV_TRANSFER_SGX_KICK *psKick);
+                               struct PVRSRV_TRANSFER_SGX_KICK *psKick,
+                               struct PVRSRV_PER_PROCESS_DATA *proc);
 
 
 enum PVRSRV_ERROR SGXDoKickKM(void *hDevHandle,
-                                 struct SGX_CCB_KICK *psCCBKick);
+                               struct SGX_CCB_KICK *psCCBKick,
+                               struct PVRSRV_PER_PROCESS_DATA *proc);
 
 enum PVRSRV_ERROR SGXGetPhysPageAddrKM(void *hDevMemHeap,
                struct IMG_DEV_VIRTADDR sDevVAddr,
index 6678b49..ef4154b 100644 (file)
 #include "osfunc.h"
 #include "pvr_debug.h"
 #include "sgxutils.h"
+#include "perproc.h"
 
-enum PVRSRV_ERROR SGXDoKickKM(void *hDevHandle,
-                                 struct SGX_CCB_KICK *psCCBKick)
+enum PVRSRV_ERROR SGXDoKickKM(void *hDevHandle, struct SGX_CCB_KICK *psCCBKick,
+                             struct PVRSRV_PER_PROCESS_DATA *proc)
 {
        enum PVRSRV_ERROR eError;
        struct PVRSRV_KERNEL_SYNC_INFO *psSyncInfo;
index 22d2ac8..0890921 100644 (file)
 #include "osfunc.h"
 #include "pvr_debug.h"
 #include "sgxutils.h"
+#include "perproc.h"
 
 enum PVRSRV_ERROR SGXSubmitTransferKM(void *hDevHandle,
-                               struct PVRSRV_TRANSFER_SGX_KICK *psKick)
+                                       struct PVRSRV_TRANSFER_SGX_KICK *psKick,
+                                       struct PVRSRV_PER_PROCESS_DATA *proc)
 {
        struct PVRSRV_KERNEL_MEM_INFO *psCCBMemInfo =
            (struct PVRSRV_KERNEL_MEM_INFO *)psKick->hCCBMemInfo;