drm/amdkfd: add ioctl to configure and query xnack retries
authorAlex Sierra <alex.sierra@amd.com>
Thu, 28 May 2020 23:27:05 +0000 (18:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:47:48 +0000 (21:47 -0400)
commit0f7b5c44d4c53710993e4773bd6eaf171f1888e6
treeda65e40ffefb57dc0e382354301361775a517f0e
parent063e33c5469cf5f46407701f1121a978a3af2ce8
drm/amdkfd: add ioctl to configure and query xnack retries

Xnack retries are used for page fault recovery. Some AMD chip
families support continuously retry while page table entries are invalid.
The driver must handle the page fault interrupt and fill in a valid entry
for the GPU to continue.

This ioctl allows to enable/disable XNACK retries per KFD process.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
include/uapi/linux/kfd_ioctl.h