video: driver: Increase FW timeout to 4sec for debug logging
Enabling debug logs in kernel driver can result in Linux kernel thread scheduling issues which causes unpredictable behavior. Therefore increased Hardware timeouts to 4sec if debug logs are enabled i.e. logs are more than default logs. Change-Id: Ic0d04bc0a740c8b11c77574ad3252ca2fa0696bb Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
02ed467c8a
commit
bf9dd01f97
@@ -78,8 +78,14 @@ enum vidc_msg_prio {
|
||||
FW_PRINTK = 0x10000000,
|
||||
FW_FTRACE = 0x20000000,
|
||||
};
|
||||
#define FW_LOGSHIFT 16
|
||||
#define FW_LOGMASK 0x0FFF0000
|
||||
|
||||
#define DRV_LOG (VIDC_ERR | VIDC_PRINTK)
|
||||
#define DRV_LOGSHIFT (0)
|
||||
#define DRV_LOGMASK (0x0FFF)
|
||||
|
||||
#define FW_LOG (FW_ERROR | FW_FATAL | FW_PRINTK)
|
||||
#define FW_LOGSHIFT (16)
|
||||
#define FW_LOGMASK (0x0FFF0000)
|
||||
|
||||
#define dprintk_inst(__level, __level_str, inst, __fmt, ...) \
|
||||
do { \
|
||||
|
Reference in New Issue
Block a user