Re: [PATCH] [media] videobuf2-core: print current state of buffer in vb2_buffer_done

2013-03-25 Thread Marek Szyprowski
Hello, Tushar Behera linaro.org> writes: > In vb2_buffer_done, it would be better the print the value of 'state' > (current state of buffer) than to print 'vb->state' which is always > VB2_BUF_STATE_ACTIVE. > > Signed-off-by: Tushar Behera linaro.org> Ac

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

2014-02-18 Thread Marek Szyprowski
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 reserved memory ARM: init: add support for reserved memory defined by device tree .../bindings/reser

[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 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 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 |1

[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 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 + drivers

Re: [BUG] Circular locking dependency - DRM/CMA/MM/hotplug/...

2014-02-18 Thread Marek Szyprowski
Hello, On 2014-02-12 17:33, Russell King - ARM Linux wrote: On Wed, Feb 12, 2014 at 04:40:50PM +0100, Marek Szyprowski wrote: > Hello, > > On 2014-02-11 19:35, Russell King - ARM Linux wrote: >> The cubox-i4 just hit a new lockdep problem - not quite sure what to >> make of

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

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()). > > Signed-off-b

Re: [PATCH v5 06/11] drivers: of: initialize and assign reserved memory to newly created devices

2014-02-27 Thread Marek Szyprowski
Hello, On 2014-02-26 13:14, Grant Likely wrote: On Fri, 21 Feb 2014 13:25:22 +0100, Marek Szyprowski wrote: > Use recently introduced of_reserved_mem_device_init() function to > automatically assign respective reserved memory region to the newly created > platform and amba device. &

Re: [PATCH v5 01/11] of: document bindings for reserved-memory nodes

2014-02-28 Thread Marek Szyprowski
Hello, On 2014-02-26 12:51, Grant Likely wrote: On Fri, 21 Feb 2014 13:25:17 +0100, Marek Szyprowski wrote: > From: Grant Likely > > Reserved memory nodes allow for the reservation of static (fixed > address) regions, or dynamically allocated regions for a specific > purpose.

[PATCH v6 04/11] drivers: of: add support for custom reserved memory drivers

2014-02-28 Thread Marek Szyprowski
Add support for custom reserved memory drivers. Call their init() function for each reserved region and prepare for using operations provided by them with by the reserved_mem->ops array. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- driv

[PATCH v6 05/11] drivers: of: add automated assignment of reserved regions to client devices

2014-02-28 Thread Marek Szyprowski
ed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c| 70 +++ include/linux/of_reserved_mem.h |7 2 files changed, 77 insertions(+) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index daaaf935911d..5c45016efd31

[PATCH v6 02/11] drivers: of: add initialization code for static reserved memory

2014-02-28 Thread Marek Szyprowski
memory layout directly from fdt. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski Acked-by: Grant Likely --- drivers/of/fdt.c | 131 include/linux/of_fdt.h |3 ++ 2 files changed, 134 insertions(+) diff

[PATCH v6 10/11] arm64: add support for reserved memory defined by device tree

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

[PATCH v6 09/11] arm: add support for reserved memory defined by device tree

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

[PATCH v6 11/11] powerpc: add support for reserved memory defined by device tree

2014-02-28 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 v6 08/11] drivers: dma-contiguous: add initialization from device tree

2014-02-28 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 Szyprowski

[PATCH v6 01/11] of: document bindings for reserved-memory nodes

2014-02-28 Thread Marek Szyprowski
/20131030134702.19b57c40...@trevor.secretlab.ca adapted to support #memory-region-cells] Signed-off-by: Josh Cartwright [mszyprow: removed #memory-region-cells property] Signed-off-by: Marek Szyprowski --- .../bindings/reserved-memory/reserved-memory.txt | 136 1 file changed, 136

[PATCH v6 00/11] reserved-memory regions/CMA in devicetree, again

