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:
Vedang Nagar
2022-10-19 17:47:02 +05:30
committed by Gerrit - the friendly Code Review server
parent 02ed467c8a
commit bf9dd01f97
2 changed files with 15 additions and 8 deletions

View File

@@ -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 { \