dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/23] kill drm cruft with fire
@ 2011-10-27 11:07 Daniel Vetter
  2011-10-27 11:07 ` [PATCH 01/23] drm/sis: track obj->drm_fd relations in the driver Daniel Vetter
                   ` (23 more replies)
  0 siblings, 24 replies; 50+ messages in thread
From: Daniel Vetter @ 2011-10-27 11:07 UTC (permalink / raw)
  To: dri-devel; +Cc: Daniel Vetter

Hi all,

It's that time of the year again when the weather gets crappy, people
depressed and danvet wades through drm cruft. Not that any of this is
related in any way.

Actually I only wanted to port users of drm_mm to the new interfaces,
completing a work I've started a while ago. It lead to a littel detour.

Patches 1-10 kill drm_sman (hereby reducing the number of users of the old
drm_mm interface by one). I don't have either sis or via hw but given
- how lightly the dri1 removal went down
- you can't really ebay this hw anymore (at least not here, I've tried)
- and that no one really changes much in them anymore (last time was me a
  year ago, killing cruft)

I think the risk is worth it. Worst case I expect to some oops-decoding
because this doesn't change neither userspace nor hw facing code, only pure
kernel book-keeping.

Patches 11-17 clean the reclaim_buffers support by the drm core by moving
everything into driver specific preclose functions. I've noticed this
horrid stuff while writing the buffer tracking code for via/sis.

Patches 18-20 rip out the dma queue code, which was totally unused. The two
risky steps of that surgery are split out.

Patches 21-23 finish this series by killing a few random smaller things
I've noticed.

Entire pile tested on my i810, that's the last fully working dri1 setup I
still have. The reclaim_buffers rework actually improves things there.

