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
  • drivers
  • gpu
  • drm
  • amd
  • amdgpu
  • amdgpu_object.c
Find file BlameHistoryPermalink
  • Arunpravin Paneer Selvam's avatar
    drm/amdgpu: Enable clear page functionality · a68c7eaa
    Arunpravin Paneer Selvam authored Apr 19, 2024
    
    
    Add clear page support in vram memory region.
    
    v1(Christian):
      - Dont handle clear page as TTM flag since when moving the BO back
        in from GTT again we don't need that.
      - Make a specialized version of amdgpu_fill_buffer() which only
        clears the VRAM areas which are not already cleared
      - Drop the TTM_PL_FLAG_WIPE_ON_RELEASE check in
        amdgpu_object.c
    
    v2:
      - Modify the function name amdgpu_ttm_* (Alex)
      - Drop the delayed parameter (Christian)
      - handle amdgpu_res_cleared(&cursor) just above the size
        calculation (Christian)
      - Use AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE for clearing the buffers
        in the free path to properly wait for fences etc.. (Christian)
    
    v3(Christian):
      - Remove buffer clear code in VRAM manager instead change the
        AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE handling to set
        the DRM_BUDDY_CLEARED flag.
      - Remove ! from amdgpu_res_cleared(&cursor) check.
    
    v4(Christian):
      - vres flag setting move to vram manager file
      - use dma_fence_get_stub in amdgpu_ttm_clear_buffer function
      - make fence a mandatory parameter and drop the if and the get/put dance
    
    Signed-off-by: default avatarArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
    Suggested-by: default avatarChristian König <christian.koenig@amd.com>
    Acked-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240419063538.11957-2-Arunpravin.PaneerSelvam@amd.com
    
    
    Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
    a68c7eaa
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7