1. 31 1月, 2013 10 次提交
    • B
      drm/i915: remove intel_gtt structure · a54c0c27
      Ben Widawsky 提交于
      With the probe call in our dispatch table, we can now cut away the
      last three remaining members in the intel_gtt shared struct and so
      remove it completely.
      
      v2: Rebased on top of Daniel's series
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      [danvet: bikeshed commit message a bit.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a54c0c27
    • B
      drm/i915: Add probe and remove to the gtt ops · baa09f5f
      Ben Widawsky 提交于
      The idea, and much of the code came originally from:
      
      commit 0712f0249c3148d8cf42a3703403c278590d4de5
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Fri Jan 18 17:23:16 2013 -0800
      
          drm/i915: Create a vtable for i915 gtt
      
      Daniel didn't like the color of that patch series, and so I asked him to
      start something which appealed to his sense of color. The preceding
      patches are those, and now this is going on top of that.
      
      [extracted from the original commit message]
      
      One immediately obvious thing to implement is our gmch probing. The init
      function was getting massively bloated. Fundamentally, all that's needed
      from GMCH probing is the GTT size, and the stolen size. It makes design
      sense to put the mappable calculation in there as well, but the code
      turns out a bit nicer without it (IMO)
      
      The intel_gtt bridge thing is still here, but the subsequent patches
      will finish ripping that out.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      [danvet: Bikeshedded one comment (GMADR is just the PCI aperture, we
      use it for other things than just accessing tiled surfaces through a
      linear view) and cut the newly added long lines a bit. Also one
      checkpatch error.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      baa09f5f
    • D
      drm/i915: extract hw ppgtt setup/cleanup code · 3440d265
      Daniel Vetter 提交于
      At the moment only cosmetics, but being able to initialize/cleanup
      arbitrary ppgtt address spaces paves the way to have more than one of
      them ... Just in case we ever get around to implementing real
      per-process address spaces. Note that in that case another vfunc for
      ppgtt would be beneficial though. But that can wait until the code
      grows a second place which initializes ppgtts.
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      3440d265
    • D
      drm/i915: pte_encode is gen6+ · 960e3e42
      Daniel Vetter 提交于
      All the other gen6+ hw code has the gen6_ prefix, so be consistent
      about it.
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      960e3e42
    • D
      drm/i915: vfuncs for ppgtt · def886c3
      Daniel Vetter 提交于
      Like for the global gtt we want a notch more flexibility here. Only
      big change (besides a few tiny function parameter adjustments) was to
      move gen6_ppgtt_insert_entries up (and remove _sg_ from its name, we
      only have one kind of insert_entries since the last gtt cleanup).
      
      We could also extract the platform ppgtt setup/teardown code a bit
      better, but I don't care that much.
      
      With this we have the hw details of pte writing nicely hidden away
      behind a bit of abstraction. Which should pave the way for
      different/multiple ppgtts (e.g. what we need for real ppgtt support).
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      def886c3
    • D
      drm/i915: vfuncs for gtt_clear_range/insert_entries · 7faf1ab2
      Daniel Vetter 提交于
      We have a few too many differences here, so finally take the prepared
      abstraction and run with it. A few smaller changes are required to get
      things into shape:
      
      - move i915_cache_level up since we need it in the gt funcs
      - split up i915_ggtt_clear_range and move the two functions down to
        where the relevant insert_entries functions are
      - adjustments to a few function parameter lists
      
      Now we have 2 functions which deal with the gen6+ global gtt
      (gen6_ggtt_ prefix) and 2 functions which deal with the legacy gtt
      code in the intel-gtt.c fake agp driver (i915_ggtt_ prefix).
      
      Init is still a bit a mess, but honestly I don't care about that.
      
      One thing I've thought about while deciding on the exact interfaces is
      a flag parameter for ->clear_range: We could use that to decide
      between writing invalid pte entries or scratch pte entries. In case we
      ever get around to fixing all our bugs which currently prevent us from
      filling the gtt with empty ptes for the truly unused ranges ...
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      [bwidawsk: Moved functions to the gtt struct]
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      7faf1ab2
    • B
      drm/i915: Error state should print /sys/kernel/debug · 2f86f191
      Ben Widawsky 提交于
      /sys/kernel/debug has more or less been the standard location of debugfs
      for several years now. Other parts of DRM already use this location, so
      we should as well.
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: NCarl Worth <cworth@cworth.org>
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      [danvet: split up long line.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2f86f191
    • D
      drm/i915: move DP save/restore into i915_ums.c · a65e827d
      Daniel Vetter 提交于
      Note that this slightly changes the order, but we only move it within
      the block of registers that restore encoder state. Specifically LVDS
      is now restored after DP, whereas previously it was done before.
      
      Legacy vga is still restored afterwards, which seems to be the
      important thing (if there's anything important in this restore
      ordering at all).
      Reviewed-by: NImre Deak <imre.deak@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a65e827d
    • D
      drm/i915: dont save/restore VGA state for kms · 44cec740
      Daniel Vetter 提交于
      The only thing we really care about that it is off. To do so, reuse
      the recently created i915_redisable_vga function, which is already
      used to put obnoxious firmware into check on lid reopening.
      Reviewed-by: NImre Deak <imre.deak@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      44cec740
    • D
      drm/i915: extract ums suspend/resume into i915_ums.c · d8157a36
      Daniel Vetter 提交于
      Similarly to how i915_dma.c is shaping up to be the dungeon hole for
      all things supporting dri1, create a new one to hide all the crazy
      things which are only really useful for ums support. Biggest part is
      the register suspend/resume support.
      
      Unfortunately a lot of it is still intermingled with bits and pieces
      we might still need, so needs more analysis and needs to stay in
      i915_suspend.c for now.
      Reviewed-by: NImre Deak <imre.deak@intel.com>
      
      v2: s/modeset_reg/display_reg/ as suggested by Imre, to avoid
      confusion between the kernel modeset code and display save/restore to
      support ums.
      
      v3: Fixup alphabetical order in the Makefile, spotted by Chris Wilson.
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      d8157a36
  2. 29 1月, 2013 1 次提交
  3. 28 1月, 2013 3 次提交
  4. 27 1月, 2013 8 次提交
  5. 25 1月, 2013 18 次提交