video: rockchip: fb: add more debug message
Change-Id: Id096dec3a60cee14fecd16f37407fa10f8d8b90e Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
This commit is contained in:
parent
cc4eebc3ea
commit
fa7ef80efb
1 changed files with 18 additions and 3 deletions
|
|
@ -1831,8 +1831,18 @@ static int rk_fb_reg_effect(struct rk_lcdc_driver *dev_drv,
|
|||
if (dev_drv->ops->get_win_state) {
|
||||
win_status =
|
||||
dev_drv->ops->get_win_state(dev_drv, i, j);
|
||||
if (win_status)
|
||||
if (win_status) {
|
||||
wait_for_vsync = true;
|
||||
dev_info(dev_drv->dev,
|
||||
"win[%d]area[%d]: "
|
||||
"state: %d, "
|
||||
"cur state: %d,"
|
||||
"count: %d\n",
|
||||
i, j,
|
||||
dev_drv->win[i]->area[j].state,
|
||||
win_status,
|
||||
101 - count);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
pr_err("!!!win[%d]state:%d,error!!!\n",
|
||||
|
|
@ -1986,7 +1996,8 @@ static void rk_fb_update_reg(struct rk_lcdc_driver *dev_drv,
|
|||
timeout = wait_event_interruptible_timeout(dev_drv->vsync_info.wait,
|
||||
ktime_compare(dev_drv->vsync_info.timestamp, timestamp) > 0,
|
||||
msecs_to_jiffies(50));
|
||||
|
||||
if (timeout <= 0)
|
||||
dev_info(dev_drv->dev, "timeout: %ld\n", timeout);
|
||||
wait_for_vsync = rk_fb_reg_effect(dev_drv, regs, count);
|
||||
} while (wait_for_vsync && count--);
|
||||
#ifdef H_USE_FENCE
|
||||
|
|
@ -2111,6 +2122,8 @@ static int rk_fb_config_debug(struct rk_lcdc_driver *dev_drv,
|
|||
rk_fb_dbg(cmd, " xact=%d,yact=%d,xvir=%d,yvir=%d\n",
|
||||
area_par->xact, area_par->yact,
|
||||
area_par->xvir, area_par->yvir);
|
||||
rk_fb_dbg(cmd, " data_space%d\n",
|
||||
area_par->data_space);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3595,8 +3608,10 @@ int rk_fb_switch_screen(struct rk_screen *screen, int enable, int lcdc_id)
|
|||
dev_drv->id);
|
||||
if (enable == 2 /*&& dev_drv->enable*/)
|
||||
return 0;
|
||||
pr_info("switch:en=%d,lcdc_id=%d,screen type=%d,cur type=%d\n",
|
||||
pr_info("switch:en=%d,lcdc_id=%d,screen type=%d,cur type=%d",
|
||||
enable, lcdc_id, screen->type, dev_drv->cur_screen->type);
|
||||
pr_info("data space: %d, color mode: %d\n",
|
||||
screen->data_space, screen->color_mode);
|
||||
|
||||
mutex_lock(&dev_drv->switch_screen);
|
||||
dev_drv->hot_plug_state = enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue