diff options
author | Marek Olšák <marek.olsak@amd.com> | 2017-05-17 14:05:08 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 18:24:38 -0400 |
commit | 68e2c5ffeb164f069692d00659d24dbda31178bc (patch) | |
tree | 80174509a262db0c1ca1e0c58c1c578bb51800c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 9156e723301c0a7a7def4cde820e018ce791b842 (diff) |
drm/amdgpu: add an INFO query for monitoring VRAM CPU page faults
v2: bump the DRM version
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 365883d7948d..8ee69652be8c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -960,6 +960,7 @@ int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo) | |||
960 | return -EINVAL; | 960 | return -EINVAL; |
961 | 961 | ||
962 | /* hurrah the memory is not visible ! */ | 962 | /* hurrah the memory is not visible ! */ |
963 | atomic64_inc(&adev->num_vram_cpu_page_faults); | ||
963 | amdgpu_ttm_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM); | 964 | amdgpu_ttm_placement_from_domain(abo, AMDGPU_GEM_DOMAIN_VRAM); |
964 | lpfn = adev->mc.visible_vram_size >> PAGE_SHIFT; | 965 | lpfn = adev->mc.visible_vram_size >> PAGE_SHIFT; |
965 | for (i = 0; i < abo->placement.num_placement; i++) { | 966 | for (i = 0; i < abo->placement.num_placement; i++) { |