public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 00/12] clear up drm/agp initialization madness
@ 2012-06-07 13:55 Daniel Vetter
  2012-06-07 13:55 ` [PATCH 01/12] drm: move drm_pci_agp_init into driver load functions Daniel Vetter
                   ` (12 more replies)
  0 siblings, 13 replies; 23+ messages in thread
From: Daniel Vetter @ 2012-06-07 13:55 UTC (permalink / raw)
  To: Intel Graphics Development, DRI Development; +Cc: Daniel Vetter

Hi all,

With these patches there's no more /dev/agpgart fake agp interface for drm/i915,
at least not for snb and later.

The first 3 patches rework the drm core to move agp initialization into drivers.
A nice bonus is that these remove the mid-layer stench quite a bit from drm ...

The later patches from drm/i915 and the intel agp/gtt stuff so that drm/i915 can
directly initialize the gtt support code, without the useless fake agp setup
(which at least kms/gem doesn't need at all).

Note that thanks to some horrible piece of userspace code we can't disable drm
agp support for gen3. That piece of userspace code uses the legacy drm addmap
stuff to get at it's buffers, and that requires the fake agp driver to work.

Also, we can't disable the fake agp driver on other generations before snb,
because by the time we know that we're running with kms enabled and don't
actually need it it's too late.

Obviously this is only the first part, furture patches will move the gen6+ gtt
code into drm/i915 so that we can rip out all the duplication of chipset gen
information in intel-gtt.c, too. And prepare for some neat new features ;-)

Outside of drm/i915 stuff only tested on my i815 - for some odd reason my only
agp machine left dies on 3.5-rc1, so couldn't yet beat on it with a few other
oddball drivers. But imho the first 3 patches are fairly safe (compared to some
other drm dragon slaughtering I've attempted).

Comments, flames and reviews highly welcome. If possible I'd like to get the 3
drm patches at the beginning in early for 3.6 so that we can decently test it
(and have some time to pile more stuff on top of this in drm/i915 land).

Yours, Daniel

Daniel Vetter (12):
  drm: move drm_pci_agp_init into driver load functions
  drm: kill the REQUIRE_AGP driver flag
  drm: kill USE_AGP driver flag
  agp/intel-gtt: remove dead code
  drm/i915: stop using dev->agp->base
  agp/intel-gtt: don't require the agp bridge on setup
  drm/i915: only enable drm agp support when required
  drm/i915 + agp/intel-gtt: prep work for direct setup
  drm/i915: don't check intel_agp_enabled any more
  agp/intel-gtt: move gart base addres setup
  drm/i915: call intel_enable_gtt
  agp/intel-agp: remove snb+ host bridge pciids

 drivers/char/agp/intel-agp.c            |   16 +------
 drivers/char/agp/intel-agp.h            |    3 -
 drivers/char/agp/intel-gtt.c            |   73 ++++++++++++++++++++-----------
 drivers/gpu/drm/drm_pci.c               |    8 +---
 drivers/gpu/drm/drm_stub.c              |    8 ---
 drivers/gpu/drm/i810/i810_dma.c         |   11 +++++
 drivers/gpu/drm/i810/i810_drv.c         |    2 +-
 drivers/gpu/drm/i915/i915_dma.c         |   50 +++++++++++++++++----
 drivers/gpu/drm/i915/i915_drv.c         |    8 +---
 drivers/gpu/drm/i915/i915_drv.h         |    1 +
 drivers/gpu/drm/i915/i915_gem.c         |    5 ++-
 drivers/gpu/drm/i915/i915_gem_debug.c   |    3 +-
 drivers/gpu/drm/i915/intel_display.c    |    2 +-
 drivers/gpu/drm/i915/intel_fb.c         |    4 +-
 drivers/gpu/drm/i915/intel_ringbuffer.c |    6 ++-
 drivers/gpu/drm/mga/mga_dma.c           |    4 ++
 drivers/gpu/drm/mga/mga_drv.c           |    2 +-
 drivers/gpu/drm/nouveau/nouveau_drv.c   |    2 +-
 drivers/gpu/drm/nouveau/nouveau_state.c |    4 ++
 drivers/gpu/drm/r128/r128_drv.c         |    8 +++-
 drivers/gpu/drm/radeon/radeon_cp.c      |    4 ++
 drivers/gpu/drm/radeon/radeon_drv.c     |    4 +-
 drivers/gpu/drm/radeon/radeon_kms.c     |    4 ++
 drivers/gpu/drm/savage/savage_bci.c     |    5 ++
 drivers/gpu/drm/savage/savage_drv.c     |    2 +-
 drivers/gpu/drm/sis/sis_drv.c           |    7 +++-
 drivers/gpu/drm/via/via_drv.c           |    2 +-
 drivers/gpu/drm/via/via_map.c           |    4 ++
 include/drm/drmP.h                      |   12 +----
 include/drm/intel-gtt.h                 |    8 +++
 30 files changed, 174 insertions(+), 98 deletions(-)

-- 
1.7.7.6

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

end of thread, other threads:[~2012-06-12 20:20 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 13:55 [PATCH 00/12] clear up drm/agp initialization madness Daniel Vetter
2012-06-07 13:55 ` [PATCH 01/12] drm: move drm_pci_agp_init into driver load functions Daniel Vetter
2012-06-08  9:16   ` Jani Nikula
2012-06-08 15:12     ` Daniel Vetter
2012-06-07 13:55 ` [PATCH 02/12] drm: kill the REQUIRE_AGP driver flag Daniel Vetter
2012-06-07 13:55 ` [PATCH 03/12] drm: kill USE_AGP " Daniel Vetter
2012-06-07 13:55 ` [PATCH 04/12] agp/intel-gtt: remove dead code Daniel Vetter
2012-06-07 13:55 ` [PATCH 05/12] drm/i915: stop using dev->agp->base Daniel Vetter
2012-06-07 13:55 ` [PATCH 06/12] agp/intel-gtt: don't require the agp bridge on setup Daniel Vetter
2012-06-07 13:55 ` [PATCH 07/12] drm/i915: only enable drm agp support when required Daniel Vetter
2012-06-12 11:58   ` [Intel-gfx] " Jani Nikula
2012-06-12 11:19     ` [PATCH] " Daniel Vetter
2012-06-12 12:21     ` [PATCH 07/12] " Daniel Vetter
2012-06-07 13:56 ` [PATCH 08/12] drm/i915 + agp/intel-gtt: prep work for direct setup Daniel Vetter
2012-06-08 10:09   ` Jani Nikula
2012-06-08 12:39     ` Daniel Vetter
2012-06-07 13:56 ` [PATCH 09/12] drm/i915: don't check intel_agp_enabled any more Daniel Vetter
2012-06-12 11:24   ` [PATCH] " Daniel Vetter
2012-06-07 13:56 ` [PATCH 10/12] agp/intel-gtt: move gart base addres setup Daniel Vetter
2012-06-07 13:56 ` [PATCH 11/12] drm/i915: call intel_enable_gtt Daniel Vetter
2012-06-07 13:56 ` [PATCH 12/12] agp/intel-agp: remove snb+ host bridge pciids Daniel Vetter
2012-06-12 12:46 ` [PATCH 00/12] clear up drm/agp initialization madness Jani Nikula
2012-06-12 20:22   ` Daniel Vetter

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