]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cd0c6ec66fa2f7df9b7cfde53b704b27c6a7ce8
treeda65e40ffefb57dc0e382354301361775a517f0e
parent8657dbda6da92cab0ebacef438b1513a260bfb66
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