Skip to contentSkip to conversation

DRM Cleanups

GIT PULL David Herrmann 2 participants 2 messages Aug 6, 2014

lore
Share & tools
lore
#0 lore raw

Hi Dave

A bunch of cleanups that are all reviewed by Daniel and Alex. Has survived the compile/runtime test bots for some weeks now, so should all be fine. Nothing critical, though.

This series includes:
* hide ctxbitmap harder so newer drivers don't use it
* drop redundant drm_file->is_master
* move code out of drm_drv.c
* prepare sysfs/minor handling to be ready to drop drm_global_mutex

Feel free to rename drm_stub.c to drm_drv.c (acked by Alex and Daniel) after you applied these patches.

Thanks
David

The following changes since commit a91576d7916f6cce76d30303e60e1ac47cf4a76d:

drm/ttm: Pass GFP flags in order to avoid deadlock. (2014-08-05 10:54:19 +1000)

are available in the git repository at:

ssh://[email protected]/~dvdhrm/linux

for you to fetch changes up to e7b96070dd9e51a8b16340411a8643d8c7d5a001:

drm: mark drm_context support as legacy (2014-08-05 19:38:12 +0200)

----------------------------------------------------------------
David Herrmann (8):
drm: extract legacy ctxbitmap flushing
drm: drop redundant drm_file->is_master
drm: don't de-authenticate clients on master-close
drm: move module initialization to drm_stub.c
drm: merge drm_drv.c into drm_ioctl.c
drm: make minor->index available early
drm: make sysfs device always available for minors
drm: mark drm_context support as legacy

 drivers/gpu/drm/Makefile                   |   2 +-
 drivers/gpu/drm/drm_context.c              | 102 ++++---
 drivers/gpu/drm/drm_crtc.c                 |   2 +-
 drivers/gpu/drm/drm_drv.c                  | 471 -----------------------------
 drivers/gpu/drm/drm_fops.c                 |  77 +----
 drivers/gpu/drm/drm_ioctl.c                | 370 +++++++++++++++++++++-
 drivers/gpu/drm/drm_legacy.h               |  51 ++++
 drivers/gpu/drm/drm_lock.c                 |   3 +-
 drivers/gpu/drm/drm_stub.c                 | 238 +++++++++++----
 drivers/gpu/drm/drm_sysfs.c                |  90 +++---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c        |   2 +-
 drivers/staging/imx-drm/imx-drm-core.c     |   2 +-
 include/drm/drmP.h                         |  61 ++--
 14 files changed, 727 insertions(+), 748 deletions(-)
 delete mode 100644 drivers/gpu/drm/drm_drv.c
 create mode 100644 drivers/gpu/drm/drm_legacy.h
#1 lore raw
Quoted 6 lines · David Herrmann

Hi Dave

A bunch of cleanups that are all reviewed by Daniel and Alex. Has survived the compile/runtime test bots for some weeks now, so should all be fine. Nothing critical, though.

Quoted 9 lines

This series includes:
* hide ctxbitmap harder so newer drivers don't use it
* drop redundant drm_file->is_master
* move code out of drm_drv.c
* prepare sysfs/minor handling to be ready to drop drm_global_mutex

Feel free to rename drm_stub.c to drm_drv.c (acked by Alex and Daniel) after you applied these patches.

I pulled this, but your git url below is kinda wrong :-)

If I was Linus, you'd be getting yelled at, to fix your scripts!

Dave.

Quoted 44 lines

Thanks
David

The following changes since commit a91576d7916f6cce76d30303e60e1ac47cf4a76d:

drm/ttm: Pass GFP flags in order to avoid deadlock. (2014-08-05 10:54:19 +1000)

are available in the git repository at:

ssh://[email protected]/~dvdhrm/linux

for you to fetch changes up to e7b96070dd9e51a8b16340411a8643d8c7d5a001:

drm: mark drm_context support as legacy (2014-08-05 19:38:12 +0200)

----------------------------------------------------------------
David Herrmann (8):
drm: extract legacy ctxbitmap flushing
drm: drop redundant drm_file->is_master
drm: don't de-authenticate clients on master-close
drm: move module initialization to drm_stub.c
drm: merge drm_drv.c into drm_ioctl.c
drm: make minor->index available early
drm: make sysfs device always available for minors
drm: mark drm_context support as legacy

 drivers/gpu/drm/Makefile                   |   2 +-
 drivers/gpu/drm/drm_context.c              | 102 ++++---
 drivers/gpu/drm/drm_crtc.c                 |   2 +-
 drivers/gpu/drm/drm_drv.c                  | 471 -----------------------------
 drivers/gpu/drm/drm_fops.c                 |  77 +----
 drivers/gpu/drm/drm_ioctl.c                | 370 +++++++++++++++++++++-
 drivers/gpu/drm/drm_legacy.h               |  51 ++++
 drivers/gpu/drm/drm_lock.c                 |   3 +-
 drivers/gpu/drm/drm_stub.c                 | 238 +++++++++++----
 drivers/gpu/drm/drm_sysfs.c                |  90 +++---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |   4 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c        |   2 +-
 drivers/staging/imx-drm/imx-drm-core.c     |   2 +-
 include/drm/drmP.h                         |  61 ++--
 14 files changed, 727 insertions(+), 748 deletions(-)
 delete mode 100644 drivers/gpu/drm/drm_drv.c
 create mode 100644 drivers/gpu/drm/drm_legacy.h