From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with SMTP id A1B226B0047 for ; Mon, 6 Sep 2010 02:34:21 -0400 (EDT) Received: from eu_spt2 (mailout2.w1.samsung.com [210.118.77.12]) by mailout2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0L8B00GCWBL6IY@mailout2.w1.samsung.com> for linux-mm@kvack.org; Mon, 06 Sep 2010 07:34:18 +0100 (BST) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0L8B003FPBL6T4@spt2.w1.samsung.com> for linux-mm@kvack.org; Mon, 06 Sep 2010 07:34:18 +0100 (BST) Date: Mon, 06 Sep 2010 08:33:50 +0200 From: Michal Nazarewicz Subject: [RFCv5 0/9] CMA + VCMM integration Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN Content-transfer-encoding: 7BIT Sender: owner-linux-mm@kvack.org To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , Daniel Walker , FUJITA Tomonori , Hans Verkuil , Jonathan Corbet , KAMEZAWA Hiroyuki , Konrad Rzeszutek Wilk , Kyungmin Park , Marek Szyprowski , Mel Gorman , Minchan Kim , Pawel Osciak , Peter Zijlstra , Russell King , Zach Pfeffer , linux-kernel@vger.kernel.org List-ID: Hello everyone, This patchset introduces a draft of a redesign of Zach Pfeffer's VCMM. Not all of the functionality of the original VCMM has been ported into this patchset. This is mostly meant as RFC. Moreover, the code for VCMM implementation in this RFC has not been tested. CMA has not been changed compared to the previous CMA versions so no aspects discussed on the list have been addressed yet. The redesigned VCMM now uses notion of drivers -- a VCM context is created for each MMU on the platform and each such context is handled by a VCM driver. A context (or may contexts) for One-to-One mappings is created as well and handled with a One-to-One VCM driver. The patchset introduces a sample (or a template if you will) VCM MMU driver as well as a VCM CMA One-to-One driver so it is shown by example how VCM drivers are written. The VCMM framework proposed by this patchset also introduces a vcm_make_binding() call which allocates physical memory, creates virtual address reservation and binds the two together. This makes life easier for One-to-One mappings and if device drivers limit their use of VCM API to a subset of functionality the can work on systems with or without MMU with no modifications (only the VCM context would need to change). Please refer to documentation in the second and seventh patch for more information regarding CMA and VCMM respectively. Michal Nazarewicz (9): lib: rbtree: rb_root_init() function added mm: cma: Contiguous Memory Allocator added mm: cma: Added SysFS support mm: cma: Added command line parameters support mm: cma: Test device and application added ARM: cma: Added CMA to Aquila, Goni and c210 universal boards mm: vcm: Virtual Contiguous Memory framework added mm: vcm: Sample driver added mm: vcm: vcm-cma: VCM CMA driver added Documentation/00-INDEX | 4 + .../ABI/testing/sysfs-kernel-mm-contiguous | 53 + Documentation/contiguous-memory.txt | 623 +++++++++ Documentation/kernel-parameters.txt | 7 + Documentation/virtual-contiguous-memory.txt | 866 ++++++++++++ arch/arm/mach-s5pv210/mach-aquila.c | 31 + arch/arm/mach-s5pv210/mach-goni.c | 31 + arch/arm/mach-s5pv310/mach-universal_c210.c | 23 + drivers/misc/Kconfig | 8 + drivers/misc/Makefile | 1 + drivers/misc/cma-dev.c | 202 +++ include/linux/cma.h | 479 +++++++ include/linux/rbtree.h | 11 + include/linux/vcm-cma.h | 38 + include/linux/vcm-drv.h | 299 +++++ include/linux/vcm-sample.h | 30 + include/linux/vcm.h | 275 ++++ mm/Kconfig | 123 ++ mm/Makefile | 5 + mm/cma-best-fit.c | 407 ++++++ mm/cma.c | 1377 ++++++++++++++++++++ mm/vcm-cma.c | 84 ++ mm/vcm-sample.c | 120 ++ mm/vcm.c | 932 +++++++++++++ tools/cma/cma-test.c | 386 ++++++ 25 files changed, 6415 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-contiguous create mode 100644 Documentation/contiguous-memory.txt create mode 100644 Documentation/virtual-contiguous-memory.txt create mode 100644 drivers/misc/cma-dev.c create mode 100644 include/linux/cma.h create mode 100644 include/linux/vcm-cma.h create mode 100644 include/linux/vcm-drv.h create mode 100644 include/linux/vcm-sample.h create mode 100644 include/linux/vcm.h create mode 100644 mm/cma-best-fit.c create mode 100644 mm/cma.c create mode 100644 mm/vcm-cma.c create mode 100644 mm/vcm-sample.c create mode 100644 mm/vcm.c create mode 100644 tools/cma/cma-test.c -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org