kernel-ark/include
Deepak Saxena fd195c49fb [PATCH] arm: allow for arch-specific IOREMAP_MAX_ORDER
Version 6 of the ARM architecture introduces the concept of 16MB pages
(supersections) and 36-bit (40-bit actually, but nobody uses this) physical
addresses.  36-bit addressed memory and I/O and ARMv6 can only be mapped
using supersections and the requirement on these is that both virtual and
physical addresses be 16MB aligned.  In trying to add support for ioremap()
of 36-bit I/O, we run into the issue that get_vm_area() allows for a
maximum of 512K alignment via the IOREMAP_MAX_ORDER constant.  To work
around this, we can:

- Allocate a larger VM area than needed (size + (1ul << IOREMAP_MAX_ORDER))
  and then align the pointer ourselves, but this ends up with 512K of
  wasted VM per ioremap().

- Provide a new __get_vm_area_aligned() API and make __get_vm_area() sit
  on top of this. I did this and it works but I don't like the idea
  adding another VM API just for this one case.

- My preferred solution which is to allow the architecture to override
  the IOREMAP_MAX_ORDER constant with it's own version.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05 00:05:46 -07:00
..
acpi /home/lenb/src/to-linus branch 'acpi-2.6.12' 2005-07-29 23:31:17 -04:00
asm-alpha [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-arm [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-arm26 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-cris [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-frv [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-generic [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-h8300 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-i386 [PATCH] mm: correct _PAGE_FILE comment 2005-09-05 00:05:45 -07:00
asm-ia64 [IA64] Low byte of current->personality is not a bitmask. 2005-08-30 14:59:24 -07:00
asm-m32r [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-m68k [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-m68knommu [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-mips [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-parisc [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-powerpc [PATCH] Move all the very similar files to asm-powerpc 2005-08-30 13:32:06 +10:00
asm-ppc Merge HEAD from master.kernel.org:/pub/scm/linux/kernel/git/paulus/ppc64-2.6 2005-08-29 21:44:33 -07:00
asm-ppc64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-s390 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sh [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sh64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sparc [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-sparc64 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-um [PATCH] mm: correct _PAGE_FILE comment 2005-09-05 00:05:45 -07:00
asm-v850 [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
asm-x86_64 [PATCH] mm: correct _PAGE_FILE comment 2005-09-05 00:05:45 -07:00
asm-xtensa [NET]: Introduce SO_{SND,RCV}BUFFORCE socket options 2005-08-29 15:31:35 -07:00
linux [PATCH] arm: allow for arch-specific IOREMAP_MAX_ORDER 2005-09-05 00:05:46 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
media [PATCH] V4L: Miscellaneous fixes 2005-08-01 19:13:59 -07:00
mtd [MTD] NAND: Honour autoplacement schemes supplied by the caller 2005-05-23 13:20:45 +02:00
net /spare/repo/netdev-2.6 branch 'master' 2005-09-01 18:02:01 -04:00
pcmcia [PATCH] pcmcia: fix pcmcia-cs compilation 2005-07-12 16:00:59 -07:00
rdma [PATCH] IB: move include files to include/rdma 2005-08-26 20:37:38 -07:00
rxrpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi [SCSI] fix target scanning oops with fc transport class 2005-08-08 17:14:55 -05:00
sound [ALSA] version 1.0.10rc1 2005-08-30 08:48:35 +02:00
video [PATCH] Clean-up and bug fix for tdfxfb framebuffer size detection 2005-05-01 08:59:25 -07:00