]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: add pinned BOs to kfd_bo_list
authorLang Yu <Lang.Yu@amd.com>
Tue, 31 May 2022 01:19:43 +0000 (09:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:27:17 +0000 (16:27 -0400)
commit80320fae568780ce7a12e3d1a1d0ecf49fa3945c
treedd7f1194cdf5bc85df354b5382d2c5a2c870127c
parent93d4fdcb651df9cc59b8000a45bdad00f455543b
drm/amdkfd: add pinned BOs to kfd_bo_list

The kfd_bo_list is used to restore process BOs after
evictions. As page tables could be destroyed during
evictions, we should also update pinned BOs' page tables
during restoring to make sure they are valid.

So for pinned BOs,
1, Validate them and update their page tables.
2, Don't add eviction fence for them.

v2:
 - Don't handle pinned ones specially in BO validation.(Felix)

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c