[Linaro-mm-sig] [PATCH v4 0/4] Add CMA heap for ION memory manager

benjamin.gaignard at stericsson.com benjamin.gaignard at stericsson.com
Wed Mar 21 09:09:19 UTC 2012

From: Benjamin Gaignard <benjamin.gaignard at linaro.org>

The goal of those patches is to allow ION clients (drivers or userland applications) 
to use Contiguous Memory Allocator (CMA).

To get more info about CMA: 

patches version 4:
 - add ION_HEAP_TYPE_DMA heap type in ion_heap_type enum.
 - CMA heap is now a "native" ION heap.
 - add ion_heap_create_full function to keep backward compatibilty.
 - clean up included files in CMA heap
 - ux500-ion is using ion_heap_create_full instead of ion_heap_create

patches version 3:
 - add a private field in ion_heap structure instead of expose ion_device
 structure to all heaps
 - ion_cma_heap is no more a platform driver
 - ion_cma_heap use ion_heap private field to store the device pointer and
   make the link with reserved CMA regions
 - provide ux500-ion driver and configuration file for snowball board to give
   an example of how use CMA heaps

patches version 2:
 - fix comments done by Andy Green

Benjamin Gaignard (4):
  fix ion_platform_data definition
  add private field in ion_heap structure
  add CMA heap
  add test/example driver for ux500 platform

 arch/arm/mach-ux500/board-mop500.c |   77 +++++++++++++++++++
 drivers/gpu/ion/Kconfig            |    6 ++
 drivers/gpu/ion/Makefile           |    4 +-
 drivers/gpu/ion/ion_cma_heap.c     |  129 ++++++++++++++++++++++++++++++++
 drivers/gpu/ion/ion_heap.c         |   14 +++-
 drivers/gpu/ion/ion_priv.h         |   11 +++
 drivers/gpu/ion/ux500/Makefile     |    1 +
 drivers/gpu/ion/ux500/ux500_ion.c  |  142 ++++++++++++++++++++++++++++++++++++
 include/linux/ion.h                |    5 +-
 9 files changed, 386 insertions(+), 3 deletions(-)
 create mode 100644 drivers/gpu/ion/ion_cma_heap.c
 create mode 100644 drivers/gpu/ion/ux500/Makefile
 create mode 100644 drivers/gpu/ion/ux500/ux500_ion.c

More information about the Linaro-mm-sig mailing list