1. 30 9月, 2015 3 次提交
    • D
      drm: Define a drm_invalid_op ioctl implementation · 4b63539b
      Daniel Vetter 提交于
      And use it in radeon to replace all the ioctls no longer valid in kms
      mode. I plan to also use this later on when nuking the ums support for
      i915.
      
      Note that setting the function pointer in the ioctl table to NULL
      would amount to the same, but that results in some debug output from
      the drm_ioctl() function. I've figured it's cleaner to have a
      special-purpose function.
      
      Cc: Alex Deucher <alexdeucher@gmail.com>
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      4b63539b
    • D
      drm: Remove __OS_HAS_AGP · a7fb8a23
      Daniel Vetter 提交于
      We already express the drm/agp depencies correctly in Kconfig, so we
      can rip this remnant from the shared drm core days.
      
      Aside: Pretty much all the #ifdefs in radeon/nouveau could be killed
      if ttm would provide dummy functions. I'm not going to volunteer for
      that though.
      
      v2: Use IS_ENABLED(CONFIG_AGP) as suggested by Ville
      
      v3: Polish from Ville's review.
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: Christian König <christian.koenig@amd.com> (v2)
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a7fb8a23
    • D
      drm/doc: Update docs about device instance setup · 6e3f797c
      Daniel Vetter 提交于
      ->load is deprecated, bus functions are deprecated and everyone
      should use drm_dev_alloc&register.
      
      So update the .tmpl (and pull a bunch of the overview docs into the
      sourcecode to increase chances that it'll stay in sync in the future)
      and add notes to functions which are deprecated. I didn't bother to
      clean up and document the unload sequence similarly since that one is
      still a bit a mess: drm_dev_unregister does way too much,
      drm_unplug_dev does what _unregister should be doing but then has the
      complication of promising something it doesn't actually do (it doesn't
      unplug existing open fds for instance, only prevents new ones).
      
      Motivated since I don't want to hunt every new driver for usage of
      drm_platform_init any more ;-)
      
      v2: Reword the deprecation note for ->load a bit, using Laurent's
      suggestion as an example (but making the wording a bit stronger even).
      Fix spelling in commit message.
      
      v3: More spelling fixes from Laurent.
      
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Acked-by: David Herrmann <dh.herrmann@gmail.com> (v2)
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      6e3f797c
  2. 25 9月, 2015 18 次提交
  3. 24 9月, 2015 19 次提交