From: Chitresh Gupta Date: Tue, 3 Jan 2017 09:16:45 +0000 (+0530) Subject: PASDK150: Workaround for UART timeout due to Hwi_disable(). X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fperformance-audio-sr.git;a=commitdiff_plain;h=ecee0f3e5740c3114753be0a819c06e307cf7dcc PASDK150: Workaround for UART timeout due to Hwi_disable(). --- diff --git a/pasdk/test_dsp/sap/sap.c b/pasdk/test_dsp/sap/sap.c index 65d47dd9..0b68afa1 100644 --- a/pasdk/test_dsp/sap/sap.c +++ b/pasdk/test_dsp/sap/sap.c @@ -822,9 +822,11 @@ Int SAP_reclaim (DEV2_Handle device) //note: size here is in # of bytes, so incrementing by 4X32b words ( or 8X16b) //for(i=0; i<(pFrame->size)/(4*4); i+=16) //{ - oldMask = Hwi_disable (); + // Hwi_disable commented since it used to affect other interrupts + // max HWI disable duration ~1ms observed + //oldMask = Hwi_disable (); swapHdmi(pFrame->addr, pFrame->size); - Hwi_restore(oldMask); + //Hwi_restore(oldMask); Cache_wb (pFrame->addr, pFrame->size, Cache_Type_ALL, 0); Cache_wait(); @@ -1158,7 +1160,9 @@ Void SAP_watchDog (Void) // protect context Task_disable (); // needed since we may call SEM_post - oldMask = Hwi_disable (); + // Hwi_disable commented since it used to affect other interrupts + // max HWI disable duration ~4ms observed + //oldMask = Hwi_disable (); //TRACE_VERBOSE((&TR_MOD, "%s.%d: devices loop, numDevices = %d", __FUNCTION__, __LINE__, dapDrv.numDevices)); @@ -1199,7 +1203,7 @@ Void SAP_watchDog (Void) // renable interrupts and task manager. // If we posted to the semaphore then the TSK_enable call will lead to // an immediate task switch to the associated audio thread. - Hwi_restore (oldMask); + //Hwi_restore (oldMask); Task_enable (); } // SAP_watchDog