]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Update PTE flags with TF enabled
authorMukul Joshi <mukul.joshi@amd.com>
Wed, 7 Sep 2022 14:46:58 +0000 (10:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Sep 2022 21:14:09 +0000 (17:14 -0400)
commit49b3fa64a8f8763c92db8ea00120c02f98590f33
treef414c3e4ffd52e25df8f6f5fa99c7f66ce169397
parentbc67cf43fb6ba57a097eb1c0e83ef8892fed7b7f
drm/amdgpu: Update PTE flags with TF enabled

This patch updates the PTE flags when translate further (TF) is
enabled:
- With translate_further enabled, invalid PTEs can be 0. Reading
  consecutive invalid PTEs as 0 is considered a fault. To prevent
  this, ensure invalid PTEs have at least 1 bit set.
- The current invalid PTE flags settings to translate a retry fault
  into a no-retry fault, doesn't work with TF enabled. As a result,
  update invalid PTE flags settings which works for both TF enabled
  and disabled case.

Fixes: 4b370e08df1a68 ("drm/amdgpu: Enable translate_further to extend UTCL2 reach")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c