Hi All,
If i want to use MessageQ over SRIO and QMSS, how to configure the .CFG file
=============================================================================
If i look at a SRIO [Producer Consumer SRIO Project] example [CHIP to CHIP communication], it says
/* Set SRIO as the transport */MessageQ.SetupTransportProxy = xdc.useModule(Settings.getMessageQSetupDelegate());var TransportSrioSetup = xdc.useModule('ti.transport.ipc.srio.transports.TransportSrioSetup');MessageQ.SetupTransportProxy = TransportSrioSetup;
If i look at IPC_QMSS_benchmark example [core to core communication], it says
/* use IPC over QMSS */MessageQ.SetupTransportProxy = xdc.useModule(Settings.getMessageQSetupDelegate());var TransportQmssSetup = xdc.useModule('ti.transport.ipc.qmss.transports.TransportQmssSetup');MessageQ.SetupTransportProxy = TransportQmssSetup;
so how to make sure that MessageQ uses SRIO as Transport for CHIP to CHIP and QMSS for Core to Core communication in this .cfg file. please help me in setting/writing the .cfg file.
Thanks
RC Reddy
RC,
Right now MessageQ does not provide the ability to specify different transport proxies, via MessagQ.SetupTransportProxy, in the application .cfg file. You'll need to specify the SRIO IPC transport as the proxy in the .cfg file.
Then in the application itself you'll have unregister the SRIO transport for all core to core situations. After unregistering the SRIO transport for all core to core situations you'll need to register the QMSS transport. Please note you can register a new transport with the same priority as the one set in the .cfg file after you've unregistered the original transport.
Example code for unregistering the original SRIO transport then registering the QMSS transport in its place.
If (TransportSrioSetup_isRegistered(remoteProcId))
{
TransportSrioSetup_detach(remoteProcId);
TransportQmss_create(remoteProcId, &transportQmssParams, &eb);
}
Justin
____________________Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.
Hi Justin,
Thanks for quick answer. I will venture into coding for that part in coming days. I will post back any questions and verify the answer [what you suggested] then.
I also want to point out that if you don't need MessageQ (IPC), you can still use SRIO messaging between DSP using the LLD. There is an example showing how to do this in the MCSDK. After you install: http://software-dl.ti.com/sdoemb/sdoemb_public_sw/bios_mcsdk/latest/index_FDS.html
find the example in the following directory assuming you are using C6678:
pdk_C6678_1_0_0_20\packages\ti\drv\srio\example\SRIOMulticoreLoopback
Regards,
Travis
If you need more help, please reply back. If this answers the question, please click Verify Answer , below.
Hi tscheck,
My required functionality is only thing
between master core [CORE0] in chip c6670 and another master core in ANOTHER chip c6670 communication.
1. establish chip level communication using IPC over SRIO.
2. establish core level communication using IPC over qmss [qpend] or IPC over shared memory.
please let me know what steps i need to follows, i followed steps suggested by justin, i was able to detach all core communicaiton on SRIO and was able to achieve core communication using qmss [i was able to see qmss transport instance in ROV tool], but when i do put MessageQ, other side message is not received.
before that, at any given point of transportqmss can exists between one core to one core only [this is the basic requirement in code]...say CORE0 if attached to CORE1 on qmss transport, cannot transport_attach itself to another CORE2 again. how to over come this?
For the QMSS transport, when you do the MessageQ put it follows below flow. If you don't get any message on the receiving core then the first thing which you should check whether the receiving core received the interrupt or not.
If you are not getting the ISR then it might happen that descriptor is not getting pushed to the respective queue. I am preparing a GEL function which can help you find the number of descriptors in a perticular queue. I will send you that by tomorrow.
Also I could not conclude about your SRIO tranport query. Are you facing the same problem for your SRIO transport query between two devices?
Bhavin
Please find attached is the GEL file which i was mentioning. 3348.Shannon_SystemDebug_v0.3.gel
Please use the first function C6678 CPPI Queue Status. It will give you options for start queue to end queue. There are lots of other debugging functions in that GEL file. You can use those as per your use case.
We are able to reproduce issue similar to yours. Justin should be able to provide you more details on it.
Hi RC
Are you running the code on Simulator or any hardware Board.,
I was able to use Qpend Comm on Hardware but it didn't work on Simulator (was not getting ISR invoked on receiver core) if u do successive message push.
Inserting delay between push solved that problem on Simulator too.
Regards
Rahul