linux/drivers/gpu/drm/vmwgfx
Dave Airlie ebdf565169 drm/ttm: add multihop infrastrucutre (v3)
Currently drivers get called to move a buffer, but if they have to
move it temporarily through another space (SYSTEM->VRAM via TT)
then they can end up with a lot of ttm->driver->ttm call stacks,
if the temprorary space moves requires eviction.

Instead of letting the driver do all the placement/space for the
temporary, allow it to report back (-EMULTIHOP) and a placement (hop)
to the move code, which will then do the temporary move, and the
correct placement move afterwards.

This removes a lot of code from drivers, at the expense of
adding some midlayering. I've some further ideas on how to turn
it inside out, but I think this is a good solution to the call
stack problems.

v2: separate out the driver patches, add WARN for getting
MULTHOP in paths we shouldn't (Daniel)
v3: use memset (Christian)

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: hristian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201109005432.861936-2-airlied@gmail.com
2020-11-11 11:11:03 +10:00
..
device_include drm/vmwgfx: Sync virtual device headers for new feature 2020-03-23 22:39:34 +01:00
Kconfig
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
ttm_lock.h
ttm_object.c
ttm_object.h
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: use caching instead of placement for ttm_io_prot 2020-10-15 12:51:24 +02:00
vmwgfx_bo.c drm/vmwgfx: move null mem checks outside move notifies 2020-10-07 15:41:49 +10:00
vmwgfx_cmdbuf.c drm/vmwgfx: stop using ttm_bo_create v2 2020-09-24 16:16:49 +02:00
vmwgfx_cmdbuf_res.c drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add 2020-01-15 11:46:59 +01:00
vmwgfx_context.c drm/vmwgfx: Add support for UA view commands 2020-03-23 22:39:34 +01:00
vmwgfx_cotable.c drm/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_drv.c drm/<drivers>: Constify struct drm_driver 2020-11-06 10:31:26 +01:00
vmwgfx_drv.h drm/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_execbuf.c drm/vmwgfx: fix spelling mistake "Cound" -> "Could" 2020-08-11 03:16:03 +02: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
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 Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
vmwgfx_ioctl.c drm/vmwgfx: Add SM5 param for userspace 2020-03-23 22:48:57 +01:00
vmwgfx_irq.c
vmwgfx_kms.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +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 drm/vmwgfx: Remove a few unused functions 2020-03-12 15:31:12 +01:00
vmwgfx_page_dirty.c drm/ttm: remove ttm_bo_unmap_virtual_locked declaration v2 2020-10-07 13:54:05 +02:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: move null mem checks outside move notifies 2020-10-07 15:41:49 +10: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/vmwgfx: switch over to the new pin interface v2 2020-09-24 16:16:49 +02:00
vmwgfx_simple_resource.c
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/atomic: Pass the full state to CRTC atomic enable/disable 2020-10-09 09:55:59 +02: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/vmwgfx: Use struct_size() helper 2020-08-11 03:16:02 +02:00
vmwgfx_thp.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
vmwgfx_ttm_buffer.c drm/ttm: add multihop infrastrucutre (v3) 2020-11-11 11:11:03 +10:00
vmwgfx_ttm_glue.c drm/vmwgfx: Support huge page faults 2020-03-24 18:48:55 +01:00
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