PASDK-432:Temporary fix SYS/BIOS crash in Event Combiner Dispatcher.
authorFrank Livingston <frank-livingston@ti.com>
Thu, 2 Nov 2017 15:41:45 +0000 (10:41 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Thu, 2 Nov 2017 15:41:45 +0000 (10:41 -0500)
See sample_cs.c, edma3OsProtectExit():
EventCombiner_enableEvent(ccXferCompInt[edma3InstanceId][region_id]);

- ccXferCompInt[0][0] is set to 0x88.
- This causes overflow w.r.t. acceptable range 0-127 of argument to
EventCombiner_enableEvent(). Overflowed value is 0x8, which is event Id
associated with IPC.
- SYS/BIOS then expects IPC to be handled via handler associated with
Event Combiner instead of HWI #5.
No handler is registered for Event #8, so SYS/BIOS crashes.

pasdk/test_dsp/application/itopo/evmk2g/sample_k2g_cfg.c

index a3eff1955ce917828ec79a74ea42285380e8aa51..4dec6f9910c903620b2de2f420dfaddea8064bc1 100644 (file)
@@ -114,11 +114,11 @@ unsigned int numEdma3Tc[NUM_EDMA3_INSTANCES] = {2u, 2u};
  */
 unsigned int ccXferCompInt[NUM_EDMA3_INSTANCES][EDMA3_MAX_REGIONS] = {
                                                                                                        {
-                                                                                                       0x88, 0x89, 0x8a, 0x8b,
+                                                                                                       0x06, 0x89, 0x8a, 0x8b,
                                                                                                        0x8c, 0x8d, 0x8e, 0x8f,
                                                                                                        },
                                                                                                        {
-                                                                                                       0x90, 0x91, 0x92, 0x93,
+                                                                                                       0x07, 0x91, 0x92, 0x93,
                                                                                                        0x94, 0x95, 0x96, 0x97,
                                                                                                        },
                                                                                                };