1. 13 4月, 2012 2 次提交
    • D
      drm/i915: re-init modeset hw state after gpu reset · f817586c
      Daniel Vetter 提交于
      After a gpu reset we need to re-init some of the hw state we only
      initialize when modeset is enabled, like rc6, hw contexts or render/GT
      core clock gating and workaround register settings.
      
      Note that this patch has a small change in the resume code:
      - rc6 on gen6+ is only restored for the modeset case (for more
        consistency with other callsites). This is no problem because recent
        kernels refuse to load drm/i915 without kms on gen6+
      - rc6/emon on ilk is only restored for the modeset case. This is no
        problem because rc6 is disabled by default on ilk, and ums on ilk
        has never really been a supported option outside of horrible rhel
        backports.
      
      v2: Chris Wilson noticed that we not only fail to restore the clock
      gating settings after gpu reset.
      
      v3: Move the call to modeset_init_hw in _reset out of the
      struct_mutext protected area - other callers don't hold it, too.
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f817586c
    • B
      drm/i915: use semaphores for the display plane · 2911a35b
      Ben Widawsky 提交于
      In theory this will have performance and power improvements. Performance
      because we don't need to stall when the scanout BO is busy, and power
      because we don't have to stall when the BO is busy (and the ring can
      even go to sleep if the HW supports it).
      
      v2:
      squash 2 patches into 1 (me)
      un-inline the enable_semaphores function (Daniel)
      remove comment about SNB hangs from i915_gem_object_sync (Chris)
      rename intel_enable_semaphores to i915_semaphore_is_enabled (me)
      removed page flip comment; "no why" (Chris)
      
      To address other comments from Daniel (irc):
      update the comment to say 'vt-d is crap, don't enable semaphores'
        - I think you misinterpreted Chris' comment, it already exists.
      checking out whether we can pageflip on the render ring on ivb (didn't
      work on early silicon)
        - We don't want to enable workarounds for early silicon unless we have
          to.
        - I can't find any references in the docs about this.
      optionally use it if the fb is already busy on the render ring
        - This should be how the code already worked, unless I am
          misunderstanding your meaning.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2911a35b
  2. 10 4月, 2012 3 次提交
  3. 03 4月, 2012 1 次提交
  4. 02 4月, 2012 2 次提交
  5. 01 4月, 2012 1 次提交
  6. 29 3月, 2012 3 次提交
  7. 24 3月, 2012 1 次提交
  8. 23 3月, 2012 1 次提交
  9. 02 3月, 2012 1 次提交
  10. 12 2月, 2012 2 次提交
  11. 10 2月, 2012 1 次提交
  12. 09 2月, 2012 1 次提交
    • D
      drm/i915: swizzling support for snb/ivb · f691e2f4
      Daniel Vetter 提交于
      We have to do this manually. Somebody had a Great Idea.
      
      I've measured speed-ups just a few percent above the noise level
      (below 5% for the best case), but no slowdows. Chris Wilson measured
      quite a bit more (10-20% above the usual snb variance) on a more
      recent and better tuned version of sna, but also recorded a few
      slow-downs on benchmarks know for uglier amounts of snb-induced
      variance.
      
      v2: Incorporate Ben Widawsky's preliminary review comments and
      elaborate a bit about the performance impact in the changelog.
      
      v3: Add a comment as to why we don't need to check the 3rd memory
      channel.
      
      v4: Fixup whitespace.
      Acked-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f691e2f4
  13. 20 1月, 2012 4 次提交
  14. 18 1月, 2012 1 次提交
  15. 17 1月, 2012 2 次提交
  16. 14 1月, 2012 1 次提交
  17. 04 1月, 2012 1 次提交
    • K
      drm/i915: Clean up multi-threaded forcewake patch · c7dffff7
      Keith Packard 提交于
      We learned that the ECOBUS register was inside the GT power well, and
      so *did* need force wake to be read, so it gets removed from the list
      of 'doesn't need force wake' registers.
      
      That means the code reading ECOBUS after forcing the mt_force_wake
      function to be called needs to use I915_READ_NOTRACE; it doesn't need
      to do more force wake fun as it's already done it manually.
      
      This also adds a comment explaining why the MT forcewake testing code
      only needs to call mt_forcewake_get/put and not disable RC6 manually
      -- the ECOBUS read will return 0 if the device is in RC6 and isn't
      using MT forcewake, causing the test to work correctly.
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      c7dffff7
  18. 17 12月, 2011 2 次提交
  19. 24 11月, 2011 1 次提交
  20. 11 11月, 2011 2 次提交
  21. 01 11月, 2011 1 次提交
  22. 29 10月, 2011 1 次提交
  23. 21 10月, 2011 1 次提交
    • A
      i915: Move i915_read/write out of line · f7000883
      Andi Kleen 提交于
      With the tracing code in there they are far too big to inline.
      
      .text savings compared to a non force inline kernel:
      
      i915_restore_display                        4393   12036   +7643
      i915_save_display                           4295   11459   +7164
      i915_handle_error                           2979    6666   +3687
      i915_driver_irq_handler                     2923    5086   +2163
      i915_ringbuffer_info                         458    1661   +1203
      i915_save_vga                                  -    1200   +1200
      i915_driver_irq_uninstall                    453    1624   +1171
      i915_driver_irq_postinstall                  913    2078   +1165
      ironlake_enable_drps                         719    1872   +1153
      i915_restore_vga                               -    1142   +1142
      intel_display_capture_error_state            784    2030   +1246
      intel_init_emon                              719    2016   +1297
      
      and more ...
      
      [AK: these are older numbers, with the new SNB forcewake checks
      it will be even worse]
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      f7000883
  24. 29 9月, 2011 1 次提交
  25. 28 9月, 2011 1 次提交
  26. 22 9月, 2011 1 次提交
  27. 20 9月, 2011 1 次提交