Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • linux
  • sync_file.h
Find file BlameHistoryPermalink
  • Chris Wilson's avatar
    dma-buf/sync_file: Allow multiple sync_files to wrap a single dma-fence · db1fc97c
    Chris Wilson authored Jul 28, 2017
    Up until recently sync_file were create to export a single dma-fence to
    userspace, and so we could canabalise a bit insie dma-fence to mark
    whether or not we had enable polling for the sync_file itself. However,
    with the advent of syncobj, we do allow userspace to create multiple
    sync_files for a single dma-fence. (Similarly, that the sw-sync
    validation framework also started returning multiple sync-files wrapping
    a single dma-fence for a syncpt also triggering the problem.)
    
    This patch reverts my suggestion in commit e2416553
    
    
    ("dma-buf/sync_file: only enable fence signalling on poll()") to use a
    single bit in the shared dma-fence and restores the sync_file->flags for
    tracking the bits individually.
    
    Reported-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
    Fixes: f1e8c671 ("dma-buf/sw-sync: Use an rbtree to sort fences in the timeline")
    Fixes: e9083420
    
     ("drm: introduce sync objects (v4)")
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Sumit Semwal <sumit.semwal@linaro.org>
    Cc: Sean Paul <seanpaul@chromium.org>
    Cc: Gustavo Padovan <gustavo@padovan.org>
    Cc: dri-devel@lists.freedesktop.org
    Cc: <drm-intel-fixes@lists.freedesktop.org> # v4.13-rc1+
    Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
    Link: http://patchwork.freedesktop.org/patch/msgid/20170728212951.7818-1-chris@chris-wilson.co.uk
    db1fc97c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7