Skip to content

Commit 61673ef

Browse files
Timur Kristófalexdeucher
authored andcommitted
drm/amdgpu/gmc6: Cache VM fault info
Call amdgpu_vm_update_fault_cache on GMC v6 similarly to how we do in GMC v7-v8 so that VM fault info can be used later by userspace for debugging. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d56aaba commit 61673ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,10 @@ static int gmc_v6_0_process_interrupt(struct amdgpu_device *adev,
10771077
if (!addr && !status)
10781078
return 0;
10791079

1080+
amdgpu_vm_update_fault_cache(adev, entry->pasid,
1081+
((u64)addr) << AMDGPU_GPU_PAGE_SHIFT,
1082+
status, AMDGPU_GFXHUB(0));
1083+
10801084
if (amdgpu_vm_fault_stop == AMDGPU_VM_FAULT_STOP_FIRST)
10811085
gmc_v6_0_set_fault_enable_default(adev, false);
10821086

0 commit comments

Comments
 (0)