[Intel-gfx] [PATCH 00/17] gtt rework, part2 : pte handling

Daniel Vetter daniel.vetter at ffwll.ch
Tue Sep 14 00:34:57 CEST 2010


Hi all,

The next part of my intel gtt rework. This creates a new abstraction
for the pte handling, resulting in:
- A generic fake agp driver for all chipsets (save the poor bastard i81x).
- Less indirection hell for the pte writing (a simpel write_entry instead
  of iowrite32(mask_memory(type_to_mask))).

Of course there's still a bit left to clean up in intel-gtt.c (Chris Wilson
is busy adding things to my todo list). But I think this is a nice cut
point for the current release cycle. The next one can then concern itself
with better integration with gem and a few other loose ends on a hopefully
well-tested basis.

As usual, tested on i855 (with -fixes merged in), i945 and my ilk. Comments
highly welcome. Altough I refuse to accept responsability for headaches
from reading the (old) code in intel-gtt.c ;)

Yours, Daniel

Daniel Vetter (17):
  intel-gtt: initialize our own scratch page
  intel-gtt: introduce pte write function for i8xx/i915/i945
  intel-gtt: introduce pte write function for g33/i965/gm45
  intel-gtt: introduce pte write function for gen6
  intel-gtt: drop agp scratch page support stuff
  agp: kill agp_(map|unmap)_page
  intel-gtt: generic (insert|remove)_entries for i830
  intel-gtt: generic (insert|remove)_entries for i915
  intel-gtt: generic (insert|remove)_entries for g33/i965
  intel-gtt: generic (insert|remove)_entries for sandybridge
  intel-gtt: kill mask_memory functions
  intel-gtt: move chipset flush to the gtt driver struct
  intel-gtt: consolidate fake_agp driver structs
  agp: kill agp_(unmap|map)_memory
  intel-gtt: clean up gtt size reporting
  intel-gtt: store the dma mask size in intel_gtt_driver
  intel-gtt add a cleanup function for chipset specific stuff

 drivers/char/agp/agp.h          |    5 -
 drivers/char/agp/backend.c      |   22 +--
 drivers/char/agp/generic.c      |    8 -
 drivers/char/agp/intel-gtt.c    |  751 +++++++++++++++-----------------------
 drivers/gpu/drm/i915/i915_dma.c |    1 -
 include/drm/intel-gtt.h         |    2 -
 6 files changed, 298 insertions(+), 491 deletions(-)




More information about the Intel-gfx mailing list