Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Metrics
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Alex Deucher
  • linux
  • Repository

Switch branch/tag
  • linux
  • drivers
  • gpu
  • drm
  • amd
  • amdkfd
  • kfd_migrate.h
Find file BlameHistoryPermalink
  • Philip Yang's avatar
    drm/amdkfd: copy memory through gart table · 50ea50cf
    Philip Yang authored Feb 07, 2020
    
    
    Use sdma linear copy to migrate data between ram and vram. The sdma
    linear copy command uses kernel buffer function queue to access system
    memory through gart table.
    
    Use reserved gart table window 0 to map system page address, and vram
    page address is direct mapping. Use the same kernel buffer function to
    fill in gart table mapping, so this is serialized with memory copy by
    sdma job submit. We only need wait for the last memory copy sdma fence
    for larger buffer migration.
    Signed-off-by: Philip Yang's avatarPhilip Yang <Philip.Yang@amd.com>
    Reviewed-by: Felix Kuehling's avatarFelix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: Felix Kuehling's avatarFelix Kuehling <Felix.Kuehling@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    50ea50cf

Replace kfd_migrate.h

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.