]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00240988: gpu: allocate contiguous memory from CMA for 3.10 kernel
authorShawn Guo <shawn.guo@freescale.com>
Fri, 26 Jul 2013 08:49:39 +0000 (16:49 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:00 +0000 (09:54 +0800)
commit49d42c76ae4b7527a06181d79fb09c51de57de2e
tree56fa5f6c546b05d11649be70f7b29ffae7006365
parente58826d065fca3b153adad6cc9acd7466657c798
ENGR00240988: gpu: allocate contiguous memory from CMA for 3.10 kernel

The Contiguous Memory Allocator (CMA) is mature in 3.10 kernel.  Let's
change gpu driver to allocate contiguous memory from CMA pool.  Doing so
will save not only the memblock reserve calls in machine code but also
the request_mem_region() and ioremap() in gpu driver.  And all the
system memory will be seen by kernel no matter whether gpu driver is
running or not.

It also changes the default contiguousSize to 128 MiB for Freescale
adjustment.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.h
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c