linux-stable/drivers/gpu/drm/vmwgfx
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
..
device_include
Kconfig
Makefile
ttm_lock.c
ttm_lock.h
ttm_object.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_object.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_bo.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_cmdbuf.c drm/vmwgfx: stop using ttm_bo_create v2 2020-09-24 16:16:49 +02:00
vmwgfx_cmdbuf_res.c
vmwgfx_context.c
vmwgfx_cotable.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_drv.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
vmwgfx_drv.h drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
vmwgfx_execbuf.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_fb.c drm/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_fence.c
vmwgfx_fence.h
vmwgfx_fifo.c drm/vmwgfx: don't use ttm bo->offset 2020-06-26 14:00:41 +02:00
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_ioctl.c
vmwgfx_irq.c
vmwgfx_kms.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_kms.h drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
vmwgfx_ldu.c drm/atomic: Pass the full state to CRTC atomic enable/disable 2020-10-09 09:55:59 +02:00
vmwgfx_marker.c
vmwgfx_mob.c drm/vmwgfx: consolidate ttm object creation and populate 2020-08-06 12:16:22 +10:00
vmwgfx_msg.c objtool: Rename frame.h -> objtool.h 2020-09-10 10:43:13 -05:00
vmwgfx_msg.h
vmwgfx_overlay.c
vmwgfx_page_dirty.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c drm/atomic: Pass the full state to CRTC atomic enable/disable 2020-10-09 09:55:59 +02:00
vmwgfx_shader.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_streamoutput.c
vmwgfx_surface.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_thp.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
vmwgfx_ttm_buffer.c drm/vmwgfx: switch to ttm_sg_tt_init 2020-11-30 15:00:12 +01:00
vmwgfx_ttm_glue.c
vmwgfx_va.c
vmwgfx_validation.c drm/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_validation.h