2014-02-28 Thread Marek Szyprowski
ngs for reserved-memory nodes Marek Szyprowski (10): drivers: of: add initialization code for static reserved memory drivers: of: add initialization code for dynamic reserved memory drivers: of: add support for custom reserved memory drivers drivers: of: add automated assignment of res

[PATCH v6 06/11] drivers: of: initialize and assign reserved memory to newly created devices

2014-02-28 Thread Marek Szyprowski
Use recently introduced of_reserved_mem_device_init() function to automatically assign respective reserved memory region to the newly created platform and amba device. Signed-off-by: Marek Szyprowski --- drivers/of/platform.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers

[PATCH v6 03/11] drivers: of: add initialization code for dynamic reserved memory

2014-02-28 Thread Marek Szyprowski
This patch adds support for dynamically allocated reserved memory regions declared in device tree. Such regions are defined by 'size', 'alignment' and 'alloc-ranges' properties. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski Acked-by: Grant Likely

[PATCH v6 07/11] drivers: dma-coherent: add initialization from device tree

2014-02-28 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 | 40 1 file changed, 40 insertions(+) diff --git

Re: [PATCH] vb2: Check if there are buffers before streamon

2014-01-07 Thread Marek Szyprowski
return -EINVAL; + } + /* * If any buffers were queued before streamon, * we can now pass them to driver for processing. Best regards -- Marek Szyprowski, PhD Samsung R Institute Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [PATCH v3] vb2: Check if there are buffers before streamon

2014-01-08 Thread Marek Szyprowski
() the device is kept streaming. Signed-off-by: Ricardo Ribalda Delgado Reviewed-by: Marek Szyprowski --- v2: Comment by Marek Szyprowski: Reword error message v3: Comment by Marek Szyprowski: Actualy do the reword :) drivers/media/v4l2-core/videobuf2-core.c | 5 + 1 file changed, 5

[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 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 Szyprowski

[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 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(+) diff --git

[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 0/7] reserved-memory regions/CMA in devicetree, again

2014-02-20 Thread Marek Szyprowski
.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 reserved memory drivers: dma-coherent: add initialization from device tree

[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 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

[GIT PULL] DMA-mapping fixes for v3.14

2014-02-20 Thread Marek Szyprowski
://git.linaro.org/people/mszyprowski/linux-dma-mapping.git fixes-for-v3.14 for you to fetch changes up to c091c71ad2218fc50a07b3d1dab85783f3b77efd: x86: dma-mapping: fix GFP_ATOMIC macro usage (2014-02-11 09:40:15 +0100) Marek Szyprowski

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

2014-02-20 Thread Marek Szyprowski
Rename 'align' property to 'alignment' to match documentation. Signed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index cacf04810b87..49cf430a9e2a

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

2014-02-21 Thread Marek Szyprowski
Hello, On 2014-02-20 15:01, Grant Likely wrote: On Thu, 20 Feb 2014 11:52:41 +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 v5 08/11] drivers: dma-contiguous: add initialization from device tree

2014-02-21 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 Szyprowski

[PATCH v5 07/11] drivers: dma-coherent: add initialization from device tree

2014-02-21 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(+) diff --git

[PATCH v5 11/11] powerpc: add support for reserved memory defined by device tree

2014-02-21 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 v5 09/11] arm: add support for reserved memory defined by device tree

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

[PATCH v5 10/11] arm64: add support for reserved memory defined by device tree

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

[PATCH v5 05/11] drivers: of: add automated assignment of reserved regions to client devices

2014-02-21 Thread Marek Szyprowski
device node and assigns region pointed by the found phandle. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c| 74 +++ include/linux/of_reserved_mem.h |7 2 files chang

[PATCH v5 06/11] drivers: of: initialize and assign reserved memory to newly created devices

2014-02-21 Thread Marek Szyprowski
Use recently introduced of_reserved_mem_device_init() function to automatically assign respective reserved memory region to the newly created platform and amba device. Signed-off-by: Marek Szyprowski --- drivers/of/platform.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers

[PATCH v5 04/11] drivers: of: add support for custom reserved memory drivers

2014-02-21 Thread Marek Szyprowski
Add support for custom reserved memory drivers. Call their init() function for each reserved region and prepare for using operations provided by them with by the reserved_mem->ops array. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- driv

[PATCH v5 01/11] of: document bindings for reserved-memory nodes

2014-02-21 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 v5 02/11] drivers: of: add initialization code for static reserved memory

2014-02-21 Thread Marek Szyprowski
memory layout directly from fdt. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/fdt.c | 125 include/linux/of_fdt.h |3 ++ 2 files changed, 128 insertions(+) diff --git a/drivers/of/fdt.c

[PATCH v5 00/11] reserved-memory regions/CMA in devicetree, again

2014-02-21 Thread Marek Szyprowski
ble' property and CMA is used only for handling 'shared-dma-pool' 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 S

[PATCH v5 03/11] drivers: of: add initialization code for dynamic reserved memory

2014-02-21 Thread Marek Szyprowski
This patch adds support for dynamically allocated reserved memory regions declared in device tree. Such regions are defined by 'size', 'alignment' and 'alloc-ranges' properties. Based on previous code provided by Josh Cartwright Signed-off-by: Marek Szyprowski --- drivers/of/Kconfig

Re: [PATCHv3 2/2] arm: Get rid of meminfo

2014-02-12 Thread Marek Szyprowski
-by: Catalin Marinas Acked-by: Santosh Shilimkar Tested-by: Leif Lindholm Signed-off-by: Laura Abbott Tested-by: Marek Szyprowski --- arch/arm/include/asm/mach/arch.h |4 +- arch/arm/include/asm/memblock.h |3 +- arch/arm/include/asm/setup.h | 23

Re: [BUG] Circular locking dependency - DRM/CMA/MM/hotplug/...

2014-02-12 Thread Marek Szyprowski
r8:c000e8a4 r7:00000036 r6:0006 r5:c00464b4 r4:beeb6bb4 Best regards -- Marek Szyprowski, PhD Samsung R Institute Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

[PATCH v3] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-02-11 Thread Marek Szyprowski
: sta...@vger.kernel.org Signed-off-by: Marek Szyprowski --- Changelog: v3: - fixed spelling issues v2: - added more comments in the code to explain for _GFP_WAIT test v1: - initial version --- arch/x86/kernel/pci-dma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCHv2 2/2] arm: Get rid of meminfo

2014-02-11 Thread Marek Szyprowski
| 61 ++-- arch/arm/mm/mmu.c| 115 +- 32 files changed, 133 insertions(+), 284 deletions(-) (snipped) Best regards -- Marek Szyprowski, PhD Samsung R Institute Poland -- To unsubscribe from this list: send

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 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] vb2: Allow STREAMOFF for io emulator

2013-10-08 Thread Marek Szyprowski
__vb2_cleanup_fileio(q); + return 0; + } + /* * Cancel will pause streaming and remove all buffers from the driver * and videobuf, effectively returning control over them to userspace. Best regards -- Marek Szyprowski Samsung R Institute Poland -- To unsubscribe

Re: [PATCH] vb2: Allow STREAMOFF for io emulator

2013-10-08 Thread Marek Szyprowski
()/write() mode is mainly designed for old and legacy applications. Those applications assume that the only reliable way to stop streaming is to close the fd. New tools should use libv4l and ioctl-based api. Best regards -- Marek Szyprowski Samsung R Institute Poland -- To unsubscribe from

Re: [PATCH] videobuf2: Add missing lock held on vb2_fop_relase

2013-10-14 Thread Marek Szyprowski
end trace e8f01717c96d1e41 ]--- Signed-off-by: Ricardo Ribalda Delgado Acked-by: Marek Szyprowski --- drivers/media/v4l2-core/videobuf2-core.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 9fc4bab

[GIT PULL] DMA-mapping fix for v3.12

2013-10-15 Thread Marek Szyprowski
contains a bugfix for the IOMMU-based implementation of dma-mapping subsystem for ARM architecture. Thanks! Best regards Marek Szyprowski Samsung R Institute Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

[GIT PULL] DMA-mapping updates for v3.12

2013-09-09 Thread Marek Szyprowski
) Aneesh Kumar K.V (1): mm/cma: Move dma contiguous changes into a seperate config Marek Szyprowski (5): Merge remote-tracking branch 'dma-public/for-v3.12-cma-dma' into for-next drivers: dma-contiguous: clean source code and prepare for device tree drivers

[PATCH] drivers: of: fix build break if asm/dma-contiguous.h is missing

2013-09-10 Thread Marek Szyprowski
It is not needed to include asm/dma-contiguous.h header to compile reserved memory initialization code, so remove it to avoid build break on architectures without CMA support. Signed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c |2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH] drivers: of: fix build break if asm/dma-contiguous.h is missing

2013-09-11 Thread Marek Szyprowski
Hello, On 9/10/2013 9:45 PM, Rob Herring wrote: On 09/10/2013 04:13 AM, Marek Szyprowski wrote: > It is not needed to include asm/dma-contiguous.h header to compile > reserved memory initialization code, so remove it to avoid build break > on architectures without CMA support. >

[GIT PULL] DMA-mapping updates for v3.12 (part 2)

2013-09-11 Thread Marek Szyprowski
is missing (2013-09-10 15:43:40 +0200) Marek Szyprowski (1): drivers: of: fix build break if asm/dma-contiguous.h is missing drivers/of/of_reserved_mem.c |2 -- 1 file changed, 2 deletions

Re: [PATCH] videobuf2-dma-sg: Minimize the number of dma segments

2013-07-18 Thread Marek Szyprowski
rvell-ccic and solo6x10 to use sg_table. Does anything of this make sense? I would also like to help you as much as possible, but for the next 10 days I will be not available for both personal reasons and holidays. If you have any questions, feel free to leave them on my mail, I will reply asap I ge

[RFC/PATCH 0/5] Contiguous Memory Allocator and get_user_pages()

2013-03-04 Thread Marek Szyprowski
on the presented approach. What do you think about it? Is there a chance to get such workaround merged at some point to mainline? Best regards Marek Szyprowski Samsung Poland R Center Patch summary: Marek Szyprowski (5): mm: introduce migrate_replace_page() for migrating page to the given

[RFC/PATCH 2/5] mm: get_user_pages: use static inline

2013-03-04 Thread Marek Szyprowski
__get_user_pages() is already exported function, so get_user_pages() can be easily inlined to the caller functions. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/mm.h | 74 +--- mm/memory.c| 69

[RFC/PATCH 3/5] mm: get_user_pages: use NON-MOVABLE pages when FOLL_DURABLE flag is set

2013-03-04 Thread Marek Szyprowski
Ensure that newly allocated pages, which are faulted in in FOLL_DURABLE mode comes from non-movalbe pageblocks, to workaround migration failures with Contiguous Memory Allocator. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/highmem.h | 12

[RFC/PATCH 4/5] mm: get_user_pages: migrate out CMA pages when FOLL_DURABLE flag is set

2013-03-04 Thread Marek Szyprowski
When __get_user_pages() is called with FOLL_DURABLE flag, ensure that no page in CMA pageblocks gets locked. This workarounds the permanent migration failures caused by locking the pages by get_user_pages() call for a long period of time. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin

[RFC/PATCH 1/5] mm: introduce migrate_replace_page() for migrating page to the given target

2013-03-04 Thread Marek Szyprowski
Introduce migrate_replace_page() function for migrating single page to the given target page. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- include/linux/migrate.h |5 mm/migrate.c| 59 +++ 2 files changed

[RFC/PATCH 5/5] media: vb2: use FOLL_DURABLE and __get_user_pages() to avoid CMA migration issues

2013-03-04 Thread Marek Szyprowski
pageblocks before blocking them with an additional reference. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park --- drivers/media/v4l2-core/videobuf2-dma-contig.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma

Re: [RFC/PATCH 0/5] Contiguous Memory Allocator and get_user_pages()

2013-03-05 Thread Marek Szyprowski
Hello, On 3/5/2013 9:50 AM, Arnd Bergmann wrote: On Tuesday 05 March 2013, Marek Szyprowski wrote: > To solving this issue requires preventing locking of the pages, which > are placed in CMA regions, for a long time. Our idea is to migrate > anonymous page content before locking

Re: [RFC/PATCH 0/5] Contiguous Memory Allocator and get_user_pages()

2013-03-06 Thread Marek Szyprowski
Hello, On 3/6/2013 9:47 AM, Minchan Kim wrote: Hello, On Tue, Mar 5, 2013 at 3:57 PM, Marek Szyprowski wrote: > Hello, > > Contiguous Memory Allocator is very sensitive about migration failures > of the individual pages. A single page, which causes permanent migration > fa

[GIT PULL] DMA-mapping updates for v3.9-rc1

2013-02-25 Thread Marek Szyprowski
) This time all patches are related only to ARM DMA-mapping subsystem. The main extension provided by this pull request is highmem support. Besides that it contains a bunch of small bugfixes and cleanups. Thanks! Best regards Marek Szyprowski Samsung Poland R Center Patch summary: Hiroshi Doyu (3

Re: [RFC] dma-mapping: Provide write-combine allocations

2014-01-14 Thread Marek Szyprowski
); + dma_set_attr(DMA_ATTR_WRITE_COMBINE, ); + return dma_free_attrs(dev, size, cpu_addr, dma_addr, ); +} #endif /* CONFIG_HAVE_DMA_ATTRS */ #ifdef CONFIG_NEED_DMA_MAP_STATE I would also add dma_mmap_writecombine() to the above functions. Best regards -- Marek Szyprowski, PhD Samsung R

