From 24e2d99d4c7e11324ef72f9dc7eaf03b82cf8184 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 9 Jul 2017 19:34:30 +0300 Subject: [PATCH] pine64: fix vfe dmesg flood --- board/pine64/linux-vfe-dmesg-flood-fix.patch | 33 ++++++++++++++++++++ configs/pine64_defconfig | 1 + 2 files changed, 34 insertions(+) create mode 100644 board/pine64/linux-vfe-dmesg-flood-fix.patch diff --git a/board/pine64/linux-vfe-dmesg-flood-fix.patch b/board/pine64/linux-vfe-dmesg-flood-fix.patch new file mode 100644 index 0000000000..d69b7fe068 --- /dev/null +++ b/board/pine64/linux-vfe-dmesg-flood-fix.patch @@ -0,0 +1,33 @@ +diff -uNr linux-pine64-orig/drivers/media/platform/sunxi-vfe/vfe.c linux-pine64-vfe-fix/drivers/media/platform/sunxi-vfe/vfe.c +--- linux-pine64-orig/drivers/media/platform/sunxi-vfe/vfe.c 2017-07-09 19:19:29.738112486 +0300 ++++ linux-pine64-vfe-fix/drivers/media/platform/sunxi-vfe/vfe.c 2017-07-09 19:22:05.466235166 +0300 +@@ -1348,17 +1348,17 @@ + bsp_csi_int_disable(dev->vip_sel, dev->cur_ch,CSI_INT_FRAME_DONE); + if (dev->first_flag == 0) { + dev->first_flag++; +- vfe_print("capture video mode!\n"); ++ //vfe_print("capture video mode!\n"); + goto set_isp_stat_addr; + } + if (dev->first_flag == 1) { + dev->first_flag++; +- vfe_print("capture video first frame done!\n"); ++ //vfe_print("capture video first frame done!\n"); + } + + //video buffer handle: + if ((&dma_q->active) == dma_q->active.next->next->next) { +- vfe_warn("Only two buffer left for csi\n"); ++ //vfe_warn("Only two buffer left for csi\n"); + dev->first_flag=0; + goto unlock; + } +@@ -1366,7 +1366,7 @@ + + /* Nobody is waiting on this buffer*/ + if (!waitqueue_active(&buf->vb.vb2_queue->done_wq)) { +- vfe_warn(" Nobody is waiting on this video buffer,buf = 0x%p\n",buf); ++ //vfe_warn(" Nobody is waiting on this video buffer,buf = 0x%p\n",buf); + } + list_del(&buf->list); + v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); diff --git a/configs/pine64_defconfig b/configs/pine64_defconfig index b0914977ce..477d225296 100644 --- a/configs/pine64_defconfig +++ b/configs/pine64_defconfig @@ -13,6 +13,7 @@ BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/longsleep/linux-pine64/archive/a08f5219d240ae0edf93d090ff1fda0a82a6cb3a.tar.gz" +BR2_LINUX_KERNEL_PATCH="board/pine64/linux-vfe-dmesg-flood-fix.patch" BR2_LINUX_KERNEL_DEFCONFIG="sun50iw1p1smp_linux" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox.config" BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y