]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Remove explicit wait after VM validate
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Fri, 26 Jan 2018 20:36:06 +0000 (15:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Nov 2018 19:00:37 +0000 (14:00 -0500)
commitd2e8dc92c3f31ca3889ae3958c461f27ef5286f8
tree6a1f4aa9bc50bf7eba0392517806dcb74bc6825c
parentce13309add6c488314914ff708ea41d43e9614c4
drm/amdgpu: Remove explicit wait after VM validate

PD or PT might have to be moved during validation and this move has to be
completed before updating it. If page table updates are done using SDMA
then this serializing is done by SDMA command submission.

And if PD/PT updates are done by CPU, then explicit waiting for PD/PT
updates are done in amdgpu VM amdgpu_vm_wait_pd function.

Sync to PD BO moving fence to handle corner case where none of the PTs
are updated but PD is evicted.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c