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)
commit5017bf8214d929f6ff45c46ec21cd3c1bfc03dad
treefb88f7f4822d5c4a615055008bc08de79fdfc797
parentfa8f311e9e3aa1d41f31f8b28f975c65f0b25c03
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