]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: add xnack enabled flag to kfd_process
authorAlex Sierra <alex.sierra@amd.com>
Thu, 28 May 2020 23:03:15 +0000 (18:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:47:41 +0000 (21:47 -0400)
commit8657dbda6da92cab0ebacef438b1513a260bfb66
tree2d3e9ecb56885b3beb81bbb8092337e13e9f8744
parent67e9ded3a6993945ddd2f129705ba60ed8f84081
drm/amdkfd: add xnack enabled flag to kfd_process

XNACK mode controls the SQ RETRY_DISABLE setting that determines,
whether recoverable page faults can be supported on GFXv9 hardware.
Only on Aldebaran we can support different processes running with
different XNACK modes. On older chips all processes must use the same
RETRY_DISABLE setting. However, processes not relying on recoverable
page faults can work with RETRY enabled. This means XNACK off is always
available as a fallback so we can use the same mode on all GPUs in a
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_device_queue_manager_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c