Two patches have a potential userspace abi impact, one is i810 specific
(didn't break anything in testing), the other breaks libdrm that is older
than 10 years (by killing proc).

The drm fd release path looks now much less scary with this series (mostly
due to the reclaim_buffers rework), but there's still the context support
seemingly only used by via left. I might look into that as soon as I can
get these images of horribly slaugthered kittens out of my brain ...

Review, flames highly welcome.

Cheers, Daniel

Daniel Vetter (23):
  drm/sis: track obj->drm_fd relations in the driver
  drm/via: track obj->drm_fd relations in the driver
  drm/sman: kill owner tracking interface functions
  drm/sman: rip out owner tracking
  drm/via: track user->memblock mapping with idr
  drm/sis: track user->memblock mapping with idr
  drm/sman: kill user_hash_tab
  drm/via: use drm_mm instead of drm_sman
  drm/sis: use drm_mm instead of drm_sman
  drm: kill drm_sman

  drm/via: clean up reclaim_buffers
  drm/sis: clean up reclaim_buffers
  drm: kill reclaim_buffers_idlelocked functions
  drm/i810: cleanup reclaim_buffers
  drm: kill reclaim_buffers_locked
  drm/savage: clean up reclaim_buffers
  drm: kill reclaim_buffers callback

  drm: ditch strange DRIVER_DMA_QUEUE only error bail-out
  drm: kill dma queue support
  drm: unconditionally clean up dma buffers of closing clients

  drm: kill i915/i830 ids from drm_pciids.h
  drm: kill procfs support
  drm: kill a few unused remnants from drm_memory.c

 drivers/gpu/drm/Makefile              |    4 +-
 drivers/gpu/drm/drm_bufs.c            |   16 +--
 drivers/gpu/drm/drm_debugfs.c         |    1 -
 drivers/gpu/drm/drm_dma.c             |    5 -
 drivers/gpu/drm/drm_drv.c             |   19 --
 drivers/gpu/drm/drm_fops.c            |   63 +------
 drivers/gpu/drm/drm_info.c            |   36 ----
 drivers/gpu/drm/drm_lock.c            |    6 +-
 drivers/gpu/drm/drm_memory.c          |   19 --
 drivers/gpu/drm/drm_proc.c            |  221 ---------------------
 drivers/gpu/drm/drm_sman.c            |  350 ---------------------------------
 drivers/gpu/drm/drm_stub.c            |   25 +--
 drivers/gpu/drm/i810/i810_dma.c       |   17 +-
 drivers/gpu/drm/i810/i810_drv.c       |    3 +-
 drivers/gpu/drm/i810/i810_drv.h       |    6 +-
 drivers/gpu/drm/i915/i915_drv.c       |    1 -
 drivers/gpu/drm/mga/mga_drv.c         |    1 -
 drivers/gpu/drm/nouveau/nouveau_drv.c |    1 -
 drivers/gpu/drm/r128/r128_drv.c       |    1 -
 drivers/gpu/drm/radeon/radeon_drv.c   |    2 -
 drivers/gpu/drm/savage/savage_bci.c   |    7 +-
 drivers/gpu/drm/savage/savage_drv.c   |    2 +-
 drivers/gpu/drm/sis/sis_drv.c         |   36 +++-
 drivers/gpu/drm/sis/sis_drv.h         |    7 +-
 drivers/gpu/drm/sis/sis_mm.c          |  210 ++++++++++++--------
 drivers/gpu/drm/tdfx/tdfx_drv.c       |    1 -
 drivers/gpu/drm/via/via_drv.c         |   29 +++-
 drivers/gpu/drm/via/via_drv.h         |    7 +-
 drivers/gpu/drm/via/via_map.c         |   10 +-
 drivers/gpu/drm/via/via_mm.c          |  145 +++++++++-----
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c   |    1 -
 drivers/staging/gma500/psb_drv.c      |    1 -
 include/drm/drmP.h                    |   28 +---
 include/drm/drm_pciids.h              |   42 ----
 include/drm/drm_sman.h                |  176 -----------------
 include/drm/sis_drm.h                 |    4 +
 include/drm/via_drm.h                 |    4 +
 37 files changed, 337 insertions(+), 1170 deletions(-)
 delete mode 100644 drivers/gpu/drm/drm_proc.c
 delete mode 100644 drivers/gpu/drm/drm_sman.c
 delete mode 100644 include/drm/drm_sman.h

-- 
1.7.7.1

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2011-12-13 18:30 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 11:07 [PATCH 00/23] kill drm cruft with fire Daniel Vetter
2011-10-27 11:07 ` [PATCH 01/23] drm/sis: track obj->drm_fd relations in the driver Daniel Vetter
2011-10-27 11:07 ` [PATCH 02/23] drm/via: " Daniel Vetter
2011-12-07 16:21   ` James Simmons
2011-10-27 11:07 ` [PATCH 03/23] drm/sman: kill owner tracking interface functions Daniel Vetter
2011-12-07 16:21   ` James Simmons
2011-10-27 11:07 ` [PATCH 04/23] drm/sman: rip out owner tracking Daniel Vetter
2011-12-07 16:22   ` James Simmons
2011-10-27 11:07 ` [PATCH 05/23] drm/via: track user->memblock mapping with idr Daniel Vetter
2011-12-07 16:22   ` James Simmons
2011-10-27 11:07 ` [PATCH 06/23] drm/sis: " Daniel Vetter
2011-12-07 16:22   ` James Simmons
2011-10-27 11:07 ` [PATCH 07/23] drm/sman: kill user_hash_tab Daniel Vetter
2011-12-07 16:22   ` James Simmons
2011-10-27 11:07 ` [PATCH 08/23] drm/via: use drm_mm instead of drm_sman Daniel Vetter
2011-10-27 21:00   ` Daniel Vetter
2011-12-07 16:28     ` James Simmons
2011-12-12 22:51       ` Daniel Vetter
2011-12-07 16:23   ` James Simmons
2011-10-27 11:07 ` [PATCH 09/23] drm/sis: " Daniel Vetter
2011-10-28 22:47   ` Tormod Volden
2011-10-28 23:05     ` [PATCH] drm/sis: Fix building with CONFIG_FB_SIS/CONFIG_FB_SIS_MODULE Tormod Volden
2011-10-29  0:25     ` [PATCH 09/23] drm/sis: use drm_mm instead of drm_sman Daniel Vetter
2011-10-29  6:52       ` Tormod Volden
2011-10-29  9:44         ` Daniel Vetter
2011-12-07 16:23   ` James Simmons
2011-10-27 11:07 ` [PATCH 10/23] drm: kill drm_sman Daniel Vetter
2011-12-07 16:24   ` James Simmons
2011-10-27 11:07 ` [PATCH 11/23] drm/via: clean up reclaim_buffers Daniel Vetter
2011-12-08  0:26   ` James Simmons
2011-10-27 11:07 ` [PATCH 12/23] drm/sis: " Daniel Vetter
2011-10-27 11:07 ` [PATCH 13/23] drm: kill reclaim_buffers_idlelocked functions Daniel Vetter
2011-10-27 11:07 ` [PATCH 14/23] drm/i810: cleanup reclaim_buffers Daniel Vetter
2011-10-27 11:07 ` [PATCH 15/23] drm: kill reclaim_buffers_locked Daniel Vetter
2011-10-27 11:07 ` [PATCH 16/23] drm/savage: clean up reclaim_buffers Daniel Vetter
2011-11-06 10:18   ` Tormod Volden
2011-10-27 11:07 ` [PATCH 17/23] drm: kill reclaim_buffers callback Daniel Vetter
2011-10-27 11:07 ` [PATCH 18/23] drm: ditch strange DRIVER_DMA_QUEUE only error bail-out Daniel Vetter
2011-10-27 11:07 ` [PATCH 19/23] drm: kill dma queue support Daniel Vetter
2011-10-27 11:07 ` [PATCH 20/23] drm: unconditionally clean up dma buffers of closing clients Daniel Vetter
2011-10-27 11:07 ` [PATCH 21/23] drm: kill i915/i830 ids from drm_pciids.h Daniel Vetter
2011-10-27 11:07 ` [PATCH 22/23] drm: kill procfs support Daniel Vetter
2011-10-27 11:07 ` [PATCH 23/23] drm: kill a few unused remnants from drm_memory.c Daniel Vetter
2011-11-11 15:33 ` [PATCH 00/23] kill drm cruft with fire James Simmons
2011-11-11 17:07   ` Daniel Vetter
2011-11-14 16:10     ` James Simmons
2011-11-16 16:17       ` Daniel Vetter
2011-12-05 10:14         ` Daniel Vetter
2011-12-07 14:19           ` James Simmons
2011-12-13 18:32             ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox