linux/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 drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
Kconfig drm/vmwgfx: Implement an infrastructure for write-coherent resources 2019-11-06 13:04:54 +01:00
Makefile Merge branch 'ttm-transhuge' of git://people.freedesktop.org/~thomash/linux into drm-next 2020-04-03 09:07:49 +10:00
ttm_lock.c drm/vmwgfx: Kill unneeded legacy security features 2019-08-15 08:39:27 +02:00
ttm_lock.h drm/vmwgfx: drop use of drmP.h in header files 2019-08-15 08:40:04 +02:00
ttm_object.c drm/ttm/drivers: remove unecessary ttm_module.h include v2 2020-12-01 17:43:46 +01:00
ttm_object.h drm/vmwgfx: drop use of drmP.h in header files 2019-08-15 08:40:04 +02:00
vmwgfx_binding.c drm/vmwgfx: Add support for streamoutput with mob commands 2020-03-23 22:39:35 +01:00
vmwgfx_binding.h drm/vmwgfx: Add support for streamoutput with mob commands 2020-03-23 22:39:35 +01:00
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_res.c drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add 2020-01-15 11:46:59 +01:00
vmwgfx_cmdbuf.c drm/vmwgfx: stop using ttm_bo_create v2 2020-09-24 16:16:49 +02:00
vmwgfx_context.c drm/vmwgfx: Add support for UA view commands 2020-03-23 22:39:34 +01:00
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 drm/vmwgfx: Return true in function vmw_fence_obj_signaled() 2020-05-16 06:50:37 +02:00
vmwgfx_fence.h drm/vmwgfx: drop use of drmP.h in header files 2019-08-15 08:40:04 +02:00
vmwgfx_fifo.c drm/vmwgfx: don't use ttm bo->offset 2020-06-26 14:00:41 +02:00
vmwgfx_gmr.c drm/vmwgfx: drop reminaing users of drmP.h 2019-08-15 08:40:04 +02:00
vmwgfx_gmrid_manager.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_ioctl.c drm/vmwgfx: Add SM5 param for userspace 2020-03-23 22:48:57 +01:00
vmwgfx_irq.c drm/vmwgfx: drop reminaing users of drmP.h 2019-08-15 08:40:04 +02:00
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 drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
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 drm/vmwgfx: Update the backdoor call with support for new instructions 2019-08-28 13:36:46 +02:00
vmwgfx_overlay.c drm/vmwgfx: Remove a few unused functions 2020-03-12 15:31:12 +01:00
vmwgfx_page_dirty.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_prime.c drm/vmwgfx: Delete mmaping functions 2019-11-25 22:36:14 +01:00
vmwgfx_reg.h drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
vmwgfx_resource_priv.h drm/vmwgfx: Implement an infrastructure for read-coherent resources 2019-11-06 13:30:27 +01:00
vmwgfx_resource.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
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 drm/vmwgfx: Add a new define for vmwgfx user-space debugging 2019-04-08 10:29:04 -07:00
vmwgfx_so.c drm/vmwgfx: Add support for UA view commands 2020-03-23 22:39:34 +01:00
vmwgfx_so.h drm/vmwgfx: Add support for streamoutput with mob commands 2020-03-23 22:39:35 +01:00
vmwgfx_stdu.c drm/ttm: cleanup BO size handling v3 2020-12-14 14:20:46 +01:00
vmwgfx_streamoutput.c drm/vmwgfx: Add support for streamoutput with mob commands 2020-03-23 22:39:35 +01:00
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 drm/vmwgfx: Support huge page faults 2020-03-24 18:48:55 +01:00
vmwgfx_va.c drm/vmwgfx: add SPDX idenitifier and clarify license 2018-06-29 15:28:48 -05:00
vmwgfx_validation.c drm/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_validation.h drm/vmwgfx: Implement an infrastructure for write-coherent resources 2019-11-06 13:04:54 +01:00