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
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
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
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
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
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
/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
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
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
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
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
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.
&
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.
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
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
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
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
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
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
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
/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
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
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
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
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
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
() 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
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
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
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
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
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
.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
/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
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.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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
-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
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
: 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
| 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
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
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
__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
()/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
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
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
)
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
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
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.
>
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
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
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
__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
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
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
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
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
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
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
)
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
);
+ 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
: 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
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
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
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
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
...@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
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
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
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
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.
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
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
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
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
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
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,
> }
> >
>
> 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
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
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
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
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
.
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
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
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
(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
1001 - 1100 of 2716 matches
Mail list logo