1. 27 3月, 2015 3 次提交
    • V
      drm: Drop ioctl->cmd_drv · 7e7392a6
      Ville Syrjälä 提交于
      ioctl->cmd_drv is pointless and we can just as well stick the full ioctl
      definition into ioctl->cmd.
      
      Cc: Jakob Bornecrantz <jakob@vmware.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      7e7392a6
    • V
      drm: Fix DRM_IOCTL_DEF_DRV() · 9c7d3d3e
      Ville Syrjälä 提交于
      Currently DRM_IOCTL_DEF_DRV does '[DRM_IOCTL_NR(DRM_##ioctl)]' which
      doesn't make much sense since DRM_##ioctl is already a the raw ioctl
      number. So change it to 'DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE'
      which means the DRM_IOCTL_NR() now makes sense, and also this also means
      if there's a mistake in the DRM_IOCTL_##ioctl macros we might get a
      warning about it (eg. we would have gotten a sparse warning about the
      i915 colorkey get/set ioctl being defined to be the same thing).
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      9c7d3d3e
    • D
      drm/atomic-helpers: Properly avoid full modeset dance · 4218a32f
      Daniel Vetter 提交于
      Legacy setCrtc has a nice fastpath for just updating the frontbuffer
      when the output routing doesn't change. Which I of course tried to
      keep working, except that I fumbled the job: The helpers correctly
      compute ->mode_changed, CRTC updates get correctly skipped but
      connector functions are called unconditionally.
      
      Fix this.
      
      v2: For the disable sided connector->state->crtc might be NULL.
      Instead look at the old_connector_state->crtc, but still use the new
      crtc state for that old crtc. Reported by Thierry.
      Reported-and-Tested-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (v1)
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (v1)
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      4218a32f
  2. 23 3月, 2015 10 次提交
  3. 20 3月, 2015 27 次提交