[PATCH v2] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-24 Thread Marek Szyprowski
: sta...@vger.kernel.org Signed-off-by: Marek Szyprowski --- arch/x86/kernel/pci-dma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 872079a..3519a78 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel

Re: [PATCH v2 1/5] x86: make dma_alloc_coherent() return zeroed memory if CMA is enabled

2014-01-27 Thread Marek Szyprowski
is specified. So this fixes it by unconditionally zeroing the allocated memory region. Cc: Marek Szyprowski Cc: Konrad Rzeszutek Wilk Cc: David Woodhouse Cc: Don Dutile Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Andi Kleen Cc: x...@kernel.org Cc: io...@lists.linux-foun

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

2014-02-04 Thread Marek Szyprowski
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 defined by device tree .../bindings/reserved-memor

[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 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 |7

[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 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 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 |7

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: [PATCH v2 3/5] intel-iommu: integrate DMA CMA

2014-01-16 Thread Marek Szyprowski
by dma_alloc_from_contiguous() and alloc_pages() is used as a fallback. Cc: Marek Szyprowski Cc: Konrad Rzeszutek Wilk Cc: David Woodhouse Cc: Don Dutile Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Andi Kleen Cc: x...@kernel.org Cc: io...@lists.linux-foundation.

[PATCH] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
Signed-off-by: Marek Szyprowski --- arch/x86/kernel/pci-dma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 872079a..32a81c9 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c @@ -100,7 +100,7

[PATCH] staging: lustre: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. Signed-off-by: Marek Szyprowski --- .../lustre/include/linux/libcfs

[PATCH] ARM: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. This patch fixes the issue introduced in v3.6-rc5 Signed-off-by: Marek Szyprowski

[PATCH] cris: cryptocop: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. Signed-off-by: Marek Szyprowski --- arch/cris/arch-v32/drivers/cryptocop.c

Re: [PATCH] staging: lustre: fix GFP_ATOMIC macro usage

2014-01-20 Thread Marek Szyprowski
Hello, On 2014-01-17 15:33, Greg Kroah-Hartman wrote: On Fri, Jan 17, 2014 at 09:46:56AM +0100, Marek Szyprowski wrote: > GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other > flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an > atomic a

Re: [PATCH] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-20 Thread Marek Szyprowski
Hello, On 2014-01-17 11:49, Andy Whitcroft wrote: On Fri, Jan 17, 2014 at 8:46 AM, Marek Szyprowski wrote: > GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other > flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an > atomic allocation,

Re: [PATCH RFT linux-next] alpha: dma-mapping: support debug_dma_mapping_error

2013-03-27 Thread Marek Szyprowski
> } > > > > Marek, > > This is for alpha to go through your tree. Given that this does not appear to be upstream yet I'll take it through the Alpha tree. Those patches in the end went via IOMMU tree. I looks that the patch for Alpha has been missed. It looks

[GIT PULL] DMA-mapping updates for v3.11

2013-07-02 Thread Marek Szyprowski
an important bugfixes and update for IOMMU integration support for ARM architecture. Thanks! Best regards Marek Szyprowski Samsung Poland R Center Patch summary: Richard Zhao (1): ARM: dma: Drop __GFP_COMP for iommu dma memory allocations Will Deacon (2): ARM: dma-mapping: convert DMA

Re: [GIT PULL] DMA-mapping updates for v3.11

2013-07-03 Thread Marek Szyprowski
Hi Stephen, On 7/3/2013 2:09 AM, Stephen Rothwell wrote: Hi Marek, On Tue, 02 Jul 2013 10:35:08 +0200 Marek Szyprowski wrote: > > I would like to ask You for pulling some fixes for ARM dma-mapping subsystem > for v3.11. > > > The following ch

Re: [GIT PULL] DMA-mapping updates for v3.11

2013-07-04 Thread Marek Szyprowski
Hello, On 7/3/2013 11:02 PM, Linus Torvalds wrote: On Wed, Jul 3, 2013 at 12:58 AM, Marek Szyprowski wrote: > > Right, I dropped one commit, which I found in other 'for_next' kernel tree > (the one from Russell King) before sending the pull request. What's wrong with > this approac

[GIT PULL] DMA-mapping updates for v3.11

2013-07-05 Thread Marek Szyprowski
60 - 1 file changed, 49 insertions(+), 11 deletions(-) This pull request contains an important bugfixes and update for IOMMU integration support for ARM architecture. Thanks! Best regards Marek Szyprowski Samsung Poland R Cen

Re: [PATCH 1/6] of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacks

2014-05-09 Thread Marek Szyprowski
. Cc: Marek Szyprowski Cc: Grant Likely Signed-off-by: Rob Herring Acked-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c| 2 +- include/linux/of_reserved_mem.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers

Re: [RFC PATCH 0/3] Aggressively allocate the pages on cma reserved memory

2014-05-09 Thread Marek Szyprowski
include/linux/mmzone.h |6 +++ mm/compaction.c|4 -- mm/internal.h |3 +- mm/page_alloc.c| 117 +++- 4 files changed, 102 insertions(+), 28 deletions(-) Best regards -- Marek Szyprowski, PhD Samsung R Institute

[GIT PULL] CMA and DMA-mapping fixes for v3.16

2014-06-03 Thread Marek Szyprowski
for solving potential deadlock caused by CMA code, bugfix for ARM dma-mapping subsystem and minor code cleanups. Thanks! Best regards Marek Szyprowski Samsung R Institute Poland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[GIT PULL] DMA-mapping update for v3.15

2014-04-01 Thread Marek Szyprowski
(1): arm: dma-mapping: Add support to extend DMA IOMMU mappings Marek Szyprowski (1): arm: dma-mapping: remove order parameter from arm_iommu_create_mapping() arch/arm/include/asm/dma-iommu.h | 12 ++- arch/arm/mm/dma-mapping.c | 144

<    6   7   8   9   10   11   12   13   14   15   >