Merge "video: driver: Increase FW timeout to 4sec for debug logging"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
643d2e2304
@@ -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 { \
|
||||
|
@@ -19,7 +19,7 @@ extern struct msm_vidc_core *g_core;
|
||||
#define MSM_VIDC_MIN_STATS_DELAY_MS 200
|
||||
#define MSM_VIDC_MAX_STATS_DELAY_MS 10000
|
||||
|
||||
unsigned int msm_vidc_debug = VIDC_ERR | VIDC_PRINTK | FW_ERROR | FW_FATAL | FW_PRINTK;
|
||||
unsigned int msm_vidc_debug = (DRV_LOG | FW_LOG);
|
||||
|
||||
static int debug_level_set(const char *val,
|
||||
const struct kernel_param *kp)
|
||||
@@ -45,11 +45,12 @@ static int debug_level_set(const char *val,
|
||||
|
||||
msm_vidc_debug = dvalue;
|
||||
|
||||
/* check only driver logmask */
|
||||
if ((dvalue & 0xFF) > (VIDC_ERR | VIDC_HIGH)) {
|
||||
core->capabilities[HW_RESPONSE_TIMEOUT].value = 2 * HW_RESPONSE_TIMEOUT_VALUE;
|
||||
core->capabilities[SW_PC_DELAY].value = 2 * SW_PC_DELAY_VALUE;
|
||||
core->capabilities[FW_UNLOAD_DELAY].value = 2 * FW_UNLOAD_DELAY_VALUE;
|
||||
/* check if driver or FW logmask is more than default level */
|
||||
if (((dvalue & DRV_LOGMASK) & ~(DRV_LOG)) ||
|
||||
((dvalue & FW_LOGMASK) & ~(FW_LOG))) {
|
||||
core->capabilities[HW_RESPONSE_TIMEOUT].value = 4 * HW_RESPONSE_TIMEOUT_VALUE;
|
||||
core->capabilities[SW_PC_DELAY].value = 4 * SW_PC_DELAY_VALUE;
|
||||
core->capabilities[FW_UNLOAD_DELAY].value = 4 * FW_UNLOAD_DELAY_VALUE;
|
||||
} else {
|
||||
/* reset timeout values, if user reduces the logging */
|
||||
core->capabilities[HW_RESPONSE_TIMEOUT].value = HW_RESPONSE_TIMEOUT_VALUE;
|
||||
|
Reference in New Issue
Block a user