]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdkfd: avoid unmap dma address when svm_ranges are split
authorAlex Sierra <alex.sierra@amd.com>
Thu, 27 Jul 2023 20:32:37 +0000 (15:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 20:36:44 +0000 (16:36 -0400)
commitab3400eb94597ef009c1395c7c789736d070613b
tree05c5813244f5913183b5446550cdb9116fb6302a
parent15f5b0a7abb7aafe2384a909cb5ece76c0dfc1a5
drm/amdkfd: avoid unmap dma address when svm_ranges are split

DMA address reference within svm_ranges should be unmapped only after
the memory has been released from the system. In case of range
splitting, the DMA address information should be copied to the
corresponding range after this has split. But leaving dma mapping
intact.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h