Hi All,
CCSV5 = 5.1.1.00031
bios_mcsdk_02_00_07_19_setupwin32
C:\Program Files (x86)\Texas Instruments\pdk_C6670_1_0_0_19\packages\ti\transport\ipc\examples\qmssIpcBenchmark
I see the example, throughout has used the terminology "MONOLITHIC Descriptor", but what i see is there is no descType is set to Monolithic and there is no Cppi_initDescriptor() to specify the descType has Monolithic. I think this is a documentation error in the code [all variable names are put as Monolithic, but in reality, it is doing Host Type Descriptor based qmss communication]. Please clarify on this.
"The drivers/application can reclaim this memory by calling Cppi_initDescriptor() or Qmss_initDescriptor()." -- QMSS_SDS_LLD.pdf and multicore navigator user guide.pdf
=======================solution i tried===========
in the same example i tried the following
memset (&cppiDescCfg, 0, sizeof (cppiDescCfg));
cppiDescCfg.memRegion = (Qmss_MemRegion) 0;
cppiDescCfg.descNum = numDescriptors;
cppiDescCfg.destQueueNum = QMSS_PARAM_NOT_SPECIFIED;
cppiDescCfg.queueType = Qmss_QueueType_INFRASTRUCTURE_QUEUE;
cppiDescCfg.initDesc = Cppi_InitDesc_INIT_DESCRIPTOR;
cppiDescCfg.descType = Cppi_DescType_MONOLITHIC;
cppiDescCfg.returnPushPolicy = Qmss_Location_TAIL;
cppiDescCfg.cfg.mono.dataOffset = 0;
cppiDescCfg.returnQueue.qMgr = 0;
cppiDescCfg.returnQueue.qNum = QMSS_PARAM_NOT_SPECIFIED;
cppiDescCfg.epibPresent = Cppi_EPIB_NO_EPIB_PRESENT;
MonoSetupStatus = Cppi_initDescriptor (&cppiDescCfg, &numAllocated);
==================================================
i inserted the above code before this code [line 438 in that example bench_qmss.c file]
Cache_wb (monolithicDesc,
SIZE_MONOLITHIC_DESC * NUM_MONOLITHIC_DESC,
Cache_Type_ALLD, TRUE);
=================================================
after this step, what i see is the descriptor region has changed its format to MONOLithic type[i am seeing return value MonoSetupStatus as 800] [i am still analysing the memory contents], but after that it is crashing with following error
"[C66xx_0] ti.transport.ipc.qmss.transports.TransportQmss: line 676: assertion failure: A_qmssError: Qmss set up error
xdc.runtime.Error.raise: terminating execution"
Can someone please comment on correcting above steps[Cppi_initDescriptor ] to convert the example to monolithic type.
Thanks
RC Reddy