1. 27 Sep, 2017 1 commit
  2. 08 Oct, 2017 2 commits
  3. 27 Sep, 2017 1 commit
  4. 20 Sep, 2017 7 commits
  5. 17 Oct, 2017 3 commits
    • Dave Airlie's avatar
      drm/plane: drop num_overlay_planes (v3) · 40d86701
      Dave Airlie authored
      In order to implement plane leasing we need to count things,
      just make the code consistent with the counting code currently
      used for counting crtcs/encoders/connectors and drop the need
      for num_overlay_planes.
      
      v2: don't forget to assign plane_ptr. (keithp)
      v3: use correct bounds check, found by igt.
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      40d86701
    • Dave Airlie's avatar
      Merge tag 'tilcdc-4.15' of https://github.com/jsarha/linux into drm-next · f8d47104
      Dave Airlie authored
      tilcdc changes for v4.15
      
      * tag 'tilcdc-4.15' of https://github.com/jsarha/linux:
        drm/tilcdc: Remove redundant OF_DETACHED flag setting
        drm/tilcdc: Precalculate total frametime in tilcdc_crtc_set_mode()
        drm/tilcdc: Use tilcdc_crtc_shutdown() in tilcdc_crtc_destroy()
        drm/tilcdc: Remove WARN_ON(!drm_modeset_is_locked(&crtc->mutex)) checks
        drm/tilcdc: Turn raster off in crtc reset, if it was on in the HW
        drm/tilcdc: switch to drm_*{get,put} helpers
        drm/tilcdc: tilcdc_tfp410: make of_device_ids const.
        drm/tilcdc: tilcdc_panel: make of_device_ids const.
      f8d47104
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2017-10-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 6c94804f
      Dave Airlie authored
      Quick 4.15 misc pull for the build fix:
      
      Cross-subsystem Changes:
      - piles an piles of misc/trivial patches all over, some more from
        outreachy applicants
      
      Core Changes:
      - build fix for the bridge/of cleanup (Maarten)
      - fix vblank count in arm_vblank_event (Ville)
      - some kerneldoc typo fixes from Thierry
      
      Driver Changes:
      - vc4: Fix T-format tiling scanout, cleanup clock divider w/a (Anholt)
      - sun4i: small cleanups and improved code comments all over (Chen-Yu
        Tsai)
      
      * tag 'drm-misc-next-2017-10-16' of git://anongit.freedesktop.org/drm/drm-misc: (21 commits)
        drm/via: use ARRAY_SIZE
        drm/gma500: use ARRAY_SIZE
        drm/sun4i: hdmi: Move PAD_CTRL1 setting to mode_set function
        drm/sun4i: hdmi: Document PAD_CTRL1 output invert bits
        drm/sun4i: backend: Add comment explaining why registers are cleared
        drm/sun4i: backend: Use drm_fb_cma_get_gem_addr() to get display memory
        drm/sun4i: backend: Create regmap after access is possible
        drm/sun4i: don't add components that are already in the queue
        drm/vc4: Fix pitch setup for T-format scanout.
        drm/vc4: Move the DSI clock divider workaround closer to the clock call.
        drm: Replace kzalloc with kcalloc
        drm/tinydrm: Remove explicit .best_encoder assignment
        drm/tinydrm: Replace dev_error with DRM_DEV_ERROR
        drm/drm_of: Move drm_of_panel_bridge_remove_function into header.
        drm/atomic-helper: Fix reference to drm_crtc_send_vblank_event()
        drm/atomic-helper: Fix typo
        drm: Add missing __user annotation to drm_syncobj_array_find()
        drm/rockchip: add PINCTRL dependency for LVDS
        drm/kirin: Checking for IS_ERR() instead of NULL
        driver:gpu: return -ENOMEM on allocation failure.
        ...
      6c94804f
  6. 16 Oct, 2017 8 commits
  7. 13 Oct, 2017 15 commits
  8. 12 Oct, 2017 3 commits
    • Arnd Bergmann's avatar
      drm: vblank: remove drm_timestamp_monotonic parameter · 25e1a798
      Arnd Bergmann authored
      There is a risk of overflowing vblank timestamps in 2038 or 2106 if
      someone sets the drm_timestamp_monotonic module parameter to zero.
      
      I found no indication of anyone ever setting the parameter, or
      complaining about the default being wrong, after it was introduced
      as a way to handle backwards-compatibility with linux prior to
      c61eef72 ("drm: add support for monotonic vblank timestamps"),
      so it's probably safer to just remove the parameter completely
      and only allowing the default behavior.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDaniel Stone <daniels@collabora.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      25e1a798
    • Arnd Bergmann's avatar
      drm: vblank: use ktime_t instead of timeval · 67680d3c
      Arnd Bergmann authored
      The drm vblank handling uses 'timeval' to store timestamps in either
      monotonic or wall-clock time base. In either case, it reads the current
      time as a ktime_t in get_drm_timestamp() and converts it from there.
      
      This is a bit suspicious, as users of 'timeval' often suffer from
      the time_t overflow in y2038. I have gone through this code and
      found that it is unlikely to cause problems here:
      
      - The user space ABI does not use time_t or timeval, but uses
        'u32' and 'long' as the types. This means at least that rebuilding
        user programs against a new libc with 64-bit time_t does not
        change the ABI.
      
      - As of commit c61eef72 ("drm: add support for monotonic vblank
        timestamps") in linux-3.8, the monotonic timestamp is the default
        and can only get reverted to wall-clock through a module-parameter.
      
      - With the default monotonic timestamps, there is no problem at all.
      
      - The drm_wait_vblank_ioctl() interface is alway safe on 64-bit
        architectures, on 32-bit it might overflow the 'long' timestamps
        in 2038 with wall-clock timestamps.
      
      - The event handling uses 'u32' seconds, which overflow in 2106
        on both 32-bit and 64-bit machines, when wall-clock timestamps
        are used.
      
      - The effect of overflowing either of the two is only temporary
        (during the overflow, and is likely to keep working again
        afterwards. It is likely the same problem as observing a
        'settimeofday()' call, which was the reason for moving to the
        monotonic timestamps in the first place.
      
      Overall, this seems good enough, so my patch removes the use of
      'timeval' from the vblank handling altogether and uses ktime_t
      consistently, except for the part where we copy the data to user
      space structures in the existing format.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
      Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      67680d3c
    • Dan Carpenter's avatar
      drm/kirin: Checking for IS_ERR() instead of NULL · 7af35b0a
      Dan Carpenter authored
      The of_graph_get_remote_node() function doesn't return error pointers,
      it returns NULL on error so I've updated the check.
      
      Fixes: 86418f90 ("drm: convert drivers to use of_graph_get_remote_node")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171005125751.jvtjms62vbtxuvak@mwanda
      7af35b0a