diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-09 20:32:28 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-14 12:44:14 +0200 |
commit | 42954857190b9df16d9d873ecc7f6cc38e013e44 (patch) | |
tree | 98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch | |
parent | f1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff) | |
download | upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.gz upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.bz2 upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.zip |
brcm2708: add linux 4.19 support
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch b/target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch new file mode 100644 index 0000000000..ec50f3baea --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0119-drm-vc4-Fix-warning-about-vblank-interrupts-before-D.patch @@ -0,0 +1,50 @@ +From b69ecf0b7259675e57be13836713946f1329f20c Mon Sep 17 00:00:00 2001 +From: Eric Anholt <eric@anholt.net> +Date: Mon, 5 Feb 2018 18:01:02 +0000 +Subject: [PATCH 119/703] drm/vc4: Fix warning about vblank interrupts before + DRM core is ready. + +The SMICS interrupt fires continuously, but since it's 1/100 the rate +of the USB interrupts, we don't really need a way to turn it off. We +do need to make sure that we don't tell DRM about it until DRM has +asked for the interrupt at least once, because otherwise it will throw +a warning at boot time. + +Signed-off-by: Eric Anholt <eric@anholt.net> +--- + drivers/gpu/drm/vc4/vc4_firmware_kms.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c ++++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c +@@ -43,6 +43,7 @@ struct vc4_crtc { + + struct drm_pending_vblank_event *event; + u32 overscan[4]; ++ bool vblank_enabled; + }; + + static inline struct vc4_crtc *to_vc4_crtc(struct drm_crtc *crtc) +@@ -420,7 +421,8 @@ static irqreturn_t vc4_crtc_irq_handler( + + if (stat & SMICS_INTERRUPTS) { + writel(0, vc4_crtc->regs + SMICS); +- drm_crtc_handle_vblank(&vc4_crtc->base); ++ if (vc4_crtc->vblank_enabled) ++ drm_crtc_handle_vblank(&vc4_crtc->base); + vc4_crtc_handle_page_flip(vc4_crtc); + ret = IRQ_HANDLED; + } +@@ -443,9 +445,9 @@ static int vc4_page_flip(struct drm_crtc + + static int vc4_fkms_enable_vblank(struct drm_crtc *crtc) + { +- /* XXX: Need a way to enable/disable the interrupt, to avoid +- * DRM warnings at boot time. +- */ ++ struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); ++ ++ vc4_crtc->vblank_enabled = true; + + return 0; + } |