1. 19 May, 2014 6 commits
    • Daniel Vetter's avatar
      drm/i915: Move fb pinning into __intel_set_mode · 4c10794f
      Daniel Vetter authored
      Our two ->crtc_mode_set callbacks really don't care whether the fb is
      pinned and set up already or not - all the state computation and
      handling which originally looked at the framebuffer is already using
      the indirection through the pipe configuration.
      
      Eventually we want to move this up a bit more, but as long as the crtc
      mode_set callback still exists (and as long as we don't need to pin an
      entire pile of planes due to atomic modesets) there's not much point
      in it. So I'll let this be for now.
      
      v2: Don't forget about haswell ...
      Reviewed-by: default avatarAkash Goel <akash.goel@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      4c10794f
    • Daniel Vetter's avatar
      drm/i915: Inline set_base into crtc_mode_set · c8f7a0db
      Daniel Vetter authored
      A lot of the code in set_base is uncessary when the crtc is off, so we
      can get rid of it all. Also, we don't need to call the fbc/psr update
      functions since the crtc enable/disable hooks do that already.
      
      The only things we really need are:
      - Pin the new framebuffer and potentially unpin the old framebuffer
        (if the crtc has been on and we only change the configuration).
      - Update the plane registers.
      
      The first step will move out of platform code with the very next
      patch.
      
      v2: Don't forget about haswell ...
      Reviewed-by: default avatarAkash Goel <akash.goel@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      c8f7a0db
    • Daniel Vetter's avatar
      drm/i915: Sprinkle intel_edp_psr_update over crtc_enable/disable · 71b1c373
      Daniel Vetter authored
      My plan here is to split up set_base into a prepare step, which does
      the pinning, and a commit stage, which updates the hw state. Eventually
      we should be able to move the prepare step at the beginning of any
      atomic update. For now I only want to move the commit step into the
      crtc_enable callbacks.
      
      As a prep step sprinkle intel_edp_psr_update all over the place so
      that we don't have to concern ourselves with that in the commit step.
      
      v2: Rebase on top of Ville's enable/disable functions for all planes.
      
      v3: Rebase more.
      
      Reviewed-by: Akash Goel <akash.goel@intel.com> (v2)
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      71b1c373
    • Daniel Vetter's avatar
      drm/i915: More cargo-culted locking for intel_update_fbc · efa9624e
      Daniel Vetter authored
      Just for consistency, this patch won't fix anything really.
      
      v2: Rebase over all the recent plane enabling shuffling.
      
      Reviewed-by: Akash Goel <akash.goel@intel.com> (v1)
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      efa9624e
    • Daniel Vetter's avatar
      drm/i915: Make ->update_primary_plane infallible · 29b9bde6
      Daniel Vetter authored
      Way back we've used this to reject framebuffers with unsupported
      pixel formats. But since the modesetting reorg with the compute
      config stage we reject those much earlier and just BUG() in this
      callback. So switch to a void return type.
      Reviewed-by: default avatarAkash Goel <akash.goel@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      29b9bde6
    • Chris Wilson's avatar
      drm/i915: Retire requests before creating a new one · 227f782e
      Chris Wilson authored
      More fallout from
      
      commit c8725f3d
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Mon Mar 17 12:21:55 2014 +0000
      
          drm/i915: Do not call retire_requests from wait_for_rendering
      
      is that we can completely fill all of memory using small objects, such
      that we exhaust the filp space, and spend all of our time evicting
      objects from the aperture. As such, we never fill the ring, and never
      trigger the last resort flushing in
      
      commit 1cf0ba14
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Mon May 5 09:07:33 2014 +0100
      
          drm/i915: Flush request queue when waiting for ring space
      
      and so all the requests are left active and the objects keep that last
      active reference. Eventually the system comes to a halt as it runs out
      of memory.
      
      The impact is mainly limited to test cases as regular userspace will
      trigger retirement by manually checking whether an object is active.
      
      Testcase: igt/gem_lut_handle
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78724Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Tested-by: default avatarGuo Jinxian <jinxianx.guo@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      227f782e
  2. 16 May, 2014 20 commits
  3. 15 May, 2014 8 commits
  4. 14 May, 2014 6 commits