mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
fce21ae4cc
Right now all brcm2708 patches are extracted from the non-mainline raspberrypi/linux git tree. Many of them are hacks and/or are unneeded in LEDE. Raspberry Pi is getting better and better mainline support so it would be nice to finally start maintaining patches in a cleaner way: 1) Backport patches accepted in upstream tree 2) Start using upstream drivers 3) Pick only these patches that are needed for more complete support Handling above tasks requires grouping patches - ideally using the same prefixes as generic ones. It means we should rename existing patches to use some high prefix. This will allow e.g. use 0xx for backported code. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Stijn Tintel <stijn@linux-ipv6.be>
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From bc93583742c7ba9c84462664d4c798ba43bef26f Mon Sep 17 00:00:00 2001
|
|
From: Eric Anholt <eric@anholt.net>
|
|
Date: Thu, 2 Feb 2017 09:42:18 -0800
|
|
Subject: [PATCH] drm/vc4: Fix sending of page flip completion events in FKMS
|
|
mode.
|
|
|
|
In the rewrite of vc4_crtc.c for fkms, I dropped the part of the
|
|
CRTC's atomic flush handler that moved the completion event from the
|
|
proposed atomic state change to the CRTC's current state. That meant
|
|
that when full screen pageflipping happened (glxgears -fullscreen in
|
|
X, compton, por weston), the app would end up blocked firever waiting
|
|
to draw its next frame.
|
|
|
|
Signed-off-by: Eric Anholt <eric@anholt.net>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_firmware_kms.c | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
|
|
@@ -338,6 +338,21 @@ static int vc4_crtc_atomic_check(struct
|
|
static void vc4_crtc_atomic_flush(struct drm_crtc *crtc,
|
|
struct drm_crtc_state *old_state)
|
|
{
|
|
+ struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc);
|
|
+ struct drm_device *dev = crtc->dev;
|
|
+
|
|
+ if (crtc->state->event) {
|
|
+ unsigned long flags;
|
|
+
|
|
+ crtc->state->event->pipe = drm_crtc_index(crtc);
|
|
+
|
|
+ WARN_ON(drm_crtc_vblank_get(crtc) != 0);
|
|
+
|
|
+ spin_lock_irqsave(&dev->event_lock, flags);
|
|
+ vc4_crtc->event = crtc->state->event;
|
|
+ crtc->state->event = NULL;
|
|
+ spin_unlock_irqrestore(&dev->event_lock, flags);
|
|
+ }
|
|
}
|
|
|
|
static void vc4_crtc_handle_page_flip(struct vc4_crtc *vc4_crtc)
|