Skip to content

DRM File Context Cleanups

David Herrmann dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm: rename DRM_MINOR_LEGACY to DRM_MINOR_PRIMARYdrivers/gpu/drm/drm_drv.c include/drm/drmP.h+9 -92 replies
2/8drm: remove redundant drm_file->uiddrivers/gpu/drm/drm_fops.c drivers/gpu/drm/drm_info.c drivers/gpu/drm/drm_ioctl.c +1 more+6 -43 replies
3/8drm: reduce GETCLIENT to a minimumdrivers/gpu/drm/drm_ioctl.c+2 -50 replies
4/8drm: make vma-manager entries untypeddrivers/gpu/drm/drm_vma_manager.c include/drm/drm_vma_manager.h+27 -312 replies
5/8drm: use drm_file to tag vm-bosdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/ast/ast_ttm.c drivers/gpu/drm/bochs/bochs_mm.c +6 more+20 -123 replies
6/8drm: use priv->pid to deduce task EUIDdrivers/gpu/drm/drm_info.c+1 -11 reply
7/8drm: rename drm_file.filp to drm_file.legacy_filpdrivers/gpu/drm/drm_bufs.c drivers/gpu/drm/drm_fops.c include/drm/drmP.h+6 -50 replies
8/8drm: provide management functions for drm_filedrivers/gpu/drm/drm_drv.c drivers/gpu/drm/drm_fops.c drivers/gpu/drm/drm_internal.h+147 -1240 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchChris WilsonFrank Binns
1/8R-b
2/8
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] DRM File Context Cleanups

Hi

Some rather random cleanups on drm_file and whatever I found on the way. The idea here really is to get to a point where we can allocate drm_file from a kernel context to get in-kernel rendering to work. This would allow allocating dumb-buffers, dma-bufs, etc. from within the kernel and get fbdev generically working, as well as panic renderers et al.

The only critical thing is drm_file->filp, which points to the underlying "struct file". We really don't want to fake a "struct file" for in-kernel renderers (even though it is possible), so this series tries to get rid of all non-legacy users of it. The only real place left is vm_mmap() in drm_bufs.c.

Tested on i915 only.

Thanks
David

David Herrmann (8):
drm: rename DRM_MINOR_LEGACY to DRM_MINOR_PRIMARY
drm: remove redundant drm_file->uid
drm: reduce GETCLIENT to a minimum
drm: make vma-manager entries untyped
drm: use drm_file to tag vm-bos
drm: use priv->pid to deduce task EUID
drm: rename drm_file.filp to drm_file.legacy_filp
drm: provide management functions for drm_file

 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c |   3 +-
 drivers/gpu/drm/ast/ast_ttm.c           |   3 +-
 drivers/gpu/drm/bochs/bochs_mm.c        |   3 +-
 drivers/gpu/drm/cirrus/cirrus_ttm.c     |   3 +-
 drivers/gpu/drm/drm_bufs.c              |   7 +-
 drivers/gpu/drm/drm_drv.c               | 149 ++++++++++++++++++++++++++++++--
 drivers/gpu/drm/drm_fops.c              | 133 ++--------------------------
 drivers/gpu/drm/drm_gem.c               |   8 +-
 drivers/gpu/drm/drm_info.c              |   4 +-
 drivers/gpu/drm/drm_internal.h          |   4 +
 drivers/gpu/drm/drm_ioctl.c             |   5 +-
 drivers/gpu/drm/drm_vma_manager.c       |  40 ++++-----
 drivers/gpu/drm/mgag200/mgag200_ttm.c   |   3 +-
 drivers/gpu/drm/nouveau/nouveau_bo.c    |   3 +-
 drivers/gpu/drm/qxl/qxl_ttm.c           |   3 +-
 drivers/gpu/drm/radeon/radeon_ttm.c     |   3 +-
 include/drm/drmP.h                      |   7 +-
 include/drm/drm_vma_manager.h           |  18 ++--
 18 files changed, 213 insertions(+), 186 deletions(-)
Signature · 6 lines
2.9.2

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