Skip to content

drm: add gem ttm helpers, rework mmap workflow.

Gerd Hoffmann dri-devel linux-doc lkml virtualization 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest17 patches 16 repliesIn review
  2. v38 patches 7 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches9 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17drm/ttm: turn ttm_bo_device.vma_manager into a pointerdrivers/gpu/drm/ttm/ttm_bo.c drivers/gpu/drm/ttm/ttm_bo_vm.c include/drm/ttm/ttm_bo_driver.h+33 -131 reply
2/17drm/ttm: add gem_ttm_bo_device_init()Documentation/gpu/drm-mm.rst drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile +2 more+88 -00 replies
3/17drm/vram: switch vram helpers to the new gem_ttm_bo_device_init()drivers/gpu/drm/Kconfig drivers/gpu/drm/drm_gem_vram_helper.c drivers/gpu/drm/drm_vram_mm_helper.c +2 more+5 -570 replies
4/17drm/qxl: switch qxl to the new gem_ttm_bo_device_init()drivers/gpu/drm/qxl/Kconfig drivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_drv.h +4 more+9 -320 replies
4/17drm/qxl: switch qxl to the new gem_ttm_bo_device_init()drivers/gpu/drm/qxl/Kconfig drivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_drv.h +4 more+9 -320 replies
5/17drm: add mmap() to drm_gem_object_funcsdrivers/gpu/drm/drm_gem.c include/drm/drm_gem.h+15 -04 replies
6/17drm/shmem: switch shmem helper to drm_gem_object_funcs->mmapdrivers/gpu/drm/drm_gem_shmem_helper.c drivers/gpu/drm/panfrost/panfrost_gem.c drivers/gpu/drm/v3d/v3d_bo.c +1 more+11 -131 reply
7/17drm/shmem: drop DEFINE_DRM_GEM_SHMEM_FOPSdrivers/gpu/drm/cirrus/cirrus.c drivers/gpu/drm/panfrost/panfrost_drv.c drivers/gpu/drm/v3d/v3d_drv.c +1 more+3 -292 replies
8/17drm/ttm: factor out ttm_bo_mmap_vma_setupdrivers/gpu/drm/ttm/ttm_bo_vm.c include/drm/ttm/ttm_bo_api.h+33 -220 replies
9/17drm/ttm: add drm_gem_ttm_mmap()drivers/gpu/drm/drm_gem_ttm_helper.c include/drm/drm_gem_ttm_helper.h+13 -00 replies
10/17drm/vram: switch vram helper to drm_gem_object_funcs->mmap codepathdrivers/gpu/drm/drm_gem_vram_helper.c drivers/gpu/drm/drm_vram_mm_helper.c include/drm/drm_vram_mm_helper.h+4 -360 replies
11/17drm/vram: drop verify_accessdrivers/gpu/drm/drm_gem_vram_helper.c drivers/gpu/drm/drm_vram_mm_helper.c include/drm/drm_gem_vram_helper.h +1 more+0 -180 replies
12/17drm: drop DRM_VRAM_MM_FILE_OPERATIONSdrivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/bochs/bochs_drv.c drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +3 more+5 -370 replies
12/17drm: drop DRM_VRAM_MM_FILE_OPERATIONSdrivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/bochs/bochs_drv.c drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +3 more+5 -370 replies
13/17drm/qxl: use drm_gem_object_funcsdrivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_object.c+12 -80 replies
13/17drm/qxl: use drm_gem_object_funcsdrivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_object.c+12 -80 replies
14/17drm/qxl: drop qxl_ttm_faultdrivers/gpu/drm/qxl/qxl_ttm.c+1 -260 replies
14/17drm/qxl: drop qxl_ttm_faultdrivers/gpu/drm/qxl/qxl_ttm.c+1 -260 replies
15/17drm/qxl: switch qxl to drm_gem_object_funcs->mmap codepathdrivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_drv.h drivers/gpu/drm/qxl/qxl_object.c +1 more+2 -180 replies
15/17drm/qxl: switch qxl to drm_gem_object_funcs->mmap codepathdrivers/gpu/drm/qxl/qxl_drv.c drivers/gpu/drm/qxl/qxl_drv.h drivers/gpu/drm/qxl/qxl_object.c +1 more+2 -180 replies
16/17drm/qxl: drop verify_accessdrivers/gpu/drm/qxl/qxl_ttm.c+0 -90 replies
16/17drm/qxl: drop verify_accessdrivers/gpu/drm/qxl/qxl_ttm.c+0 -90 replies
17/17drm/qxl: use DEFINE_DRM_GEM_FOPS()drivers/gpu/drm/qxl/qxl_drv.c+1 -90 replies
17/17drm/qxl: use DEFINE_DRM_GEM_FOPS()drivers/gpu/drm/qxl/qxl_drv.c+1 -90 replies

