[PATCH v4 1/7] drivers: of: add initialization code for reserved memory

2014-02-20 Thread Marek Szyprowski
structures are unflattened, so we need to get reserved memory layout directly from fdt. Later, those reserved memory regions are assigned to devices on each device structure initialization. Signed-off-by: Marek Szyprowski [joshc: rework to implement new DT binding, provide mechanism for plugging in new

[PATCH v4 4/7] of: document bindings for reserved-memory nodes

2014-02-20 Thread Marek Szyprowski
/20131030134702.19b57c40...@trevor.secretlab.ca adapted to support #memory-region-cells] Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- .../bindings/reserved-memory/reserved-memory.txt | 138 1 file changed, 138 insertions(+) create mode 100644 Documentation

[PATCH v4 5/7] arm: add support for reserved memory defined by device tree

2014-02-20 Thread Marek Szyprowski
Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/arm/Kconfig |1 + arch/arm/mm/init.c |3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e25419817791..d0262bea8020 100644 --- a/arch/arm

[PATCH v4 6/7] arm64: add support for reserved memory defined by device tree

2014-02-20 Thread Marek Szyprowski
Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/arm64/Kconfig |1 + arch/arm64/mm/init.c |2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 27bbcfc7202a..6abf15407dca 100644 --- a/arch

[PATCH v4 3/7] drivers: dma-contiguous: add initialization from device tree

2014-02-20 Thread Marek Szyprowski
Refactor internal dma_contiguous_init_reserved_mem() function, which creates CMA area from previously reserved memory region and add support for handling 'shared-dma-pool' reserved-memory device tree nodes. Based on previous code provided by Josh Cartwright Signed-off-by: Marek

[PATCH v4 2/7] drivers: dma-coherent: add initialization from device tree

2014-02-20 Thread Marek Szyprowski
Add support for handling 'shared-dma-pool' reserved-memory device tree nodes. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/base/dma-coherent.c | 41 + 1 file changed, 41 insertions(+) di

[PATCH v4 7/7] powerpc: add support for reserved memory defined by device tree

2014-02-20 Thread Marek Szyprowski
Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/powerpc/Kconfig |1 + arch/powerpc/kernel/prom.c |3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 957bf344c0f5..3b6617fed8fc

[PATCH v4 0/7] reserved-memory regions/CMA in devicetree, again

2014-02-20 Thread Marek Szyprowski
l' regions with 'reusable' property. v1: http://thread.gmane.org/gmane.linux.documentation/19579 - initial version prepared by Josh Cartwright Summary: Grant Likely (1): of: document bindings for reserved-memory nodes Marek Szyprowski (6): drivers: of: add initialization code for reserv

Re: [PATCH v3 3/6] drivers: of: implement reserved-memory handling for dma

2014-02-19 Thread Marek Szyprowski
Hello, On 2014-02-18 17:58, Grant Likely wrote: On Tue, 18 Feb 2014 14:37:58 +0100, Marek Szyprowski wrote: > From: Josh Cartwright > > Add support for handling 'shared-dma-pool' reserved-memory nodes using > dma exclusive driver (dma_alloc_coherent()). > > Si

Re: [PATCH v3 2/6] drivers: of: add initialization code for reserved memory

2014-02-19 Thread Marek Szyprowski
Hello, On 2014-02-18 17:56, Grant Likely wrote: On Tue, 18 Feb 2014 14:37:57 +0100, Marek Szyprowski wrote: > This patch adds device tree support for contiguous and reserved memory > regions defined in device tree. > > Large memory blocks can be reliably reserved only durin

[PATCH v3 5/6] ARM: init: add support for reserved memory defined by device tree

2014-02-18 Thread Marek Szyprowski
Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/arm/Kconfig |1 + arch/arm/mm/init.c |3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e25419817791..d0262bea8020 100644 --- a/arch/arm

[PATCH v3 6/6] of: document bindings for reserved-memory nodes

2014-02-18 Thread Marek Szyprowski
/20131030134702.19b57c40...@trevor.secretlab.ca adapted to support #memory-region-cells] Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- .../bindings/reserved-memory/reserved-memory.txt | 138 1 file changed, 138 insertions(+) create mode 100644 Documentation

[PATCH v3 3/6] drivers: of: implement reserved-memory handling for dma

2014-02-18 Thread Marek Szyprowski
From: Josh Cartwright Add support for handling 'shared-dma-pool' reserved-memory nodes using dma exclusive driver (dma_alloc_coherent()). Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/Kconfig |7 drivers/of/Makefile

[PATCH v3 4/6] drivers: of: implement reserved-memory handling for cma

2014-02-18 Thread Marek Szyprowski
From: Josh Cartwright Add support for handling 'shared-dma-pool' reserved-memory nodes using Contiguous Memory Allocator driver. Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/Kconfig |7 drivers/of/Makefile |1

[PATCH v3 2/6] drivers: of: add initialization code for reserved memory

2014-02-18 Thread Marek Szyprowski
structures are unflattened, so we need to get reserved memory layout directly from fdt. Later, those reserved memory regions are assigned to devices on each device structure initialization. Signed-off-by: Marek Szyprowski [joshc: rework to implement new DT binding, provide mechanism for plugging in new

[PATCH v3 1/6] base: dma-contiguous: add dma_contiguous_init_reserved_mem() function

2014-02-18 Thread Marek Szyprowski
Add new dma_contiguous_init_reserved_mem() function, which creates CMA area from previously reserved memory region. Signed-off-by: Marek Szyprowski --- drivers/base/dma-contiguous.c | 70 +++- include/linux/dma-contiguous.h |7 2 files changed, 55

[PATCH v3 0/6] reserved-memory regions/CMA in devicetree, again

2014-02-18 Thread Marek Szyprowski
reserved-memory nodes Josh Cartwright (2): drivers: of: implement reserved-memory handling for dma drivers: of: implement reserved-memory handling for cma Marek Szyprowski (3): base: dma-contiguous: add dma_contiguous_init_reserved_mem() function drivers: of: add initialization code for

Re: [PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-11 Thread Marek Szyprowski
Hello, On 2014-02-05 12:05, Grant Likely wrote: On Tue, 04 Feb 2014 13:09:29 +0100, Marek Szyprowski wrote: > This patch adds device tree support for contiguous and reserved memory > regions defined in device tree. > > Large memory blocks can be reliably reserved only durin

Re: [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-11 Thread Marek Szyprowski
On 2014-02-10 22:59, Grant Likely wrote: On Thu, 06 Feb 2014 14:26:13 +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-05 11:15, Grant Likely wrote: > > On Tue, 04 Feb 2014 13:09:32 +0100, Marek Szyprowski wrote: > > > Enable reserved memory initial

Re: [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-06 Thread Marek Szyprowski
Hello, On 2014-02-05 11:15, Grant Likely wrote: On Tue, 04 Feb 2014 13:09:32 +0100, Marek Szyprowski wrote: > Enable reserved memory initialization from device tree. > > Cc: Benjamin Herrenschmidt > Cc: Laura Abbott > Signed-off-by: Marek Szyprowski > --- > arch

Re: [RFC] dt-bindings: configuration of parent clocks and clock frequency

2014-02-04 Thread Marek Szyprowski
that "[clk-name]-clk-parent" and "[clk-name]-clk-rate" will be a bit more descriptive names instead of quite ambiguous "asn". Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe devi

[PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree

2014-02-04 Thread Marek Szyprowski
Enable reserved memory initialization from device tree. Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Marek Szyprowski --- arch/arm/mm/init.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 804d61566a53..ebafdb479410 100644

[PATCH v2 3/5] drivers: of: implement reserved-memory handling for cma

2014-02-04 Thread Marek Szyprowski
From: Josh Cartwright Add support for handling 'shared-dma-pool' reserved-memory nodes using Contiguous Memory Allocator driver. Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/Kconfig

[PATCH v2 5/5] of: document bindings for reserved-memory nodes

2014-02-04 Thread Marek Szyprowski
...@trevor.secretlab.ca adapted to support #memory-region-cells] Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- .../bindings/reserved-memory/reserved-memory.txt | 138 1 file changed, 138 insertions(+) create mode 100644

[PATCH v2 1/5] drivers: of: add initialization code for reserved memory

2014-02-04 Thread Marek Szyprowski
structures are unflattened, so we need to get reserved memory layout directly from fdt. Later, those reserved memory regions are assigned to devices on each device structure initialization. Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Marek Szyprowski [joshc: rework to implement new DT

[PATCH v2 2/5] drivers: of: implement reserved-memory handling for dma

2014-02-04 Thread Marek Szyprowski
From: Josh Cartwright Add support for handling 'shared-dma-pool' reserved-memory nodes using dma exclusive driver (dma_alloc_coherent()). Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/Kconfig

[PATCH v2 0/5] reserved-memory regions/CMA in devicetree, again

2014-02-04 Thread Marek Szyprowski
gs for reserved-memory nodes Josh Cartwright (2): drivers: of: implement reserved-memory handling for dma drivers: of: implement reserved-memory handling for cma Marek Szyprowski (2): drivers: of: add initialization code for reserved memory ARM: init: add support for reserved memory de

Re: [PATCH 0/2] Revert support for reserved memory regions defined in device tree

2013-11-19 Thread Marek Szyprowski
Hi Grant! On 2013-10-30 14:47, Grant Likely wrote: On Fri, 11 Oct 2013 09:27:26 +0200, Marek Szyprowski wrote: > Hi all! > > Benjamin Herrenschmidt pointed a few issues in the proposed design of > device tree bindings for contiguous memory allocator and reserved memory >

Re: [PATCH 1/4] mfd: max14577: Add max14577 MFD driver core

2013-11-14 Thread Marek Szyprowski
stly there for legacy reasons and new systems ought to be able to move away from it. The main problem here is usb gadget subsystem, which simply doesn't support deferred probe yet. UDC driver (which uses those regulators) need to be initialized before usb gadget driver (i.e. mass storage or c

Re: [PATCH 0/2] Revert support for reserved memory regions defined in device tree

2013-10-15 Thread Marek Szyprowski
Hello, On 2013-10-15 13:40, Grant Likely wrote: On Fri, 11 Oct 2013 09:27:26 +0200, Marek Szyprowski wrote: > Hi all! > > Benjamin Herrenschmidt pointed a few issues in the proposed design of > device tree bindings for contiguous memory allocator and reserved memory > r

[PATCH 2/2] Revert "drivers: of: add initialization code for dma reserved memory"

2013-10-11 Thread Marek Szyprowski
of_pci_irq.o obj-$(CONFIG_OF_MTD) += of_mtd.o -obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c deleted file mode 100644 index 0fe40c7..000 --- a/drivers/of/of_reserved_mem.c +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Device

[PATCH 0/2] Revert support for reserved memory regions defined in device tree

2013-10-11 Thread Marek Szyprowski
thread: http://thread.gmane.org/gmane.linux.ports.arm.kernel/263216 and merged by commit 64c353864e3f7ccba0ade1bd6f562f9a3bc7e68d ("Merge branch 'for-v3.12' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping"). Best regards Marek Szyprowski Samsung R&D Institute

[PATCH 1/2] Revert "ARM: init: add support for reserved memory defined by device tree"

2013-10-11 Thread Marek Szyprowski
This reverts commit 10bcdfb8ba24760f715f0a700c3812747ef5. There is no consensus on the bindings for the reserved memory, so the code for handing it will be reverted. Signed-off-by: Marek Szyprowski --- arch/arm/mm/init.c |3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mm

<    1   2