rk fb: print last timeout value when pagefault
authoryxj <yxj@rock-chips.com>
Thu, 8 May 2014 02:19:28 +0000 (10:19 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 8 May 2014 02:22:16 +0000 (10:22 +0800)
drivers/video/rockchip/rk_fb.c

index 9074f2e187240cda5910976ae56cb47a7a11a664..e22684a7e822f71b2b4e53703ef25931c6abbfbd 100755 (executable)
@@ -977,6 +977,7 @@ void rk_fd_fence_wait(struct rk_lcdc_driver *dev_drv,
 
 #ifdef CONFIG_ROCKCHIP_IOMMU
 static int g_last_addr[4];
+int g_last_timeout;
 u32 freed_addr[10];
 u32 freed_index;
 
@@ -1003,6 +1004,7 @@ int rk_fb_sysmmu_fault_handler(struct device *dev,
        printk("last freed buffer:\n");
        for (i = 0; freed_addr[i] != 0xfefefefe; i++)
                printk("%d:0x%08x\n",i, freed_addr[i]);
+       printk("last timeout:%d\n", g_last_timeout);
        dev_drv->ops->get_disp_info(dev_drv, buf,0) ;
        for (i = 0; i < PAGE_SIZE; i += DUMP_CHUNK) {
                if ((PAGE_SIZE - i) > DUMP_CHUNK) {
@@ -1252,6 +1254,7 @@ ext_win_exit:
 #if defined(CONFIG_ROCKCHIP_IOMMU)
                if (dev_drv->iommu_enabled) {
                        freed_index = 0;
+                       g_last_timeout = timeout;
                        if (timeout >= 3)
                                msleep(15);
                }