PASDK-218:Merge remote-tracking branch 'origin/dev_pasdk_govind_pasdk218' into dev_pa...
authorFrank Livingston <frank-livingston@ti.com>
Wed, 26 Jul 2017 16:16:33 +0000 (11:16 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Wed, 26 Jul 2017 16:16:33 +0000 (11:16 -0500)
pasdk/common/dbgBenchmark.h
pasdk/test_dsp/application/app.cfg
pasdk/test_dsp/application/app.cmd
pasdk/test_dsp/sap/sap.c

index 587caca05cb22b745c6adccad01cfec31e1e9b6e..0fc569f3af677c121ed01cf6d59654ff28dfaf99 100644 (file)
@@ -45,8 +45,8 @@ All rights reserved.
 //#define _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
 
 #ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
-#define PAF_SYS_FRAMELENGTH     ( 256 )
-#define PAF_MAX_SYS_FRAMELENGTH ( 256 )
+#define PAF_SYS_FRAMELENGTH     ( 1024 )
+#define PAF_MAX_SYS_FRAMELENGTH ( 1024 )
 
 #else // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
 #define PAF_SYS_FRAMELENGTH     ( 512 )     // 512 or 1024
index 10ee8a95080d2ccee1297fb268412aecb8df86a8..c9ab5466aca45e8f38ce21186fff432eeb9c0a14 100644 (file)
@@ -347,7 +347,7 @@ Idle.idleFxns[2] = "&idleDebug"             // Idle function for debug code
 /* Add L2 SRAM heap */ // formerly IRAM
 var heapMem0Params = new HeapMem.Params();
 heapMem0Params.instance.name = "heapMemL2Sram";
-heapMem0Params.size = 700*1024; //512*1024; // 700 kB temporary setting for OB in L2
+heapMem0Params.size = 550*1024; // 550 kB temporary setting for OB in L2
 heapMem0Params.sectionName = ".l2SramHeap";
 Program.global.heapMemL2Sram = HeapMem.create(heapMem0Params);
 Program.sectMap[".l2SramHeap"] = "L2SRAM";
index 067130253383b76f61b3a95790a2787ac9a61b3f..4e2f82aea2f6da7658cfe41350b705920f42d6d6 100644 (file)
@@ -87,7 +87,7 @@ SECTIONS
     .gCapIbBuf      :> DDR3
     .gCapObBuf      :> CORE0_DDR3
     .gCapAfBuf      :> CORE0_DDR3
-
+    .sap_UNDER         :> L2SRAM
 /*
     platform_lib  :> L2SRAM
     platform_text :> L2SRAM
index 862494d54ed62c3132f2892fd8b94f73d6c96f4c..899fb976ecf538897d86909ab6ef003c66c7c081 100644 (file)
@@ -98,6 +98,7 @@ void swapHdmi(Ptr, int);
 
 #define SAP_UNDER_LEN 8
 
+#pragma DATA_SECTION(sap_UNDER, ".sap_UNDER");
 int sap_UNDER[SAP_UNDER_LEN]; // used for underrun
 int sap_OVER_1LANE = 0;     // used for overrun
 int sap_OVER_4LANE[4] = {0,0,0,0};      // used for overrun
@@ -607,7 +608,8 @@ Int SAP_idle (DEV2_Handle device, Bool flush)
    if (pDevExt->activeEdma != EDMA_HINV)
           EDMA3_DRV_disableTransfer (hEdma, pDevExt->activeEdma, EDMA3_DRV_TRIG_MODE_EVENT);
 
-    pDevExt->numQueued = 0;
+   Log_info0("SAP_idle:Before pDevExt->numQueued = 0");
+   pDevExt->numQueued = 0;
 
     // signal stopped
     pDevExt->runState = 0;
@@ -703,7 +705,7 @@ Int SAP_issue (DEV2_Handle device)
     XDAS_UInt32 parentEdma;
 
     if (device->mode == DEV2_OUTPUT)
-       Log_info1("SAP_issue for output device with pDevExt->errorState = 0x%x", pDevExt->errorState);
+       Log_info3("SAP_issue for output device with pDevExt->errorState = 0x%x, pDevExt->runState = 0x%x, pDevExt->numQueued = 0x%x", pDevExt->errorState, pDevExt->runState, pDevExt->numQueued);
 
     if ((device->mode == DEV2_OUTPUT) && (pDevExt->errorState >= PAF_SIO_ERROR_ERRBUF_XFER))
     {
@@ -801,7 +803,7 @@ Int SAP_issue (DEV2_Handle device)
         pDevExt->shutDown = 0;
 
         //if (device->mode == DEV2_OUTPUT)
-                       //SAP_EDMA_dumpParams(1);
+                       //SAP_EDMA_dumpParams(5);
 
     // special case enables when not yet started
     if (pDevExt->runState == 0) {
@@ -866,11 +868,11 @@ Int SAP_reclaim (DEV2_Handle device)
 
     //TRACE_GEN((&TR_MOD, "SAP_reclaim.%d (0x%x)", __LINE__, device));
     if (device->mode == DEV2_OUTPUT)
-               Log_info2("SAP_reclaim for output device with pDevExt->errorState = 0x%x & runState: 0x%x", pDevExt->errorState, pDevExt->runState);
+               Log_info3("SAP_reclaim for output device with pDevExt->errorState = 0x%x, runState: 0x%x & pDevExt->numQueued = 0x%x", pDevExt->errorState, pDevExt->runState, pDevExt->numQueued);
     // must be running and  error free 
     if ((!pDevExt->runState) || (pDevExt->errorState))
     {
-        Log_info3("SAP_reclaim.%d, not runState: 0x%x, mode = 0x%x", __LINE__, pDevExt->errorState, device->mode);
+        Log_info3("SAP_reclaim.%d, error-state: 0x%x, mode = 0x%x", __LINE__, pDevExt->errorState, device->mode);
         return SIO2_EBADIO;
     }
 
@@ -1209,7 +1211,9 @@ Int SAP_shutdown (DEV2_Handle device)
     // reset counter
     pDevExt->numQueued = 0;
 
-    //DJDBG_SAP_EDMA_dumpParams(1);
+    Log_info0("SAP_shutdown: After pDevExt->numQueued = 0 ");
+
+    //SAP_EDMA_dumpParams(8);
     // make sure active is linked to error
     EDMA3_DRV_linkChannel (hEdma, pDevExt->activeEdma, pDevExt->errorEdma);