]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: handle fault counters on invalid address
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 7 Jul 2021 16:42:34 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Jul 2021 21:47:28 +0000 (17:47 -0400)
commitdeabb0c41ef3ff91415d83f57919ffce3e6cd1c4
tree3422ff94ce909828a19b42356bd2f1cc553b437e
parentf7ef6d12a0562afee601420b6960483e0372d0de
drm/amdkfd: handle fault counters on invalid address

prange is NULL if vm fault retry on invalid address, for this case, can
not use prange to get pdd, use adev to get gpuidx and then get pdd
instead, then increase pdd vm fault counter.

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_svm.c