]> Gentwo Git Trees - linux/.git/commitdiff
drm/amdgpu/gmc6: Cache VM fault info
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 26 Nov 2025 13:29:49 +0000 (14:29 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Dec 2025 16:02:06 +0000 (11:02 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c

index f6715648b08a63ed9c58051865edc1dae9d5fc80..bc6a74903f4ea295c4a8862c32dff14e11a4c3a5 100644 (file)
@@ -1077,6 +1077,10 @@ static int gmc_v6_0_process_interrupt(struct amdgpu_device *adev,
        if (!addr && !status)
                return 0;
 
+       amdgpu_vm_update_fault_cache(adev, entry->pasid,
+                                    ((u64)addr) << AMDGPU_GPU_PAGE_SHIFT,
+                                    status, AMDGPU_GFXHUB(0));
+
        if (amdgpu_vm_fault_stop == AMDGPU_VM_FAULT_STOP_FIRST)
                gmc_v6_0_set_fault_enable_default(adev, false);