1. 14 7月, 2015 10 次提交
  2. 13 7月, 2015 11 次提交
  3. 10 7月, 2015 7 次提交
  4. 09 7月, 2015 2 次提交
    • R
      drm/i915: dirty fb operation flushsing frontbuffer · 86c98588
      Rodrigo Vivi 提交于
      Let's do a frontbuffer flush on dirty fb.
      To be used for DIRTYFB drm ioctl.
      
      This patch solves the biggest PSR known issue, that is
      missed screen updates during boot, mainly when there is a splash
      screen involved like Plymouth.
      
      Previously PSR was being invalidated by fbdev and Plymounth
      was taking control with PSR yet invalidated and could get screen
      updates normally. However with some atomic modeset changes
      Pymouth modeset over ioctl was now causing frontbuffer flushes
      making PSR gets back to work while it cannot track the
      screen updates and exit properly.
      
      By adding this flush on dirtyfb we properly track frontbuffer
      writes and properly exit PSR.
      
      Actually all mmap_wc users should call this dirty callback
      in order to have a proper frontbuffer tracking.
      
      In the future it can be extended to return 0 if the whole
      screen has being flushed or the number of rects flushed
      as Chris suggested.
      
      v2: Remove ORIGIN_FB_DIRTY and use ORIGIN_GTT instead since dirty
          callback is just called after few screen updates and not on
          everyone as pointed by Daniel.
      
      v3: Use flush instead of invalidate since flush means
          invalidate + flush and dirty means drawn had finished and
          it can be flushed.
      
      v4: Remove PSR from subject since it is purely frontbuffer tracking
          change and that can be useful for FBC as well.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      [danvet: Fix alignment as spotted by Paulo.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      86c98588
    • R
      drm/i915: PSR: Flush means invalidate + flush · 169de131
      Rodrigo Vivi 提交于
      Since flush actually means invalidate + flush we need to force psr
      exit on PSR flush.
      
      On Core platforms there is no way to disable hw tracking and
      do the pure sw tracking so we simulate it by fully disable psr and
      reschedule a enable back.
      So a good idea is to minimize sequential disable/enable in cases we
      know that HW tracking like when flush has been originated by a flip.
      Also flip had just invalidated it already.
      
      It also uses origin to minimize the a bit the amount of
      disable/enabled, mainly when flip already had invalidated.
      
      With this patch in place it is possible to do a flush on dirty areas
      properly in a following patch.
      
      v2: Remove duplicated exit on HSW+Sprites as pointed out by Paulo.
      
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      169de131
  5. 08 7月, 2015 9 次提交
  6. 07 7月, 2015 1 次提交