“ac7a2fb6058ee938b339c25214801fdf54706d7e”上不存在“git@gitcode.net:paddlepaddle/FluidDoc.git”
  1. 14 3月, 2017 1 次提交
  2. 04 1月, 2017 1 次提交
  3. 26 12月, 2016 1 次提交
    • T
      ktime: Cleanup ktime_set() usage · 8b0e1953
      Thomas Gleixner 提交于
      ktime_set(S,N) was required for the timespec storage type and is still
      useful for situations where a Seconds and Nanoseconds part of a time value
      needs to be converted. For anything where the Seconds argument is 0, this
      is pointless and can be replaced with a simple assignment.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      8b0e1953
  4. 15 12月, 2016 2 次提交
    • V
      drm: Nuke fb->pixel_format · 438b74a5
      Ville Syrjälä 提交于
      Replace uses of fb->pixel_format with fb->format->format.
      Less duplicated information is a good thing.
      
      Note that coccinelle failed to eliminate the
      "/* fourcc format */" comment from drm_framebuffer.h, so I had
      to do that part manually.
      
      @@
      struct drm_framebuffer *FB;
      expression E;
      @@
       drm_helper_mode_fill_fb_struct(...) {
      	...
      -	FB->pixel_format = E;
      	...
       }
      
      @@
      struct drm_framebuffer *FB;
      expression E;
      @@
       i9xx_get_initial_plane_config(...) {
      	...
      -	FB->pixel_format = E;
      	...
       }
      
      @@
      struct drm_framebuffer *FB;
      expression E;
      @@
       ironlake_get_initial_plane_config(...) {
      	...
      -	FB->pixel_format = E;
      	...
       }
      
      @@
      struct drm_framebuffer *FB;
      expression E;
      @@
       skylake_get_initial_plane_config(...) {
      	...
      -	FB->pixel_format = E;
      	...
       }
      
      @@
      struct drm_framebuffer *a;
      struct drm_framebuffer b;
      @@
      (
      - a->pixel_format
      + a->format->format
      |
      - b.pixel_format
      + b.format->format
      )
      
      @@
      struct drm_plane_state *a;
      struct drm_plane_state b;
      @@
      (
      - a->fb->pixel_format
      + a->fb->format->format
      |
      - b.fb->pixel_format
      + b.fb->format->format
      )
      
      @@
      struct drm_crtc *CRTC;
      @@
      (
      - CRTC->primary->fb->pixel_format
      + CRTC->primary->fb->format->format
      |
      - CRTC->primary->state->fb->pixel_format
      + CRTC->primary->state->fb->format->format
      )
      
      @@
      struct drm_mode_set *set;
      @@
      (
      - set->fb->pixel_format
      + set->fb->format->format
      |
      - set->crtc->primary->fb->pixel_format
      + set->crtc->primary->fb->format->format
      )
      
      @@
      @@
       struct drm_framebuffer {
      	 ...
      -	 uint32_t pixel_format;
      	 ...
       };
      
      v2: Fix commit message (Laurent)
          Rebase due to earlier removal of many fb->pixel_format uses,
          including the 'fb->format = drm_format_info(fb->format->format);'
          snafu
      v3: Adjusted the semantic patch a bit and regenerated due to code
          changes
      
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
      438b74a5
    • V
      drm: Replace drm_format_plane_cpp() with fb->format->cpp[] · 353c8598
      Ville Syrjälä 提交于
      Replace drm_format_plane_cpp(fb->pixel_format) with just
      fb->format->cpp[]. Avoids the expensive format info lookup.
      
      @@
      struct drm_framebuffer *a;
      struct drm_framebuffer b;
      expression E;
      @@
      (
      - drm_format_plane_cpp(a->pixel_format, E)
      + a->format->cpp[E]
      |
      - drm_format_plane_cpp(b.pixel_format, E)
      + b.format->cpp[E]
      )
      
      @@
      struct drm_plane_state *a;
      struct drm_plane_state b;
      expression E;
      @@
      (
      - drm_format_plane_cpp(a->fb->pixel_format, E)
      + a->fb->format->cpp[E]
      |
      - drm_format_plane_cpp(b.fb->pixel_format, E)
      + b.fb->format->cpp[E]
      )
      
      @@
      struct drm_framebuffer *a;
      identifier T;
      expression E;
      @@
        T = a->pixel_format
      <+...
      - drm_format_plane_cpp(T, E)
      + a->format->cpp[E]
      ...+>
      
      @@
      struct drm_framebuffer b;
      identifier T;
      expression E;
      @@
        T = b.pixel_format
      <+...
      - drm_format_plane_cpp(T, E)
      + b.format->cpp[E]
      ...+>
      
      v2: Rerun spatch due to code changes
      
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Suggested-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1481751057-18123-1-git-send-email-ville.syrjala@linux.intel.com
      353c8598
  5. 30 11月, 2016 15 次提交
  6. 18 10月, 2016 1 次提交
  7. 22 9月, 2016 1 次提交
  8. 07 9月, 2016 4 次提交
  9. 02 9月, 2016 3 次提交
  10. 09 8月, 2016 11 次提交
    • J
      drm/tilcdc: Change tilcdc_crtc_page_flip() to tilcdc_crtc_update_fb() · e0e344e6
      Jyri Sarha 提交于
      Change tilcdc_crtc_page_flip() to tilcdc_crtc_update_fb(). The
      function is not used as a page_flip() callback anymore so it is only
      confusing to call it that. The function should only be used by dummy
      primary plane commit() callback.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      e0e344e6
    • J
      drm/tilcdc: Remove unnecessary pm_runtime_get() and *_put() calls · d81b7f34
      Jyri Sarha 提交于
      Remove unnecessary pm_runtime_get() and *_put() calls from commit
      phase callbacks. Those calls are not needed since we have the whole
      commit phase between pm_runtime_get_sync() and pm_runtime_put_sync().
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      d81b7f34
    • J
      drm/tilcdc: Get rid of legacy dpms mechanism · 47bfd6c0
      Jyri Sarha 提交于
      Get rid of legacy dpms mechanism. This simplifies the code quite a
      bit. The old start() and stop() functions become tilcdc_crtc_enable()
      and *_disable(). The functions are added with all the necessary
      mechanisms from the old dpms function and they are used directly as
      the crtc helper enable() and disable() callbacks.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      47bfd6c0
    • J
      drm/tilcdc: Enable and disable interrupts in crtc start() and stop() · afaf833d
      Jyri Sarha 提交于
      Enable and disable interrupts in crtc start() and stop(). None of the
      interrupts can fire if CRTC is disabled, so it is cleaner - when
      considering suspend/resume code etc. - to enable the interrupts when
      CRTC is turned on and to disable them when CRTC is turned off.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      afaf833d
    • J
      drm/tilcdc: Remove tilcdc_verify_fb() · c72cc663
      Jyri Sarha 提交于
      Remove tilcdc_verify_fb(). The tilcdc_verify_fb() function is not
      needed because the same checks are implemented in
      tilcdc_plane_atomic_check().
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      c72cc663
    • J
      drm/tilcdc: Remove obsolete crtc helper functions · 6b4736db
      Jyri Sarha 提交于
      Remove obsolete crtc helper functions. These are not needed when
      atomic modeset is used.
      
      Note that the drm_crtc_helper_funcs mode_fixup() is still needed. The
      crtc's check() callback can not do its job here.
      
      The plane's check() callback needs to set drm_crtc_state's
      ->mode_changed to true if the pixel format for the framebuffer
      changes. Because of this drm_mode_config_funcs atomic_check() callback
      needs to call drm_atomic_helper_check_modeset() once more after it has
      called drm_atomic_helper_check_planes(). If the fixing of the
      adjusted_mode would be done in drm_crtc_helper_funcs atomic_check()
      callback, it would get over written by the extra
      drm_atomic_helper_check_modeset() call.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      6b4736db
    • J
      drm/tilcdc: Set DRIVER_ATOMIC and use atomic crtc helpers · 305198de
      Jyri Sarha 提交于
      Set DRIVER_ATOMIC and use atomic helpers and rename commit and prepare
      crtc helpers to enable and disable. This makes the final jump to mode
      setting, but there is lot of obsolete code to clean up.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      305198de
    • J
      drm/tilcdc: Add tilcdc_crtc_atomic_check() · db380c58
      Jyri Sarha 提交于
      Add tilcdc_crtc_atomic_check(). Checks the display mode validity and
      the presence of the mandatory primary plane.
      
      The drm_crtc_helper_funcs mode_fixup() callback is left untouched and
      the check function does no try to do its job on purpose, despite what
      the mode_fixup() callback's documentations suggests.
      
      The plane's check() callback needs to set drm_crtc_state's
      ->mode_changed to true if the pixel format for the framebuffer
      changes. Because of this drm_mode_config_funcs atomic_check() callback
      needs to call drm_atomic_helper_check_modeset() once more after it has
      called drm_atomic_helper_check_planes(). If the fixing of the
      adjusted_mode would be done in drm_crtc_helper_funcs atomic_check()
      callback, it would get over written by the extra
      drm_atomic_helper_check_modeset() call.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      db380c58
    • J
      drm/tilcdc: Add tilcdc_crtc_mode_set_nofb() · f6382f18
      Jyri Sarha 提交于
      Add tilcdc_crtc_mode_set_nofb(). The mode_set_nofb() semantics do not
      fit well to LCDC, because of the mandatory framebuffer. However, when
      the primary plane is required in the check phase, it and the
      framebuffer can be found from the atomic state struct.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      f6382f18
    • J
      drm/tilcdc: Initialize dummy primary plane from crtc init · 47f571c6
      Jyri Sarha 提交于
      Initialize dummy primary plane from crtc init.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      47f571c6
    • J
      drm/tilcdc: Make tilcdc_crtc_page_flip() work if crtc is not yet on · 0a1fe1b7
      Jyri Sarha 提交于
      Make tilcdc_crtc_page_flip() work if crtc is not yet on. The plane
      commit sometimes comes before crtc is turned on. The new framebuffer
      should be set to scanout also in that case, so that it is there when
      crtc is turned on at the end of the commit phase.
      Signed-off-by: NJyri Sarha <jsarha@ti.com>
      0a1fe1b7