]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: simplify drain retry fault
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 19 Nov 2021 22:02:50 +0000 (17:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:12:08 +0000 (15:12 -0500)
commitde3bf3009b4b210a186396d4eb9dfc74b351911c
treefbba3c50f877a512db443a1f8997db43cb6621fe
parente6b18d479245b656907bd5f260b1afa97586e93e
drm/amdkfd: simplify drain retry fault

unmap range always increase atomic svms->drain_pagefaults to simplify
both parent range and child range unmap, page fault handle ignores the
retry fault if svms->drain_pagefaults is set to speed up interrupt
handling. svm_range_drain_retry_fault restart draining if another
range unmap from cpu.

Signed-off-by: Philip Yang <Philip.Yang@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_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c