diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 0af090667dfc..d68f39b4e5e7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -165,8 +165,11 @@ struct amdgpu_vm { | |||
165 | /* Flag to indicate ATS support from PTE for GFX9 */ | 165 | /* Flag to indicate ATS support from PTE for GFX9 */ |
166 | bool pte_support_ats; | 166 | bool pte_support_ats; |
167 | 167 | ||
168 | /* Up to 128 pending page faults */ | 168 | /* Up to 128 pending retry page faults */ |
169 | DECLARE_KFIFO(faults, u64, 128); | 169 | DECLARE_KFIFO(faults, u64, 128); |
170 | |||
171 | /* Limit non-retry fault storms */ | ||
172 | unsigned int fault_credit; | ||
170 | }; | 173 | }; |
171 | 174 | ||
172 | struct amdgpu_vm_id { | 175 | struct amdgpu_vm_id { |
@@ -244,6 +247,8 @@ void amdgpu_vm_manager_fini(struct amdgpu_device *adev); | |||
244 | int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm, | 247 | int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm, |
245 | int vm_context, unsigned int pasid); | 248 | int vm_context, unsigned int pasid); |
246 | void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm); | 249 | void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm); |
250 | bool amdgpu_vm_pasid_fault_credit(struct amdgpu_device *adev, | ||
251 | unsigned int pasid); | ||
247 | void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, | 252 | void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, |
248 | struct list_head *validated, | 253 | struct list_head *validated, |
249 | struct amdgpu_bo_list_entry *entry); | 254 | struct amdgpu_bo_list_entry *entry); |