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
  • drivers
  • gpu
  • drm
  • drm_syncobj.c
Find file BlameHistoryPermalink
  • Bas Nieuwenhuizen's avatar
    drm/syncobj: Deal with signalled fences in drm_syncobj_find_fence. · b19926d4
    Bas Nieuwenhuizen authored Dec 08, 2021
    dma_fence_chain_find_seqno only ever returns the top fence in the
    chain or an unsignalled fence. Hence if we request a seqno that
    is already signalled it returns a NULL fence. Some callers are
    not prepared to handle this, like the syncobj transfer functions
    for example.
    
    This behavior is "new" with timeline syncobj and it looks like
    not all callers were updated. To fix this behavior make sure
    that a successful drm_sync_find_fence always returns a non-NULL
    fence.
    
    v2: Move the fix to drm_syncobj_find_fence from the transfer
        functions.
    
    Fixes: ea569910
    
     ("drm/syncobj: add transition iotcls between binary and timeline v2")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
    Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
    Acked-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211208023935.17018-1-bas@basnieuwenhuizen.nl
    b19926d4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7