android_kernel_motorola_sm6225/lib
Jes Sorensen f14f75b811 [PATCH] ia64 uncached alloc
This patch contains the ia64 uncached page allocator and the generic
allocator (genalloc).  The uncached allocator was formerly part of the SN2
mspec driver but there are several other users of it so it has been split
off from the driver.

The generic allocator can be used by device driver to manage special memory
etc.  The generic allocator is based on the allocator from the sym53c8xx_2
driver.

Various users on ia64 needs uncached memory.  The SGI SN architecture requires
it for inter-partition communication between partitions within a large NUMA
cluster.  The specific user for this is the XPC code.  Another application is
large MPI style applications which use it for synchronization, on SN this can
be done using special 'fetchop' operations but it also benefits non SN
hardware which may use regular uncached memory for this purpose.  Performance
of doing this through uncached vs cached memory is pretty substantial.  This
is handled by the mspec driver which I will push out in a seperate patch.

Rather than creating a specific allocator for just uncached memory I came up
with genalloc which is a generic purpose allocator that can be used by device
drivers and other subsystems as they please.  For instance to handle onboard
device memory.  It was derived from the sym53c7xx_2 driver's allocator which
is also an example of a potential user (I am refraining from modifying sym2
right now as it seems to have been under fairly heavy development recently).

On ia64 memory has various properties within a granule, ie.  it isn't safe to
access memory as uncached within the same granule as currently has memory
accessed in cached mode.  The regular system therefore doesn't utilize memory
in the lower granules which is mixed in with device PAL code etc.  The
uncached driver walks the EFI memmap and pulls out the spill uncached pages
and sticks them into the uncached pool.  Only after these chunks have been
utilized, will it start converting regular cached memory into uncached memory.
Hence the reason for the EFI related code additions.

Signed-off-by: Jes Sorensen <jes@wildopensource.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 18:46:18 -07:00
..
reed_solomon Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zlib_deflate Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
zlib_inflate Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bust_spinlocks.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cmdline.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc-ccitt.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc32defs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ctype.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dec_and_lock.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
div64.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dump_stack.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
errno.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
extable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
find_next_bit.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gen_crc32table.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
genalloc.c [PATCH] ia64 uncached alloc 2005-06-21 18:46:18 -07:00
halfmd4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
idr.c [PATCH] coverity: idr_get_new_above_int() overrun fix 2005-06-21 18:46:12 -07:00
inflate.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
int_sqrt.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iomap.c [PATCH] add Big Endian variants of ioread/iowrite 2005-04-16 15:25:54 -07:00
Kconfig [PATCH] ia64 uncached alloc 2005-06-21 18:46:18 -07:00
Kconfig.debug [PATCH] uml: split CONFIG_FRAME_POINTER from DEBUG_INFO 2005-05-28 16:46:13 -07:00
kernel_lock.c [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
klist.c [PATCH] Don't reference NULL klist pointer in klist_remove(). 2005-06-20 15:15:19 -07:00
kobject.c [PATCH] Make kobject's name be const char * 2005-06-20 15:15:00 -07:00
kobject_uevent.c [PATCH] Make kobject's name be const char * 2005-06-20 15:15:00 -07:00
kref.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
libcrc32c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] ia64 uncached alloc 2005-06-21 18:46:18 -07:00
parser.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
prio_tree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radix-tree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rbtree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rwsem-spinlock.c [PATCH] use smp_mb/wmb/rmb where possible 2005-05-01 08:58:47 -07:00
rwsem.c [PATCH] use smp_mb/wmb/rmb where possible 2005-05-01 08:58:47 -07:00
sha1.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smp_processor_id.c [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
sort.c [PATCH] fix lib/sort regression test 2005-05-05 16:36:50 -07:00
string.c [PATCH] documentation for strncpy() 2005-05-05 16:36:50 -07:00
vsprintf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00