summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a200e78)
raw | patch | inline | side by side (parent: a200e78)
author | Ramsey Harris <ramsey@ti.com> | |
Mon, 18 Aug 2014 23:55:41 +0000 (16:55 -0700) | ||
committer | Robert Tivy <rtivy@ti.com> | |
Wed, 20 Aug 2014 18:02:22 +0000 (11:02 -0700) |
On EVE1, fixed mailbox index computed when enabling interrupt
from DSP2. Fixed mailbox table entry for IPU1-1 to DSP1 mapping.
from DSP2. Fixed mailbox table entry for IPU1-1 to DSP1 mapping.
packages/ti/sdo/ipc/family/tda3xx/NotifySetup.c | patch | blob | history | |
packages/ti/sdo/ipc/family/tda3xx/TableInit.xs | patch | blob | history |
diff --git a/packages/ti/sdo/ipc/family/tda3xx/NotifySetup.c b/packages/ti/sdo/ipc/family/tda3xx/NotifySetup.c
index 9b79fce3e757b24d5bb0f21f8d7c79471ed37389..bd0107a7643b5411f05acd3270a367a25fa23ad8 100644 (file)
#elif defined(xdc_target__isaCompatible_arp32)
if ((remoteProcId == NotifySetup_dsp1ProcId)
+ || (remoteProcId == NotifySetup_dsp2ProcId)
|| (remoteProcId == NotifySetup_ipu1_0ProcId)) {
mbxIdx = 0;
}
- else if ((remoteProcId == NotifySetup_dsp2ProcId)
- || (remoteProcId == NotifySetup_ipu1_1ProcId)) {
-
+ else if (remoteProcId == NotifySetup_ipu1_1ProcId) {
mbxIdx = 1;
}
else {
#elif defined(xdc_target__isaCompatible_arp32)
if ((remoteProcId == NotifySetup_dsp1ProcId)
+ || (remoteProcId == NotifySetup_dsp2ProcId)
|| (remoteProcId == NotifySetup_ipu1_0ProcId)) {
mbxIdx = 0;
}
- else if ((remoteProcId == NotifySetup_dsp2ProcId)
- || (remoteProcId == NotifySetup_ipu1_1ProcId)) {
-
+ else if (remoteProcId == NotifySetup_ipu1_1ProcId) {
mbxIdx = 1;
}
else {
diff --git a/packages/ti/sdo/ipc/family/tda3xx/TableInit.xs b/packages/ti/sdo/ipc/family/tda3xx/TableInit.xs
index f526dcacdc322b8931d423590a741b2cd40eedf1..0bba847949196430a9376cab2668a6afe3158dc0 100644 (file)
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
/*
* ======== TableInit.xs ========
- *
*/
-/*
- * Virtual Index Assignment:
- * DSP1 -> 0
- * DSP2 -> 1
- * IPU1 -> 2 (IPU1-0)
- * IPU1-1 -> 3
- * EVE1 -> 4
+/* Virtual Index Assignment (invariant)
+ * DSP1: 0
+ * DSP2: 1
+ * IPU1,IPU1-0: 2
+ * IPU1-1: 3
+ * EVE1: 4
*/
-var eve1VirtId = 4;
var dsp1VirtId = 0;
var dsp2VirtId = 1;
var ipu1_0VirtId = 2;
var ipu1_1VirtId = 3;
+var eve1VirtId = 4;
/*
* 3. Sub-Mailbox Index = mailboxTable[Index] & 0xFF
*/
- /* 'i' is src core index, and
- * 'j' is dst core index
+ /* idx(mod, src, dst) - compute table index
+ * src: source core virtual index
+ * dst: destination core virtual index
*
- * enc(mbxIdx, user, fifo)
+ * enc(mbxIdx, user, fifo) - encode mailbox table entry
+ * mbxIdx: mailbox index
+ * 0: EVE1 Mailbox 0
+ * 1: EVE1 Mailbox 1
+ * 2: System Mailbox 2
+ * user: mailbox user interrupt
+ * fifo: mailbox fifo number
*/
mod.mailboxTable[idx(mod,0,0)] = -1; /* DSP1 -> DSP1 */
mod.mailboxTable[idx(mod,2,3)] = enc(2,3,11); /* IPU1-0 -> IPU1-1 */
mod.mailboxTable[idx(mod,2,4)] = enc(0,0,5); /* IPU1-0 -> EVE1 */
- mod.mailboxTable[idx(mod,3,0)] = enc(2,2,0); /* IPU1-1 -> DSP1 */
+ mod.mailboxTable[idx(mod,3,0)] = enc(2,0,2); /* IPU1-1 -> DSP1 */
mod.mailboxTable[idx(mod,3,1)] = enc(2,1,5); /* IPU1-1 -> DSP2 */
mod.mailboxTable[idx(mod,3,2)] = enc(2,2,8); /* IPU1-1 -> IPU1-0 */
mod.mailboxTable[idx(mod,3,3)] = -1; /* IPU1-1 -> IPU1-1 */