Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fa1d9f9 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

dmaengine: gpi: increase cmd completion timeout for debug mode



In debug mode, the irq latency can be in order of magnitude
higher than a production build. Change timeout based on
build type.

CRs-Fixed: 2163123
Change-Id: Ib1e6a753084fe3421fcd8609f885e3ac265412f9
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent bc8b514d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -122,10 +122,12 @@ enum EV_PRIORITY {
#define DEFAULT_IPC_LOG_LVL (LOG_LVL_VERBOSE)
#define IPC_LOG_PAGES (40)
#define GPI_DBG_LOG_SIZE (SZ_1K) /* size must be power of 2 */
#define CMD_TIMEOUT_MS (1000)
#else
#define IPC_LOG_PAGES (2)
#define GPI_DBG_LOG_SIZE (0) /* size must be power of 2 */
#define DEFAULT_IPC_LOG_LVL (LOG_LVL_ERROR)
#define CMD_TIMEOUT_MS (250)
#endif

#define GPI_LABEL_SIZE (256)
@@ -133,7 +135,6 @@ enum EV_PRIORITY {
#define MAX_CHANNELS_PER_GPII (2)
#define GPI_TX_CHAN (0)
#define GPI_RX_CHAN (1)
#define CMD_TIMEOUT_MS (50)
#define STATE_IGNORE (U32_MAX)
#define REQ_OF_DMA_ARGS (5) /* # of arguments required from client */