linux/drivers/gpu/drm/i915
Peter Zijlstra 3e4d3af501 mm: stack based kmap_atomic()
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: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Chris 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-26 16:52:08 -07:00
..
dvo_ch7xxx.c drm/i915: Remove dead KMS encoder save/restore code. 2010-04-12 09:23:30 -07:00
dvo_ch7017.c drm/i915: Remove dead KMS encoder save/restore code. 2010-04-12 09:23:30 -07:00
dvo_ivch.c drm/i915: Remove dead KMS encoder save/restore code. 2010-04-12 09:23:30 -07:00
dvo_sil164.c drm/i915: Remove dead KMS encoder save/restore code. 2010-04-12 09:23:30 -07:00
dvo_tfp410.c drm/i915: Use RSEN instead of HTPLG for tfp410 monitor detection. 2010-06-04 16:39:59 -07:00
dvo.h drm/i915: Subclass intel_encoder. 2010-08-09 11:24:28 -07:00
i915_debugfs.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
i915_dma.c drm/i915: Prevent module unload to avoid random memory corruption 2010-10-08 14:11:00 +01:00
i915_drv.c Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl 2010-10-22 10:52:56 -07:00
i915_drv.h drm/i915: Include a generation number in the device info 2010-09-07 11:13:00 +01:00
i915_gem_debug.c drm/i915: drop pointer to drm_gem_object 2010-04-20 13:23:14 +10:00
i915_gem_evict.c drm/i915: Fix refleak during eviction. 2010-10-01 10:03:16 +01:00
i915_gem_tiling.c drm: Use ENOENT consistently for the error return for an unmatched handle. 2010-08-10 10:46:55 +10:00
i915_gem.c mm: stack based kmap_atomic() 2010-10-26 16:52:08 -07:00
i915_ioc32.c drm: convert drm_ioctl to unlocked_ioctl 2009-12-18 11:22:31 +10:00
i915_irq.c mm: stack based kmap_atomic() 2010-10-26 16:52:08 -07:00
i915_mem.c drm: Remove memory debugging infrastructure. 2009-06-18 13:00:33 -07:00
i915_opregion.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel 2010-08-22 11:03:27 -07:00
i915_reg.h drm/i915: don't enable self-refresh on Ironlake 2010-09-10 15:11:43 +01:00
i915_suspend.c drm/i915: Fix Sandybridge fence registers 2010-09-17 08:18:30 +01:00
i915_trace_points.c drm/i915: Add tracepoints 2009-09-23 01:05:21 +01:00
i915_trace.h drm/i915: add tracepoints for flip requests & completions 2010-07-02 14:04:14 +10:00
intel_bios.c drm/i915: Honor sync polarity from VBT panel timing descriptors 2010-06-01 10:19:37 -07:00
intel_bios.h drm/i915: parse eDP panel color depth from VBT block 2010-01-15 14:12:47 -08:00
intel_crt.c Merge remote branch 'linus' into drm-intel-fixes 2010-09-21 09:14:55 +01:00
intel_display.c drm/i915: Use pipe state to tell when pipe is off 2010-10-03 10:23:26 +01:00
intel_dp.c drm/i915: vblank status not valid while training display port 2010-10-03 10:22:25 +01:00
intel_drv.h drm/i915: Use pipe state to tell when pipe is off 2010-10-03 10:23:26 +01:00
intel_dvo.c drm: Use a nondestructive mode for output detect when polling (v2) 2010-09-14 20:38:48 +10:00
intel_fb.c drm: don't drop handle reference on unload 2010-10-07 14:01:17 +10:00
intel_hdmi.c drm: Use a nondestructive mode for output detect when polling (v2) 2010-09-14 20:38:48 +10:00
intel_i2c.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
intel_lvds.c drm: Use a nondestructive mode for output detect when polling (v2) 2010-09-14 20:38:48 +10:00
intel_modes.c Merge remote branch 'anholt/drm-intel-next' of /home/airlied/kernel/drm-next into drm-core-next 2010-04-20 13:11:45 +10:00
intel_overlay.c mm: stack based kmap_atomic() 2010-10-26 16:52:08 -07:00
intel_panel.c drm/i915: Enable aspect/centering panel fitting for Ironlake. 2010-08-09 11:24:34 -07:00
intel_ringbuffer.c drm/i915: Enable MI_FLUSH on Sandybridge 2010-09-07 11:16:44 +01:00
intel_ringbuffer.h drm/i915: Use a common seqno for all rings. 2010-08-09 11:24:32 -07:00
intel_sdvo_regs.h drm/i915/sdvo: Add missing TV filters 2010-08-09 11:24:29 -07:00
intel_sdvo.c drm/i915/sdvo: Handle unsupported GET_SUPPORTED_ENHANCEMENTS gracefully 2010-09-23 17:13:51 +01:00
intel_tv.c drm: Use a nondestructive mode for output detect when polling (v2) 2010-09-14 20:38:48 +10:00
Makefile drm/i915: Enable aspect/centering panel fitting for Ironlake. 2010-08-09 11:24:34 -07:00