]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdkfd: Use partial migrations in GPU page faults
authorXiaogang Chen <xiaogang.chen@amd.com>
Wed, 4 Oct 2023 21:20:58 +0000 (16:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Oct 2023 21:58:59 +0000 (17:58 -0400)
commitdc427a473e5d119232ddb27530920d9796cdea70
tree9c3b35c793cc047ee2c778498494d308d41ea54a
parentde5e73dc6baf4a2969493a2f16aed3fe222eb363
drm/amdkfd: Use partial migrations in GPU page faults

This patch implements partial migration in gpu page fault according to migration
granularity(default 2MB) and not split svm range in cpu page fault handling.
A svm range may include pages from both system ram and vram of one gpu now.
These chagnes are expected to improve migration performance and reduce mmu
callback and TLB flush workloads.

Signed-off-by: Xiaogang Chen <xiaogang.chen@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_migrate.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h