1. 29 10月, 2010 1 次提交
    • C
      drm/i915: Only enforce fence limits inside the GTT. · a00b10c3
      Chris Wilson 提交于
      So long as we adhere to the fence registers rules for alignment and no
      overlaps (including with unfenced accesses to linear memory) and account
      for the tiled access in our size allocation, we do not have to allocate
      the full fenced region for the object. This allows us to fight the bloat
      tiling imposed on pre-i965 chipsets and frees up RAM for real use. [Inside
      the GTT we still suffer the additional alignment constraints, so it doesn't
      magic allow us to render larger scenes without stalls -- we need the
      expanded GTT and fence pipelining to overcome those...]
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      a00b10c3
  2. 28 10月, 2010 4 次提交
  3. 27 10月, 2010 1 次提交
    • P
      mm: stack based kmap_atomic() · 3e4d3af5
      Peter Zijlstra 提交于
      Keep the current interface but ignore the KM_type and use a stack based
      approach.
      
      The advantage is that we get rid of crappy code like:
      
      	#define __KM_PTE			\
      		(in_nmi() ? KM_NMI_PTE : 	\
      		 in_irq() ? KM_IRQ_PTE :	\
      		 KM_PTE0)
      
      and in general can stop worrying about what context we're in and what kmap
      slots might be appropriate for that.
      
      The downside is that FRV kmap_atomic() gets more expensive.
      
      For now we use a CPP trick suggested by Andrew:
      
        #define kmap_atomic(page, args...) __kmap_atomic(page)
      
      to avoid having to touch all kmap_atomic() users in a single patch.
      
      [ not compiled on:
        - mn10300: the arch doesn't actually build with highmem to begin with ]
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix up drivers/gpu/drm/i915/intel_overlay.c]
      Acked-by: NRik van Riel <riel@redhat.com>
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NChris Metcalf <cmetcalf@tilera.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Miller <davem@davemloft.net>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Dave Airlie <airlied@linux.ie>
      Cc: Li Zefan <lizf@cn.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3e4d3af5
  4. 21 9月, 2010 1 次提交
  5. 13 9月, 2010 2 次提交
    • C
      drm/i915: Fix an overlay regression from 7e7d76c3 · f7abfe8b
      Chris Wilson 提交于
      When separating out the prepare/commit into its own separate functions
      we overlooked that the intel_crtc->dpms_mode was being used elsewhere to
      check on the actual status of the pipe.
      
      Track that bit of logic separately from the actual dpms mode, so there
      is no confusion should we be able to handle multiple dpms modes, nor
      any semantic conflict between prepare/commit and dpms.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      f7abfe8b
    • C
      drm/i915/lvds: Ensure panel is unlocked for Ironlake or the panel fitter · e9e331a8
      Chris Wilson 提交于
      Commit 77d07fd9 introduced a regression
      where by not waiting for the panel to be turned off, left the panel and
      PLL registers locked across the modeset. Thus the panel remaining blank.
      
      As pointed out by Daniel Vetter, when testing LVDS it helps to open the
      laptop and look at the actual panel you are purporting to test.
      
      A second issue with the patch was that in order to modify the panel
      fitter before gen5, the pipe and the panel must have be completely
      powered down. So we wait.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      e9e331a8
  6. 12 9月, 2010 1 次提交
  7. 08 9月, 2010 23 次提交
  8. 07 9月, 2010 1 次提交
  9. 10 8月, 2010 2 次提交
  10. 05 8月, 2010 1 次提交
  11. 02 8月, 2010 2 次提交
  12. 27 5月, 2010 1 次提交