1. 19 2月, 2016 1 次提交
    • M
      drm/atomic: Allow for holes in connector state, v2. · 5fff80bb
      Maarten Lankhorst 提交于
      Because we record connector_mask using 1 << drm_connector_index now
      the connector_mask should stay the same even when other connectors
      are removed. This was not the case with MST, in that case when removing
      a connector all other connectors may change their index.
      
      This is fixed by waiting until the first get_connector_state to allocate
      connector_state, and force reallocation when state is too small.
      
      As a side effect connector arrays no longer have to be preallocated,
      and can be allocated on first use which means a less allocations in
      the page flip only path.
      
      Changes since v1:
      - Whitespace. (Ville)
      - Call ida_remove when destroying the connector. (Ville)
      - u32 alloc -> int. (Ville)
      
      Fixes: 14de6c44 ("drm/atomic: Remove drm_atomic_connectors_for_crtc.")
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NLyude <cpaul@redhat.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      5fff80bb
  2. 13 1月, 2016 1 次提交
  3. 11 12月, 2015 6 次提交
  4. 08 12月, 2015 1 次提交
  5. 24 11月, 2015 1 次提交
  6. 31 10月, 2015 2 次提交
  7. 21 10月, 2015 1 次提交
  8. 19 10月, 2015 5 次提交
  9. 05 10月, 2015 1 次提交
  10. 25 9月, 2015 2 次提交
  11. 09 9月, 2015 1 次提交
  12. 08 9月, 2015 2 次提交
  13. 12 8月, 2015 1 次提交
  14. 06 8月, 2015 1 次提交
  15. 27 7月, 2015 1 次提交
  16. 22 7月, 2015 6 次提交
  17. 07 7月, 2015 2 次提交
    • Z
      drm: add a check for x/y in drm_mode_setcrtc · 01447e9f
      Zhao Junwang 提交于
      legacy setcrtc ioctl does take a 32 bit value which might indeed
      overflow
      
      the checks of crtc_req->x > INT_MAX and crtc_req->y > INT_MAX aren't
      needed any more with this
      
      v2: -polish the annotation according to Daniel's comment
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NZhao Junwang <zhjwpku@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      01447e9f
    • D
      drm: Update plane->fb also for page_flip · 3cb43cc0
      Daniel Vetter 提交于
      The legacy page_flip driver entry point is the only one left which
      requires drivers to update plane->fb themselves. All the other entry
      hooks will patch things up for the driver as needed since no one seems
      to reliable get this right, see e.g. drm_mode_set_config_internal or
      the plane->fb/old_fb handling in drm_mode_atomic_ioctl.
      
      Therefore unify things, which allows us to ditch a TODO from
      drm_atomic_helper_page_flip.
      
      This should also help the atomic transition in i915 since we keep a
      bit of legacy cruft only around because of this special behaviour in
      ->page_flip.
      
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      3cb43cc0
  18. 06 7月, 2015 1 次提交
  19. 04 7月, 2015 1 次提交
  20. 02 7月, 2015 1 次提交
  21. 12 6月, 2015 1 次提交
  22. 26 5月, 2015 1 次提交