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
You need to sign in or sign up before continuing.
  • linux
  • include
  • drm
  • drm_suballoc.h
Find file BlameHistoryPermalink
  • Maarten Lankhorst's avatar
    drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper · 849ee8a2
    Maarten Lankhorst authored Feb 24, 2023
    
    
    Suballocating a buffer object is something that is not driver-specific
    and useful for many drivers.
    
    Use a slightly modified version of amdgpu_sa.c
    
    v2:
    - Style cleanups.
    - Added / Modified documentation.
    - Use u64 for the sizes and offset. The code dates back to 2012 and
      using unsigned int will probably soon come back to bite us.
      We can consider size_t as well for better 32-bit efficiency.
    - Add and document gfp, intr and align arguments to drm_suballoc_new().
    - Use drm_printer for debug output.
    
    v3:
    - Remove stale author info (Christian König)
    
    v4:
    - Avoid 64-bit integer divisions (kernel test robot <lkp@intel.com>)
    - Use size_t rather than u64 for the managed range. (Thomas)
    
    Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Co-developed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
    Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
    Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
    Acked-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Acked-by: default avatarAlex Deucher <alexdeucher@gmail.com>
    Acked-by: default avatarChristian König <christian.koenig@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230224095152.30134-2-thomas.hellstrom@linux.intel.com
    849ee8a2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7