1. 05 Jul, 2013 3 commits
  2. 04 Jul, 2013 9 commits
    • Daniel Vetter's avatar
      drm/mm: kill color_search_free/get_block · 69163ea8
      Daniel Vetter authored
      drm/i915 is the only user of the color allocation handling and
      switched to insert_node a while ago. So we can ditch this.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      69163ea8
    • Seung-Woo Kim's avatar
      drm: fix print format of sequence in trace point · 04274cd0
      Seung-Woo Kim authored
      seq of a trace point is unsigned int but print format was %d. So
      it fixes the format as %u.
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      04274cd0
    • Seung-Woo Kim's avatar
      drm: fix error routines in drm_open_helper · df9b6a9c
      Seung-Woo Kim authored
      There are missing parts to handle error in drm_open_helper().
      The priv->minor, assigned by idr_find() which can return NULL,
      should be checked whether it is NULL or not before referencing it.
      put_pid(), drm_gem_release(), and drm_prime_destory_file_private()
      should be called when error happens after their pair functions are
      called. If an error occurs after executing dev->driver->open()
      which allocates driver specific per-file private data, then the
      private data should be released.
      Signed-off-by: default avatarYoungJun Cho <yj44.cho@samsung.com>
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: Chris Wilson <chris-wilson.co.uk>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      df9b6a9c
    • Seung-Woo Kim's avatar
      drm: add assertion for checking null edid to drm_edid_block_valid · fe2ef780
      Seung-Woo Kim authored
      If raw_edid of drm_edid_block_vaild() is null, it will crash, so
      checking in bad label is removed and instead assertion is added at
      the top of the function.
      The type of return for the function is bool, so it fixes to return
      true and false instead of 1 and 0.
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      fe2ef780
    • Shuah Khan's avatar
      drm: Convert drm class driver from legacy pm ops to dev_pm_ops · cf4b91f2
      Shuah Khan authored
      Convert drivers/gpu/drm class to use dev_pm_ops for power management and
      remove Legacy PM ops hooks. With this change, drm class registers
      suspend/resume callbacks via class->pm (dev_pm_ops) instead of Legacy
      class->suspend/resume. When __device_suspend() runs call-backs, it will
      find class->pm ops for the drm class.
      
      drm_class_suspend() hook calls driver legacy ops with the state information.
      e.g: drm_class_suspend() calls into driver suspend routines
      via drm_dev->driver->suspend(drm_dev, state).
      
      Once drm_class_suspend() is converted to dev_pm_ops, it will no longer
      have access to pm_transition which it has to pass into driver legacy
      suspend calls. A new freeze and suspend hooks are added to address the not
      having access to the state information. The new freeze and suspend hooks
      simply call __drm_class_suspend() with the appropriate pm state information.
      __drm_class_suspend() is the original suspend hook with a new name.
      Signed-off-by: default avatarShuah Khan <shuah.kh@samsung.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      cf4b91f2
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2013-07-03' of... · d0aaa283
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2013-07-03' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
      
      Pile of fixes for 3.11. A bit large in patch count, but that's simply due
      to two fixes being split up into really small parts. Also I've included a
      few more vlv patches than I'd have included for other platforms. But since
      vlv is officially supported for the first time only in 3.11 that shouldn't
      result in unbearable risks.
      
      Highlights:
      - ghost eDP fixes for hsw from Paulo
      - fix PCH detection in virtualized enviroments (Rui Guo)
      - duct-tape dma sg construction when swiotlb is in use (Konrad), dupe with
        a patch in your drm-fixes branch
      - fix sdvo hotplug on i965g
      - tune down a bunch of dmesg ERRORs which can be hit under normal
        conditions
      - detect invalid pitches for tiled scanout buffers (Chris)
      - a pile of vlv fixes from Ville: rps improvements, fixes for the dpll
        LPF, fixup the sprite mmio offsets
      - fix context size on hsw (Ben)
      - locking fixes for the hotplug code, specifically the storm handling
      - fix get_config on CPT (Xiong Zhang)
      - Fix the domain tracking when an unlocked seqno wait was interrupt
        (Chris), this seems to explain tons of little corruption bugs in the
        ddx. Chris also added a nice igt to exercise this.
      - work around stack-corrupting vnsprintf in our error state dumper
      
      * tag 'drm-intel-fixes-2013-07-03' of git://people.freedesktop.org/~danvet/drm-intel: (39 commits)
        drm/i915: Don't try to tear down the stolen drm_mm if it's not there
        drm/i915: Break up the large vsnprintf() in print_error_buffers()
        drm/i915: Refactor the wait_rendering completion into a common routine
        drm/i915: Only clear write-domains after a successful wait-seqno
        drm/i915: correct intel_dp_get_config() function for DevCPT
        drm/i915: fix hpd interrupt register locking
        drm/i915: fold the no-irq check into intel_hpd_irq_handler
        drm/i915: fold the queue_work into intel_hpd_irq_handler
        drm/i915: fold the hpd_irq_setup call into intel_hpd_irq_handler
        drm/i915: s/hotplug_irq_storm_detect/intel_hpd_irq_handler/
        drm/i915: close tiny race in the ilk pcu even interrupt setup
        drm/i915: fix locking around ironlake_enable|disable_display_irq
        drm/i915: Fix context sizes on HSW
        drm/i915: Fix VLV sprite register offsets
        Revert "drm/i915: Don't use the HDMI port color range bit on Valleyview"
        drm/i915: s/LFP/LPF in DPIO PLL register names
        drm/i915: Fix VLV PLL LPF coefficients for DAC
        drm/i915: Jump to at least RPe on VLV when increasing the GPU frequency
        drm/i915: Don't increase the GPU frequency from the delayed VLV rps timer
        drm/i915: GEN6_RP_INTERRUPT_LIMITS doesn't seem to exist on VLV
        ...
      d0aaa283
    • Dave Airlie's avatar
      Merge branch 'drm-next-3.11' of git://people.freedesktop.org/~agd5f/linux into drm-next · 1586ba72
      Dave Airlie authored
      A few more DPM fixes.
      
      * 'drm-next-3.11' of git://people.freedesktop.org/~agd5f/linux:
        drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd flag
        drm/radeon/tn: disable PG when changing UVD clocks
        drm/radeon/sumo: disable PG when changing UVD clocks
        drm/radeon/aruba: disable additional rlc features
        drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()
        drm/radeon/dpm: fix compilation with certain versions of gcc
        drm/radeon/dpm: clarify debugfs warning
      1586ba72
    • Daniel Vetter's avatar
      drm/mm: WARN for unclean mm takedown · e5ad449b
      Daniel Vetter authored
      The usual drm driver has tons of different drm_mm memory managers so the drm
      error message in dmesg is pretty useless. WARN instead so that we have the full
      backtrace.
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      e5ad449b
    • Daniel Vetter's avatar
      drm/mm: fix debug table BUG · 2c54b133
      Daniel Vetter authored
      In
      
      commit 3a359f0b
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sat Apr 20 12:08:11 2013 +0200
      
          drm/mm: fix dump table BUG
      
      I've failed to fix both instances of the regression introduced in
      
      commit 9e8944ab
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Thu Nov 15 11:32:17 2012 +0000
      
         drm: Introduce an iterator over holes in the drm_mm range manager
      
      Patch this up in the same way by extracting the hole debug logic
      into it's own function, since that'll also clarify the logic a bit.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      2c54b133
  3. 03 Jul, 2013 6 commits
  4. 02 Jul, 2013 5 commits
  5. 01 Jul, 2013 17 commits