mirror-linux/drivers/gpu/drm/ttm
Christian König e11bfb99d6 drm/ttm: cleanup BO size handling v3
Based on an idea from Dave, but cleaned up a bit.

We had multiple fields for essentially the same thing.

Now bo->base.size is the original size of the BO in
arbitrary units, usually bytes.

bo->mem.num_pages is the size in number of pages in the
resource domain of bo->mem.mem_type.

v2: use the GEM object size instead of the BO size
v3: fix printks in some places

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com> (v1)
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/406831/
2020-12-14 14:20:46 +01:00
..
Makefile drm/ttm: nuke old page allocator 2020-10-29 15:57:57 +01:00
ttm_agp_backend.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_bo.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
ttm_bo_util.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
ttm_bo_vm.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
ttm_execbuf_util.c drm/ttm/amdgpu: consolidate ttm reserve paths 2020-08-06 12:16:31 +10:00
ttm_memory.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_module.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_module.h drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_pool.c drm/ttm: fix DMA32 handling in the global page pool 2020-11-19 13:09:29 +01:00
ttm_range_manager.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_resource.c drm/ttm: replace context flags with bools v2 2020-11-04 11:23:25 +01:00
ttm_tt.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00