From fedca1d5bb368421695b709a988ae0a6acf1ace9 Mon Sep 17 00:00:00 2001 From: Hal Emmerich Date: Tue, 25 Jun 2019 14:21:03 -0500 Subject: [PATCH] Add patch to silence the vop warn on spam --- .../patches-tested/kernel/silence_vop_spam.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 resources/BuildResources/patches-tested/kernel/silence_vop_spam.patch diff --git a/resources/BuildResources/patches-tested/kernel/silence_vop_spam.patch b/resources/BuildResources/patches-tested/kernel/silence_vop_spam.patch new file mode 100644 index 0000000..c87b4ea --- /dev/null +++ b/resources/BuildResources/patches-tested/kernel/silence_vop_spam.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +index 48c222d..f8f9ae6 100644 +--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c ++++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +@@ -845,7 +845,7 @@ static int vop_crtc_enable_vblank(struct drm_crtc *crtc) + struct vop *vop = to_vop(crtc); + unsigned long flags; + +- if (!vop->is_enabled) ++ if (WARN_ON(!vop->is_enabled)) + return -EPERM; + + spin_lock_irqsave(&vop->irq_lock, flags);