1. 06 7月, 2017 1 次提交
  2. 05 7月, 2017 9 次提交
  3. 28 5月, 2017 16 次提交
  4. 05 4月, 2017 1 次提交
    • D
      drm: document drm_ioctl.[hc] · 2640981f
      Daniel Vetter 提交于
      Also unify/merge with the existing stuff.
      
      I was a bit torn where to put this, but in the end I decided to put
      all the ioctl/sysfs/debugfs stuff into drm-uapi.rst. That means we
      have a bit a split with the other uapi related stuff used internally,
      like drm_file.[hc], but I think overall this makes more sense.
      
      If it's too confusing we can always add more cross-links to make it
      more discoverable. But the auto-sprinkling of links kernel-doc already
      does seems sufficient.
      
      Also for prettier docs and more cross-links, switch the internal
      defines over to an enum, as usual.
      
      v2: Update kerneldoc fro drm_compat_ioctl too (caught by 0day), plus a
      bit more drive-by polish.
      
      v3: Fix typo, spotted by xerpi on irc (Sergi).
      
      v4: Add missing space in comment (Neil).
      
      Cc: Sergi Granell <xerpi.g.12@gmail.com>
      Reviewed-by: NNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170404095304.17599-4-daniel.vetter@ffwll.ch
      2640981f
  5. 28 2月, 2017 1 次提交
  6. 19 9月, 2016 2 次提交
    • D
      drm: drop obsolete drm_core.h · 82d5e73f
      David Herrmann 提交于
      The drm_core.h header contains a set of constants meant to be used
      throughout DRM. However, as it turns out, they're each used just once and
      don't bring any benefit. They're also grossly mis-named and lack
      name-spacing. This patch inlines them, or moves them into drm_internal.h
      as appropriate:
      
       - CORE_AUTHOR and CORE_DESC are inlined into corresponding MODULE_*()
         macros. It's just confusing having to follow 2 pointers when trying to
         find the definition of these fields. Grep'ping for MODULE_AUTHOR()
         should reveal the full information, if there's no strong reason not to.
      
       - CORE_NAME, CORE_DATE, CORE_MAJOR, CORE_MINOR, and CORE_PATCHLEVEL are
         inlined into the sysfs 'version' attribute. They're stripped
         everywhere else (which is just some printk() statements). CORE_NAME
         just doesn't make *any* sense, as we hard-code it in many places,
         anyway. The other constants are outdated and just serve
         binary-compatibility purposes. Hence, inline them in 'version' sysfs
         attribute (we might even try dropping it..).
      
       - DRM_IF_MAJOR and DRM_IF_MINOR are moved into drm_internal.h as they're
         only used by the global ioctl handlers. Furthermore, versioning
         interfaces breaks backports and as such is deprecated, anyway. We just
         keep them for historic reasons. I doubt anyone will ever modify them
         again.
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20160901124837.680-6-dh.herrmann@gmail.com
      82d5e73f
    • K
      drm: Only use compat ioctl for addfb2 on X86/IA64 · 47a66e45
      Kristian H. Kristensen 提交于
      Similar to struct drm_update_draw, struct drm_mode_fb_cmd2 has an
      unaligned 64 bit field (modifier). This get packed differently between
      32 bit and 64 bit modes on architectures that can handle unaligned 64
      bit access (X86 and IA64).  Other architectures pack the structs the
      same and don't need the compat wrapper. Use the same condition for
      drm_mode_fb_cmd2 as we use for drm_update_draw.
      
      Note that only the modifier will be packed differently between compat
      and non-compat versions.
      Reviewed-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NKristian H. Kristensen <hoegsberg@chromium.org>
      [seanpaul added not at bottom of commit msg re: modifier]
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Link: http://patchwork.freedesktop.org/patch/msgid/1473801645-116011-1-git-send-email-hoegsberg@chromium.org
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      47a66e45
  7. 15 9月, 2016 1 次提交
  8. 22 8月, 2016 1 次提交
  9. 30 9月, 2015 1 次提交
  10. 15 7月, 2015 1 次提交
    • T
      drm: Provide compat ioctl for addfb2.1 · c631d5f9
      Tvrtko Ursulin 提交于
      Frame buffer modifiers extensions provided in;
      
        commit e3eb3250
        Author: Rob Clark <robdclark@gmail.com>
        Date:   Thu Feb 5 14:41:52 2015 +0000
      
            drm: add support for tiled/compressed/etc modifier in addfb2
      
      Missed the structure packing/alignment problem where 64-bit
      members were added after the odd number of 32-bit ones. This
      makes the compiler produce structures of different sizes under
      32- and 64-bit x86 targets and makes the ioctl need explicit
      compat handling.
      
      v2: Removed the typedef. (Daniel Vetter)
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: dri-devel@lists.freedesktop.org
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Daniel Stone <daniels@collabora.com>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: stable@vger.kernel.org
      [danvet: Squash in compile fix from Mika.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      c631d5f9
  11. 03 7月, 2015 1 次提交
  12. 14 3月, 2015 1 次提交
    • V
      drm: Silence sparse warnings · 43fc884e
      Ville Syrjälä 提交于
      ../drivers/gpu/drm/drm_vm.c:405:6: warning: symbol 'drm_vm_open_locked' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_vm.c:431:6: warning: symbol 'drm_vm_close_locked' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_vm.c:681:5: warning: symbol 'drm_vma_info' was not declared. Should it be static?
      
      ../drivers/gpu/drm/drm_pci.c:146:5: warning: symbol 'drm_pci_set_unique' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_pci.c:216:5: warning: symbol 'drm_irq_by_busid' was not declared. Should it be static?
      
      ../drivers/gpu/drm/drm_info.c:47:5: warning: symbol 'drm_name_info' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_info.c:72:5: warning: symbol 'drm_vm_info' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_info.c:116:5: warning: symbol 'drm_bufs_info' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_info.c:159:5: warning: symbol 'drm_clients_info' was not declared. Should it be static?
      ../drivers/gpu/drm/drm_info.c:209:5: warning: symbol 'drm_gem_name_info' was not declared. Should it be static?
      
      ../drivers/gpu/drm/drm_ioc32.c:1019:20: warning: symbol 'drm_compat_ioctls' was not declared. Should it be static?
      
      ../drivers/gpu/drm/drm_bridge.c:52:12: warning: function 'drm_bridge_attach' with external linkage has definition
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      43fc884e
  13. 03 10月, 2012 1 次提交
  14. 03 2月, 2012 1 次提交
  15. 01 11月, 2011 1 次提交
  16. 16 6月, 2011 1 次提交