1 Aug 2009 01:20
[PATCH] Moorestown RAR Handler driver, MRST 2.6.31-rc3
Ossama Othman <ossama.othman <at> intel.com>
2009-07-31 23:20:19 GMT
2009-07-31 23:20:19 GMT
This driver implements an allocator interface for Moorestown restricted access regions (RAR), which are regions of RAM that are inaccessible by the CPU when locked down. It is implemented in the kernel space since both user space applications and kernel drivers will be allocating buffers in Moorestown RARs. The canonical kernel allocators (slab, etc) are not used since they are too tightly coupled with paging. The CPU will not be accessing the memory, meaning an allocation mechanism that does not place metadata in the RAR memory area in question was needed. The simple allocator included in this patch satisfies my needs. However, I was recently made aware of the existence of the lib/genalloc.c allocator. It appears promising in terms of the RAR handler driver needs, so I may use it instead. Work is still ongoing with this driver so I appreciate any constructive feedback regarding the implementation, particularly with respect to the allocator (or alternatives) since it is a critical part of the functionality. Thanks!! Note this driver depends on the (previously submitted) Moorestown rar_register driver (RAR_REGISTER). Signed-off-by: Ossama Othman <ossama.othman <at> intel.com> --- drivers/misc/Kconfig | 12 + drivers/misc/Makefile | 2 + drivers/misc/memrar_allocator.c | 337 ++++++++++++++++++++ drivers/misc/memrar_allocator.h | 162 ++++++++++ drivers/misc/memrar_handler.c | 669 +++++++++++++++++++++++++++++++++++++++(Continue reading)
RSS Feed