[Intel-gfx] [PATCH 00/16] More drm master and SET_UNIQUE cleanups

Daniel Vetter daniel.vetter at ffwll.ch
Fri Jun 17 07:33:18 UTC 2016


Hi all,

This resends the remaining bits of my drm master cleanup. The simple bugfix for
patch 1 for the leak that Chris spotted resulted in cascading rebase conflicts.
On top of that:
- SET_UNIQUE cleanup, including big documentation section to explain all the
  lessons learned.
- drm master and authentication cleanup plus again documentation, motivated by
  irc discussions with Chris and Emil.

Feedback, testing and review highly welcome, as usual.

Cheers, Daniel

Daniel Vetter (16):
  drm: Only do the hw.lock cleanup in master_relase for !MODESET
  drm: Move authmagic cleanup into drm_master_release
  drm: Protect authmagic with master_mutex
  drm: Mark authmagic ioctls as unlocked
  drm: Mark set/drop master ioctl as unlocked.
  drm: Move master pointer from drm_minor to drm_device
  drm: Clean up drm_crtc.h
  drm: Use dev->name as fallback for dev->unique
  drm/vgem: Stop calling drm_drv_set_unique
  drm: Don't call drm_dev_set_unique from platform drivers
  drm: Nuke SET_UNIQUE ioctl
  drm: Lobotomize set_busid nonsense for !pci drivers
  drm: Refactor drop/set master code a bit
  drm: Extract drm_is_current_master
  drm: Clear up master tracking booleans
  drm: document drm_auth.c

 Documentation/DocBook/gpu.tmpl                  |  10 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c         |   1 -
 drivers/gpu/drm/armada/armada_drv.c             |   1 -
 drivers/gpu/drm/drm_auth.c                      | 181 +++++++++++++----------
 drivers/gpu/drm/drm_bufs.c                      |   8 +-
 drivers/gpu/drm/drm_crtc.c                      |  10 +-
 drivers/gpu/drm/drm_crtc_internal.h             |  86 ++++++++++-
 drivers/gpu/drm/drm_drv.c                       |  46 +++---
 drivers/gpu/drm/drm_fb_helper.c                 |   2 +-
 drivers/gpu/drm/drm_fops.c                      |   6 +-
 drivers/gpu/drm/drm_info.c                      |  12 +-
 drivers/gpu/drm/drm_internal.h                  |   3 -
 drivers/gpu/drm/drm_ioctl.c                     | 125 ++++++++--------
 drivers/gpu/drm/drm_lock.c                      |   4 +-
 drivers/gpu/drm/drm_pci.c                       |  51 -------
 drivers/gpu/drm/drm_platform.c                  |  18 ---
 drivers/gpu/drm/etnaviv/etnaviv_drv.c           |   1 -
 drivers/gpu/drm/exynos/exynos_drm_drv.c         |   1 -
 drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c |   1 -
 drivers/gpu/drm/i915/i915_drv.h                 |   1 +
 drivers/gpu/drm/i915/i915_gem_execbuffer.c      |   4 +-
 drivers/gpu/drm/imx/imx-drm-core.c              |   1 -
 drivers/gpu/drm/mediatek/mtk_drm_drv.c          |   2 -
 drivers/gpu/drm/msm/msm_drv.c                   |   1 -
 drivers/gpu/drm/nouveau/nouveau_drm.c           |   1 -
 drivers/gpu/drm/omapdrm/omap_drv.c              |   2 -
 drivers/gpu/drm/rcar-du/rcar_du_drv.c           |   2 -
 drivers/gpu/drm/shmobile/shmob_drm_drv.c        |   1 -
 drivers/gpu/drm/sis/sis_mm.c                    |   2 +-
 drivers/gpu/drm/sun4i/sun4i_drv.c               |   4 -
 drivers/gpu/drm/tilcdc/tilcdc_drv.c             |   1 -
 drivers/gpu/drm/vgem/vgem_drv.c                 |   2 -
 drivers/gpu/drm/via/via_mm.c                    |   2 +-
 drivers/gpu/drm/virtio/virtgpu_drm_bus.c        |  10 --
 drivers/gpu/drm/virtio/virtgpu_drv.c            |   1 -
 drivers/gpu/drm/virtio/virtgpu_drv.h            |   1 -
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c             |   5 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h             |   1 +
 include/drm/drmP.h                              |  55 ++-----
 include/drm/drm_auth.h                          |  59 ++++++++
 include/drm/drm_crtc.h                          | 188 +++++++-----------------
 include/drm/drm_legacy.h                        |   2 +
 42 files changed, 445 insertions(+), 470 deletions(-)
 create mode 100644 include/drm/drm_auth.h

-- 
2.8.1



More information about the Intel-gfx mailing list