diff options
author | Marek Olšák <marek.olsak@amd.com> | 2014-03-01 18:56:18 -0500 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-03-03 04:54:19 -0500 |
commit | 67e8e3f970ad747d3c854fb40f8ec0cecedd9089 (patch) | |
tree | 9bbf509dfde9cd4a11fb35aca45a2ac3f35c7b69 /drivers/gpu/drm/radeon/radeon_object.h | |
parent | bda72d58a20120aee1f78eb17d7eddb955d6696b (diff) |
drm/radeon: track memory statistics about VRAM and GTT usage and buffer moves v2
The statistics are:
- VRAM usage in bytes
- GTT usage in bytes
- number of bytes moved by TTM
The last one is actually a counter, so you need to sample it before and after
command submission and take the difference.
This is useful for finding performance bottlenecks. Userspace queries are
also added.
v2: use atomic64_t
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_object.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.h b/drivers/gpu/drm/radeon/radeon_object.h index 209b11150263..a9a8c11bd80d 100644 --- a/drivers/gpu/drm/radeon/radeon_object.h +++ b/drivers/gpu/drm/radeon/radeon_object.h | |||
@@ -151,7 +151,7 @@ extern void radeon_bo_get_tiling_flags(struct radeon_bo *bo, | |||
151 | extern int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved, | 151 | extern int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved, |
152 | bool force_drop); | 152 | bool force_drop); |
153 | extern void radeon_bo_move_notify(struct ttm_buffer_object *bo, | 153 | extern void radeon_bo_move_notify(struct ttm_buffer_object *bo, |
154 | struct ttm_mem_reg *mem); | 154 | struct ttm_mem_reg *new_mem); |
155 | extern int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo); | 155 | extern int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo); |
156 | extern int radeon_bo_get_surface_reg(struct radeon_bo *bo); | 156 | extern int radeon_bo_get_surface_reg(struct radeon_bo *bo); |
157 | 157 | ||