1. 25 9月, 2015 3 次提交
    • M
      drm/fbdev: Update legacy plane->fb refcounting for atomic restore · 94284037
      Matt Roper 提交于
      Starting with commit
      
              commit 28cc504e
              Author: Rob Clark <robdclark@gmail.com>
              Date:   Tue Aug 25 15:36:00 2015 -0400
      
                  drm/i915: enable atomic fb-helper
      
      I've been seeing some panics on i915 when the DRM master shuts down that appear
      to be caused by using an already-freed framebuffer (i.e., we're unexpectedly
      dropping our initial FB's reference count to 0 and freeing it, which causes a
      crash when we try to restore it later).  Digging deeper, the state FB
      refcounting is working as expected, but we seem to be missing proper
      refcounting on the legacy plane->fb pointers in the new atomic fbdev code.
      
      Tracking plane->old_fb and then doing a ref/unref at the end of the
      fbdev restore like we do in the legacy ioctl's ensures we don't miscount
      references on plane->fb and avoids the panics.
      
      v2 from Daniel:
      
      Really do what the atomic ioctl does:
      - Also update plane->fb and plane->crtc.
      - Clear out plane->old_fb on failures too.
      
      v3: git add everything. Oops.
      
      v4: Also clear old_fb in all other failure paths, spotted by David.
      
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: intel-gfx@lists.freedesktop.org
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: Matt Roper <matthew.d.roper@intel.com> (v1)
      Reviewd-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      94284037
    • L
      drm: Spell vga_switcheroo consistently · f15a66e6
      Lukas Wunner 提交于
      Currently everyone and their dog has their own favourite spelling
      for vga_switcheroo. This makes it hard to grep dmesg for log entries
      relating to vga_switcheroo. It also makes it hard to find related
      source files in the tree.
      
      vga_switcheroo.c uses pr_fmt "vga_switcheroo". Use that everywhere.
      Signed-off-by: NLukas Wunner <lukas@wunner.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f15a66e6
    • V
      drm: s/int crtc/unsigned int pipe/ straggles · 1da248a5
      Ville Syrjälä 提交于
      Finish the recent replacement of 'int pipe' with 'unsigned int pipe'
      
      Cc: Thierry Reding <treding@nvidia.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      1da248a5
  2. 17 9月, 2015 3 次提交
  3. 16 9月, 2015 1 次提交
    • R
      gpu/drm: Kill off set_irq_flags usage · ca0141de
      Rob Herring 提交于
      set_irq_flags is ARM specific with custom flags which have genirq
      equivalents. Convert drivers to use the genirq interfaces directly, so we
      can kill off set_irq_flags. The translation of flags is as follows:
      
      IRQF_VALID -> !IRQ_NOREQUEST
      IRQF_PROBE -> !IRQ_NOPROBE
      IRQF_NOAUTOEN -> IRQ_NOAUTOEN
      
      For IRQs managed by an irqdomain, the irqdomain core code handles clearing
      and setting IRQ_NOREQUEST already, so there is no need to do this in
      .map() functions and we can simply remove the set_irq_flags calls. Some
      users also modify IRQ_NOPROBE and this has been maintained although it
      is not clear that is really needed. There appears to be a great deal of
      blind copy and paste of this code.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      ca0141de
  4. 14 9月, 2015 1 次提交
  5. 11 9月, 2015 5 次提交
  6. 10 9月, 2015 3 次提交
  7. 09 9月, 2015 12 次提交
  8. 08 9月, 2015 12 次提交