1. 12 10月, 2016 1 次提交
  2. 20 5月, 2016 1 次提交
  3. 19 5月, 2016 1 次提交
    • A
      drm: remove unused dev variables · c6740c9c
      Arnd Bergmann 提交于
      After drm_gem_object_lookup() was changed along with all its callers,
      we have several drivers that have unused variables:
      
      drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set':
      drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/nouveau/nouveau_gem.c: In function 'validate_init':
      drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set':
      drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable]
      drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs':
      drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable]
      
      This fixes all the instances I found with ARM randconfig builds so far.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: a8ad0bd8 ("drm: Remove unused drm_device from drm_gem_object_lookup()")
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1463587653-3035181-6-git-send-email-arnd@arndb.de
      c6740c9c
  4. 17 5月, 2016 1 次提交
  5. 05 5月, 2016 2 次提交
  6. 03 11月, 2015 4 次提交
  7. 22 10月, 2015 1 次提交
  8. 28 8月, 2015 4 次提交
  9. 01 7月, 2015 1 次提交
  10. 14 4月, 2015 1 次提交
    • A
      drm/nouveau/gem: allow user-space to specify an object should be coherent · 996f545f
      Alexandre Courbot 提交于
      User-space use mappable BOs notably for fences, and expects that a
      value update by the GPU will be immediatly visible through the
      user-space mapping.
      
      ARM has a property that may prevent this from happening though: memory
      can be mapped multiple times only if the different mappings share the
      same caching properties. However all the lowmem memory is already
      identity-mapped into the kernel with cache enabled, so when user-space
      requests an uncached mapping, we actually get an "undefined caching
      policy" one and this has strange side-effects described on Freedesktop
      bug 86690.
      
      To prevent this from happening, allow user-space to explicitly specify
      which objects should be coherent, and create such objects with the
      TTM_PL_FLAG_UNCACHED flag. This will make TTM allocate memory using the
      DMA API, which will fix the identify mapping and allow us to safely map
      the objects to user-space uncached.
      Signed-off-by: NAlexandre Courbot <acourbot@nvidia.com>
      Reviewed-by: NLucas Stach <dev@lynxeye.de>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      996f545f
  11. 22 1月, 2015 3 次提交
  12. 24 12月, 2014 1 次提交
  13. 22 12月, 2014 1 次提交
  14. 02 12月, 2014 1 次提交
  15. 21 11月, 2014 1 次提交
  16. 01 10月, 2014 1 次提交
  17. 30 9月, 2014 1 次提交
  18. 02 9月, 2014 5 次提交
  19. 01 9月, 2014 2 次提交
  20. 10 8月, 2014 4 次提交
  21. 22 7月, 2014 1 次提交
  22. 16 3月, 2014 2 次提交
    • D
      drm: init TTM dev_mapping in ttm_bo_device_init() · 44d847b7
      David Herrmann 提交于
      With dev->anon_inode we have a global address_space ready for operation
      right from the beginning. Therefore, there is no need to do a delayed
      setup with TTM. Instead, set dev_mapping during initialization in
      ttm_bo_device_init() and remove any "if (dev_mapping)" conditions.
      
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
      Cc: Alex Deucher <alexdeucher@gmail.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      44d847b7
    • D
      drm: use anon-inode instead of relying on cdevs · 6796cb16
      David Herrmann 提交于
      DRM drivers share a common address_space across all character-devices of a
      single DRM device. This allows simple buffer eviction and mapping-control.
      However, DRM core currently waits for the first ->open() on any char-dev
      to mark the underlying inode as backing inode of the device. This delayed
      initialization causes ugly conditions all over the place:
        if (dev->dev_mapping)
          do_sth();
      
      To avoid delayed initialization and to stop reusing the inode of the
      char-dev, we allocate an anonymous inode for each DRM device and reset
      filp->f_mapping to it on ->open().
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      6796cb16