Reviews trailers per patch

2 of 24 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/17
2/17
3/17
4/17
4/17
5/17
6/17A-b
7/17A-b A-b
8/17
9/17
10/17
11/17
12/17
12/17
13/17
13/17
14/17
14/17
15/17
15/17
16/17
16/17
17/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/17] drm: add gem ttm helpers, rework mmap workflow.

Gerd Hoffmann (17):
drm/ttm: turn ttm_bo_device.vma_manager into a pointer drm/ttm: add gem_ttm_bo_device_init()
drm/vram: switch vram helpers to the new gem_ttm_bo_device_init() drm/qxl: switch qxl to the new gem_ttm_bo_device_init()
drm: add mmap() to drm_gem_object_funcs
drm/shmem: switch shmem helper to drm_gem_object_funcs->mmap drm/shmem: drop DEFINE_DRM_GEM_SHMEM_FOPS
drm/ttm: factor out ttm_bo_mmap_vma_setup
drm/ttm: add drm_gem_ttm_mmap()
drm/vram: switch vram helper to drm_gem_object_funcs->mmap codepath drm/vram: drop verify_access
drm: drop DRM_VRAM_MM_FILE_OPERATIONS
drm/qxl: use drm_gem_object_funcs
drm/qxl: drop qxl_ttm_fault
drm/qxl: switch qxl to drm_gem_object_funcs->mmap codepath drm/qxl: drop verify_access
drm/qxl: use DEFINE_DRM_GEM_FOPS()

 drivers/gpu/drm/qxl/qxl_drv.h                 |  5 +-
 drivers/gpu/drm/qxl/qxl_object.h              |  5 --
 include/drm/drm_gem.h                         |  9 +++
 include/drm/drm_gem_shmem_helper.h            | 28 +--------
 include/drm/drm_gem_ttm_helper.h              | 32 ++++++++++
 include/drm/drm_gem_vram_helper.h             |  9 +--
 include/drm/drm_vram_mm_helper.h              | 27 ---------
 include/drm/ttm/ttm_bo_api.h                  |  8 +++
 include/drm/ttm/ttm_bo_driver.h               | 11 +++-
 drivers/gpu/drm/ast/ast_drv.c                 |  5 +-
 drivers/gpu/drm/bochs/bochs_drv.c             |  5 +-
 drivers/gpu/drm/cirrus/cirrus.c               |  2 +-
 drivers/gpu/drm/drm_gem.c                     |  6 ++
 drivers/gpu/drm/drm_gem_shmem_helper.c        | 18 +++---
 drivers/gpu/drm/drm_gem_ttm_helper.c          | 47 +++++++++++++++
 drivers/gpu/drm/drm_gem_vram_helper.c         | 53 +----------------
 drivers/gpu/drm/drm_vram_mm_helper.c          | 44 +-------------
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   |  6 +-
 drivers/gpu/drm/mgag200/mgag200_drv.c         |  5 +-
 drivers/gpu/drm/panfrost/panfrost_drv.c       |  2 +-
 drivers/gpu/drm/panfrost/panfrost_gem.c       |  1 +
 drivers/gpu/drm/qxl/qxl_drv.c                 | 19 +-----
 drivers/gpu/drm/qxl/qxl_dumb.c                | 17 ------
 drivers/gpu/drm/qxl/qxl_ioctl.c               |  5 +-
 drivers/gpu/drm/qxl/qxl_object.c              | 13 +++++
 drivers/gpu/drm/qxl/qxl_ttm.c                 | 58 ++-----------------
 drivers/gpu/drm/ttm/ttm_bo.c                  | 29 +++++++---
 drivers/gpu/drm/ttm/ttm_bo_vm.c               | 53 +++++++++--------
 drivers/gpu/drm/v3d/v3d_bo.c                  |  1 +
 drivers/gpu/drm/v3d/v3d_drv.c                 |  2 +-
 drivers/gpu/drm/vboxvideo/vbox_drv.c          |  5 +-
 Documentation/gpu/drm-mm.rst                  | 12 ++++
 drivers/gpu/drm/Kconfig                       |  8 +++
 drivers/gpu/drm/Makefile                      |  3 +
 drivers/gpu/drm/qxl/Kconfig                   |  1 +
 35 files changed, 231 insertions(+), 323 deletions(-)
 create mode 100644 include/drm/drm_gem_ttm_helper.h
 create mode 100644 drivers/gpu/drm/drm_gem_ttm_helper.c
Signature · 6 lines
2.18.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel