Skip to content

DRM: Core Cleanups

David Herrmann dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20drm/radeon: move drm_buffer to drm/radeon/drivers/gpu/drm/Makefile drivers/gpu/drm/drm_buffer.c drivers/gpu/drm/radeon/Makefile +5 more+329 -3332 replies
2/20drm: mark drm_buf and drm_map as legacydrivers/gpu/drm/drm_bufs.c drivers/gpu/drm/drm_drv.c drivers/gpu/drm/drm_ioctl.c +9 more+131 -1321 reply
3/20drm: move "struct drm_vma_entry" to drm_vm.cdrivers/gpu/drm/drm_fops.c drivers/gpu/drm/drm_info.c drivers/gpu/drm/drm_vm.c +1 more+79 -741 reply
4/20drm: move "struct drm_magic_entry" to drm_auth.cdrivers/gpu/drm/drm_auth.c drivers/gpu/drm/drm_drv.c include/drm/drmP.h+6 -131 reply
5/20drm: drop unused "struct drm_waitlist"include/drm/drmP.h+0 -111 reply
6/20drm: move AGP definitions harderdrivers/gpu/drm/drm_agpsupport.c drivers/gpu/drm/drm_legacy.h drivers/gpu/drm/drm_memory.c +3 more+32 -292 replies
7/20drm: replace weird conditional includesdrivers/gpu/drm/drm_vm.c include/drm/drmP.h+2 -91 reply
8/20drm: drop __KERNEL__ protection in drmP.hinclude/drm/drmP.h+0 -21 reply
9/20drm: merge drm_memory.h into drm_memory.cdrivers/gpu/drm/drm_memory.c include/drm/drmP.h include/drm/drm_memory.h+13 -633 replies
10/20drm: move __OS_HAS_AGP into drm_agpsupport.hinclude/drm/drmP.h include/drm/drm_agpsupport.h+3 -22 replies
11/20drm: order includes alphabetically in drmP.hinclude/drm/drmP.h+23 -231 reply
12/20drm: drop DRM_DEBUG_CODEdrivers/gpu/drm/drm_debugfs.c drivers/gpu/drm/drm_vm.c drivers/gpu/drm/radeon/radeon.h +2 more+12 -441 reply
13/20drm: inline "struct drm_sigdata"drivers/gpu/drm/drm_lock.c include/drm/drmP.h+13 -141 reply
14/20drm: move remaining includes in drmP.h to the topinclude/drm/drmP.h include/drm/drm_agpsupport.h include/drm/drm_crtc.h+22 -231 reply
15/20drm: simplify drm_*_set_unique()drivers/gpu/drm/drm_pci.c drivers/gpu/drm/drm_platform.c+16 -452 replies
16/20drm: drop unused drm_master->unique_sizedrivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_pci.c drivers/gpu/drm/drm_platform.c +1 more+1 -72 replies
17/20drm: add driver->set_busid() callbackdrivers/gpu/drm/armada/armada_drv.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/bochs/bochs_drv.c +27 more+58 -93 replies
18/20drm: Goody bye, drm_bus!drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_pci.c drivers/gpu/drm/drm_platform.c +2 more+1 -352 replies
19/20drm: merge drm_usb into udlDocumentation/DocBook/drm.tmpl drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile +8 more+70 -1522 replies
20/20drm: move drm-lock API to drm_legacy.hdrivers/gpu/drm/drm_fops.c drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_legacy.h +6 more+38 -351 reply

Reviews trailers per patch

19 of 20 patches have a Reviewed-by or Acked-by.

PatchThierry RedingDaniel VetterAlex Deucher
1/20R-b R-b
2/20R-b
3/20R-b
4/20R-b
5/20R-b
6/20R-b
7/20R-b
8/20R-b
9/20R-b
10/20
11/20A-b
12/20R-b
13/20R-b
14/20R-b
15/20R-b R-b
16/20R-b R-b
17/20R-b
18/20R-b R-b
19/20R-b R-b
20/20R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/20] DRM: Core Cleanups

Hi

More cleanups of DRM core code. Diffstat says:

 72 files changed, 832 insertions(+), 1038 deletions(-)

..which is already nice, but doesn't reflect that a lot of code is now hidden from main headers. Furthermore, with this series applied, drmP.h no longer looks as ugly as it is now (widly unstructured). It still ain't a beauty, though:

 include/drm/drmP.h                       | 236 ++++++++-----------------------

Anyhow, highlights:
- drop "drm_memory.h"
- drop "drm_usb.c"
- drop "struct drm_waitlist"
- drop "struct drm_sigdata"
- drop "struct drm_bus"
- drop "drm_master->unique_size"

Two patches are driver related:
- radeon: Patch #1, moves drm_buffer.c to radeon/
- nouveau: Patch #17, splits drm_driver for nouveau
They're rather trivial. Everything else is DRM-core.

I've moved some legacy stuff around so it's easier to drop it once unused. If someone disagrees with move, let me know and I'll drop the patch.

I've pushed this to the 0-day testing bots now. I'll comment on the patches in case something shows up.

Comments welcome!
David

David Herrmann (20):
drm/radeon: move drm_buffer to drm/radeon/
drm: mark drm_buf and drm_map as legacy
drm: move "struct drm_vma_entry" to drm_vm.c
drm: move "struct drm_magic_entry" to drm_auth.c
drm: drop unused "struct drm_waitlist"
drm: move AGP definitions harder
drm: replace weird conditional includes
drm: drop __KERNEL__ protection in drmP.h
drm: merge drm_memory.h into drm_memory.c
drm: move __OS_HAS_AGP into drm_agpsupport.h
drm: order includes alphabetically in drmP.h
drm: drop DRM_DEBUG_CODE
drm: inline "struct drm_sigdata"
drm: move remaining includes in drmP.h to the top
drm: simplify drm_*_set_unique()
drm: drop unused drm_master->unique_size
drm: add driver->set_busid() callback
drm: Goody bye, drm_bus!
drm: merge drm_usb into udl
drm: move drm-lock API to drm_legacy.h

 Documentation/DocBook/drm.tmpl           |   3 +-
 drivers/gpu/drm/Kconfig                  |   6 -
 drivers/gpu/drm/Makefile                 |   5 +-
 drivers/gpu/drm/armada/armada_drv.c      |   1 +
 drivers/gpu/drm/ast/ast_drv.c            |   1 +
 drivers/gpu/drm/bochs/bochs_drv.c        |   1 +
 drivers/gpu/drm/cirrus/cirrus_drv.c      |   1 +
 drivers/gpu/drm/drm_agpsupport.c         |   1 +
 drivers/gpu/drm/drm_auth.c               |   6 +
 drivers/gpu/drm/drm_buffer.c             | 181 ------------------------
 drivers/gpu/drm/drm_bufs.c               |  89 ++++++------
 drivers/gpu/drm/drm_debugfs.c            |   2 -
 drivers/gpu/drm/drm_drv.c                |  11 +-
 drivers/gpu/drm/drm_fops.c               |  16 +--
 drivers/gpu/drm/drm_info.c               |  59 --------
 drivers/gpu/drm/drm_ioctl.c              |  27 ++--
 drivers/gpu/drm/drm_legacy.h             |  39 +++++
 drivers/gpu/drm/drm_lock.c               |  35 ++---
 drivers/gpu/drm/drm_memory.c             |  12 ++
 drivers/gpu/drm/drm_pci.c                |  41 ++----
 drivers/gpu/drm/drm_platform.c           |  38 ++---
 drivers/gpu/drm/drm_usb.c                |  88 ------------
 drivers/gpu/drm/drm_vm.c                 |  74 ++++++++++
 drivers/gpu/drm/exynos/exynos_drm_drv.c  |   1 +
 drivers/gpu/drm/gma500/psb_drv.c         |   1 +
 drivers/gpu/drm/i810/i810_dma.c          |   4 +-
 drivers/gpu/drm/i810/i810_drv.c          |   1 +
 drivers/gpu/drm/i915/i915_dma.c          |   2 +-
 drivers/gpu/drm/i915/i915_drv.c          |   1 +
 drivers/gpu/drm/mga/mga_dma.c            |  49 +++----
 drivers/gpu/drm/mga/mga_drv.c            |   1 +
 drivers/gpu/drm/mgag200/mgag200_drv.c    |   1 +
 drivers/gpu/drm/msm/msm_drv.c            |   1 +
 drivers/gpu/drm/nouveau/nouveau_drm.c    |  19 ++-
 drivers/gpu/drm/omapdrm/omap_drv.c       |   1 +
 drivers/gpu/drm/qxl/qxl_drv.c            |   1 +
 drivers/gpu/drm/r128/r128_cce.c          |   2 +-
 drivers/gpu/drm/r128/r128_drv.c          |   1 +
 drivers/gpu/drm/radeon/Makefile          |   2 +-
 drivers/gpu/drm/radeon/drm_buffer.c      | 177 +++++++++++++++++++++++
 drivers/gpu/drm/radeon/drm_buffer.h      | 148 +++++++++++++++++++
 drivers/gpu/drm/radeon/r300_cmdbuf.c     |   2 +-
 drivers/gpu/drm/radeon/r600_cp.c         |   2 +-
 drivers/gpu/drm/radeon/radeon.h          |  17 ++-
 drivers/gpu/drm/radeon/radeon_cp.c       |  22 +--
 drivers/gpu/drm/radeon/radeon_drv.c      |   2 +
 drivers/gpu/drm/radeon/radeon_ring.c     |  21 ---
 drivers/gpu/drm/radeon/radeon_state.c    |   2 +-
 drivers/gpu/drm/rcar-du/rcar_du_drv.c    |   1 +
 drivers/gpu/drm/savage/savage_bci.c      |  23 +--
 drivers/gpu/drm/savage/savage_drv.c      |   1 +
 drivers/gpu/drm/shmobile/shmob_drm_drv.c |   1 +
 drivers/gpu/drm/sis/sis_drv.c            |   1 +
 drivers/gpu/drm/sis/sis_mm.c             |   6 +-
 drivers/gpu/drm/tdfx/tdfx_drv.c          |   1 +
 drivers/gpu/drm/tilcdc/tilcdc_drv.c      |   1 +
 drivers/gpu/drm/udl/Kconfig              |   3 +-
 drivers/gpu/drm/udl/udl_connector.c      |   4 +-
 drivers/gpu/drm/udl/udl_drv.c            | 102 +++++++------
 drivers/gpu/drm/udl/udl_drv.h            |   1 +
 drivers/gpu/drm/udl/udl_main.c           |   8 +-
 drivers/gpu/drm/via/via_drv.c            |   1 +
 drivers/gpu/drm/via/via_map.c            |   2 +-
 drivers/gpu/drm/via/via_mm.c             |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c      |   1 +
 drivers/staging/imx-drm/imx-drm-core.c   |   1 +
 include/drm/drmP.h                       | 236 ++++++++-----------------------
 include/drm/drm_agpsupport.h             |  26 +++-
 include/drm/drm_buffer.h                 | 148 -------------------
 include/drm/drm_crtc.h                   |   4 +-
 include/drm/drm_memory.h                 |  59 --------
 include/drm/drm_usb.h                    |  15 --
 72 files changed, 832 insertions(+), 1038 deletions(-)
 delete mode 100644 drivers/gpu/drm/drm_buffer.c
 delete mode 100644 drivers/gpu/drm/drm_usb.c
 create mode 100644 drivers/gpu/drm/radeon/drm_buffer.c
 create mode 100644 drivers/gpu/drm/radeon/drm_buffer.h
 delete mode 100644 include/drm/drm_buffer.h
 delete mode 100644 include/drm/drm_memory.h
 delete mode 100644 include/drm/drm_usb.h
Signature · 1 line
2.1.0