mirror-linux/include/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
..
ttm_bo_api.h drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
ttm_bo_driver.h drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_caching.h drm/ttm: new TT backend allocation pool v3 2020-10-29 15:52:51 +01:00
ttm_execbuf_util.h drm/ttm: remove superflous extern attribute from funcs 2020-09-17 16:14:42 +02:00
ttm_memory.h drm/ttm: remove superflous extern attribute from funcs 2020-09-17 16:14:42 +02:00
ttm_placement.h drm/ttm: nuke caching placement flags 2020-10-15 12:51:35 +02:00
ttm_pool.h drm/ttm: new TT backend allocation pool v3 2020-10-29 15:52:51 +01:00
ttm_resource.h drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
ttm_tt.h drm/ttm: nuke ttm_dma_tt_init 2020-11-30 15:00:34 +01:00