]> 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>
Tue, 13 Jul 2021 15:48:13 +0000 (11:48 -0400)
commit54651d16d9e4ce3307c6bde5c47a037078a0bb9c
treefb88f7f4822d5c4a615055008bc08de79fdfc797
parent30bdcd49fc23b0a5b45f333cff87fe6ba5e712d8
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