RE: [PATCH] ARM: dma-mapping: Fix potential memory leak in atomic_pool_init()

2012-09-24 Thread Marek Szyprowski
a...@arndb.de Cc: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- arch/arm/mm/dma-mapping.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 546a3e8..477a2d2

RE: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Marek Szyprowski
, not arch specific. Please read more about bus notifiers. IMHO a good example is provided in the following thread: http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg12238.html Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send the line

RE: [PATCH v3 2/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-24 Thread Marek Szyprowski
buffer prepare/finish it does a DMA synchronization. Signed-off-by: Federico Vaga federico.v...@gmail.com Acked-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/media/v4l2-core/Kconfig | 5 + drivers/media/v4l2-core/Makefile | 1 + drivers/media

RE: [PATCH v3 1/4] v4l: vb2: add prepare/finish callbacks to allocators

2012-09-24 Thread Marek Szyprowski
Hello, It would be great if you could keep the correct authorship of the patch by adding the following line on top of the patch (git will handle it automatically after applying): --8-- From: Marek Szyprowski m.szyprow...@samsung.com --8-- On Monday, September 24, 2012 12:59 PM Federico Vaga

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

2012-09-27 Thread Marek Szyprowski
Hi Linus, I would like to ask for pulling yet another patch for ARM dma-mapping subsystem to Linux v3.6 kernel tree. This patch fixes potential memory leak ARM dma-mapping code. The following changes since commit 979570e02981d4a8fc20b3cc8fd651856c98ee9d: Linux 3.6-rc7 (2012-09-23 18:10:57

RE: CMA broken in next-20120926

2012-09-27 Thread Marek Szyprowski
for the report, I will check this issue asap. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read

[PATCH] mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls

2012-11-07 Thread Marek Szyprowski
the dmapool usage on ARM architecture, where GFP_ATOMIC DMA allocations can be served only from the special, very limited memory pool. Reported-by: Soren Moch sm...@web.de Reported-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- mm

[PATCH] mm: skip watermarks check for already isolated blocks in split_free_page()

2012-11-07 Thread Marek Szyprowski
Since commit 2139cbe627b8 (cma: fix counting of isolated pages) free pages in isolated pageblocks are not accounted to NR_FREE_PAGES counters, so watermarks check is not required if one operates on a free page in isolated pageblock. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- mm

[PATCH] mm: remove watermark hacks for CMA

2012-11-07 Thread Marek Szyprowski
reclaim in alloc_contig_range() to stabilise watermarks) can be finally removed. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- include/linux/mmzone.h |9 mm/page_alloc.c| 57 2 files changed, 66 deletions(-) diff

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
this issue. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
patches in your kernel? You have to apply [2/4], [3/4], [4/4] and don't need [1/4]. AFAIR without patch [1/4], free cma page counter will go below zero and weird thing will happen, so better apply the complete patchset. Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/9/2012 6:43 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: On 10/9/2012 5:10 AM, Minchan Kim wrote: On Mon, Oct 08, 2012 at 05:41:14PM +0200, Rabin Vincent wrote: Fortunately, recently, Bart sent a patch about that. http://marc.info/?l

Re: CMA and zone watermarks

2012-10-08 Thread Marek Szyprowski
Hello, On 10/9/2012 7:07 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 06:53:29AM +0200, Marek Szyprowski wrote: Hello, On 10/9/2012 6:43 AM, Minchan Kim wrote: On Tue, Oct 09, 2012 at 05:12:21AM +0200, Marek Szyprowski wrote: On 10/9/2012 5:10 AM, Minchan Kim wrote: On Mon, Oct 08, 2012

Re: [PATCH 1/2] arm: mvebu: increase atomic coherent pool size for armada 370/XP

2012-10-24 Thread Marek Szyprowski
will be able to allocate their buffers with GFP_ATOMIC flag Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Cc: Marek Szyprowski m.szyprow...@samsung.com Acked-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/mach-mvebu/armada-370-xp.c | 12 1 file changed

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

2012-10-24 Thread Marek Szyprowski
+0200) This pull request consists mainly of a set of one-liner fixes and cleanups for a few minor issues identified in both Contiguous Memory Allocator code and ARM DMA-mapping subsystem. Thanks! Best regards Marek Szyprowski

[GIT PULL] Urgent DMA-mapping fix for v3.7-rc3

2012-10-26 Thread Marek Szyprowski
it and fixes build break of ARM architecture. Thanks! Best regards Marek Szyprowski Samsung Poland RD Center The following changes since commit 2ab3f29dddfb444c9fcc0a2f3a56ed4bdba41969: Merge branch 'akpm' (Andrew's fixes) (2012-10

[PATCH] mm: use migrate_prep() instead of migrate_prep_local()

2012-11-12 Thread Marek Szyprowski
procedure causing the contiguous allocation to fail. Reported-by: SeongHwan Yoon sunghwan@samsung.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- mm/page_alloc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] mm: cma: allocate pages from CMA if NR_FREE_PAGES approaches low water mark

2012-11-12 Thread Marek Szyprowski
very soon. To avoid such situation and make better use of CMA pages, a heuristics is introduced which turns on CMA fallback for movable pages when the real number of free pages (excluding CMA free pages) approaches low water mark. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed

[PATCH] mm: cma: WARN if freed memory is still in use

2012-11-12 Thread Marek Szyprowski
Memory return to free_contig_range() must have no other references. Let kernel to complain loudly if page reference count is not equal to 1. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com CC: Michal Nazarewicz min...@mina86.com

[PATCH v2] mm: cma: WARN if freed memory is still in use

2012-11-12 Thread Marek Szyprowski
Memory returned to free_contig_range() must have no other references. Let kernel to complain loudly if page reference count is not equal to 1. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com CC: Michal Nazarewicz min...@mina86.com

[PATCH 2/3] regulator: threat regulators with constant volatage as fixed

2012-11-13 Thread Marek Szyprowski
Some drivers has additional logic for fixed regulators. Let regulator core to threat regulators which cannot change their voltage due to applied constraints as fixed. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/regulator/core.c |5 - 1 file changed, 4 insertions

[PATCH 3/3] mmc: sdhci: apply voltage range check only for non-fixed regulators

2012-11-13 Thread Marek Szyprowski
Fixed regulators cannot change their voltage, so disable all voltage range checking for them, otherwise the driver fails to operate with fixed regulators. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/mmc/host/sdhci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 0/3] Fix fixed regulators support

2012-11-13 Thread Marek Szyprowski
with disabled voltage change due to their constraints. This restores support for such regulators in sdhci driver (such case is present on Samsung GONI board). If possible, I would recomment to push those patches to v3.7-rc series. Best regards Marek Szyprowski Samsung Poland RD Center Patch summary

[PATCH 1/3] regulator: fix voltage check in regulator_is_supported_voltage()

2012-11-13 Thread Marek Szyprowski
regulator_is_supported_voltage() should return true only if the voltage of fixed/constant regulator is between min_uV and max_uV. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/regulator/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v2] regulator: treat regulators with constant volatage as fixed

2012-11-13 Thread Marek Szyprowski
Some drivers has additional logic for fixed regulators. Let regulator core to treat regulators which cannot change their voltage due to applied constraints as fixed. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/regulator/core.c |6 +- 1 file changed, 5 insertions

[PATCH v3] regulator: treat regulators with constant volatage as fixed

2012-11-13 Thread Marek Szyprowski
Some drivers has additional logic for fixed regulators. Let regulator core to treat regulators which cannot change their voltage due to applied constraints as fixed. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/regulator/core.c |9 - 1 file changed, 8

[PATCH v2] mmc: sdhci: apply voltage range check only for non-fixed regulators

2012-11-13 Thread Marek Szyprowski
check in regulator_is_supported_voltage() fixed that function and now additional check is needed for fixed regulators. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/mmc/host/sdhci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c

Re: [PATCH v2] mmc: sdhci: apply voltage range check only for non-fixed regulators

2012-11-13 Thread Marek Szyprowski
Hello, On 11/13/2012 2:45 PM, Chris Ball wrote: Hi Marek, On Tue, Nov 13 2012, Marek Szyprowski wrote: Fixed regulators cannot change their voltage, so disable all voltage range checking for them, otherwise the driver fails to operate with fixed regulators. Up to now it worked only by luck

[RFC 0/2] DMA-mapping IOMMU - physically contiguous allocations

2012-10-15 Thread Marek Szyprowski
a new attribute, as proposed in this RFC is a good idea? I feel that it might be an attribute just for a single driver, but I would like to know your opinion. Should we look for other solution? Best regards -- Marek Szyprowski Samsung Poland RD Center Marek Szyprowski (2): common: DMA-mapping

[RFC 2/2] ARM: dma-mapping: add support for DMA_ATTR_FORCE_CONTIGUOUS attribute

2012-10-15 Thread Marek Szyprowski
This patch adds support for DMA_ATTR_FORCE_CONTIGUOUS attribute for dma_alloc_attrs() in IOMMU-aware implementation. For allocating physically contiguous buffers Contiguous Memory Allocator is used. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/mm/dma-mapping.c | 41

[RFC 1/2] common: DMA-mapping: add DMA_ATTR_FORCE_CONTIGUOUS attribute

2012-10-15 Thread Marek Szyprowski
this attribute the allocated buffer is forced to be contiguous also in physical memory. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- Documentation/DMA-attributes.txt |9 + include/linux/dma-attrs.h|1 + 2 files changed, 10 insertions(+) diff --git

RE: [PATCH] drivers: cma: Fix wrong CMA selected region size default value

2012-10-18 Thread Marek Szyprowski
-- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH 1/2] drivers: dma-contiguous: Don't redefine SZ_1M

2012-10-18 Thread Marek Szyprowski
Hi Laurent, Thanks for those two cleanups, I will take them to my dma-mapping tree too. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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

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

2012-07-17 Thread Marek Szyprowski
condition check while freeing pages are available in the git repository at: git://git.linaro.org/people/mszyprowski/linux-dma-mapping.git fixes-for-linus Marek Szyprowski (1): mm: cma: fix condition check when setting global cma area Prathyush K (1): ARM: dma-mapping: modify

RE: [PATCH 1/2] device: add dma_params-max_segment_count

2012-07-20 Thread Marek Szyprowski
has constraints about maximum number of segments. Signed-off-by: Rob Clark r...@ti.com Yea, it is a really good idea to add this to struct device_dma_parameters. We only need to initialize it to '1' in platform startup code for all devices relevant to buffer sharing. Acked-by: Marek Szyprowski

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

2013-03-15 Thread Marek Szyprowski
contains an important fix for all ARM architectures which use ZONE_DMA. Without it dma_alloc_* calls with GFP_ATOMIC flag might have allocated buffers outsize DMA zone. Thanks! Best regards Marek Szyprowski Samsung Poland RD Center Patch summary: Marek Szyprowski (1): ARM: DMA-mapping: add

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

2013-03-25 Thread Marek Szyprowski
Hello, Tushar Behera tushar.behera at 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 tushar.behera at linaro.org Acked-by: Marek

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

2013-03-27 Thread Marek Szyprowski
patches in the end went via IOMMU tree. I looks that the patch for Alpha has been missed. It looks that this patch should be merged to v3.9-rcX asap to fix the broken dma-mapping api calls. Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send

[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 RD 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 m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- include/linux/mm.h | 74

[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 m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[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 m.szyprow...@samsung.com

[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 m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- include/linux/migrate.h |5 mm/migrate.c| 59

[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 m.szyprow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/v4l2-core/videobuf2-dma-contig.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

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 the page

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 m.szyprow...@samsung.com wrote: Hello, Contiguous Memory Allocator is very sensitive about migration failures of the individual pages. A single page, which causes permanent migration

Re: [PATCH 0/9] dma_debug: add debug_dma_mapping_error support to architectures that support DMA_DEBUG_API

2012-12-03 Thread Marek Szyprowski
On 12/2/2012 3:06 PM, Joerg Roedel wrote: Hi Marek, On Mon, Nov 26, 2012 at 11:57:19AM +0100, Marek Szyprowski wrote: I've took all the patches to the next-dma-debug branch in my tree, I sorry that You have to wait so long for it. My branch is based on Joerg's dma-debug branch and I've

[PATCH v2 0/3] Fix fixed regulators support

2012-12-04 Thread Marek Szyprowski
regulators core by regualtor_can_change_voltage() function and using it in the mmc/sdhci drivers. For more information, please refer to the following threads: http://thread.gmane.org/gmane.linux.kernel.mmc/17643 https://patchwork.kernel.org/patch/1739061/ Best regards Marek Szyprowski Samsung Poland RD

[PATCH 2/3] mmc: use regulator_can_change_voltage() instead of regulator_count_voltages() hacks

2012-12-04 Thread Marek Szyprowski
). This patch replaces a hacky workaround based on regulator_count_voltages() value with the correct call to recently introduced regulator_can_change_voltage() function in regulators core. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/mmc/core/core.c |2 +- 1 file changed

[PATCH 1/3] regulators: add regulator_can_change_voltage() function

2012-12-04 Thread Marek Szyprowski
Introduce a regulator_can_change_voltage() function for the subsytems or drivers which might check if applying voltage change is possible and use special workaround code when the driver is used with fixed regulators or regulators with disabled ability to change the voltage. Signed-off-by: Marek

[PATCH 3/3] mmc: sdhci: check voltage range only on regulators aware of voltage value

2012-12-04 Thread Marek Szyprowski
and regulated without using regulator_count_voltages() hacks. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/mmc/host/sdhci.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index a9ad2cd..d244dc0 100644

Re: FW: [PATCH v2] mmc: sdhci: apply voltage range check only for non-fixed regulators

2012-12-04 Thread Marek Szyprowski
Hello, On 11/30/2012 5:48 PM, Chris Ball wrote: On Tue, Nov 20 2012, Marek Szyprowski wrote: The problem with dummy regulator is the fact that it can be enabled only globally for all devices in the system. I think that the best solution would be to introduce regulator_can_change_voltage

[PATCH 3/3 RESEND] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-12 Thread Marek Szyprowski
and regulated without using regulator_count_voltages() hacks. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/mmc/host/sdhci.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ba586ae..735526b 100644

Re: [PATCH 3/3 RESEND] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-12 Thread Marek Szyprowski
Hello, On 2/12/2013 11:10 PM, Guennadi Liakhovetski wrote: Hi Marek On Tue, 12 Feb 2013, Marek Szyprowski wrote: Some regulators don't report any voltage values, so checking supported voltage range results in disabling all SDHCI_CAN_VDD_* flags and registration failure. This patch finally

[PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-04 Thread Marek Szyprowski
The total number of low memory pages is determined as totalram_pages - totalhigh_pages, so without this patch all CMA pageblocks placed in highmem were accounted to low memory. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- mm/page_alloc.c |4 1 file changed, 4 insertions

Re: [PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-04 Thread Marek Szyprowski
Hello, On 2/5/2013 12:34 AM, Minchan Kim wrote: On Mon, Feb 04, 2013 at 11:27:05AM +0100, Marek Szyprowski wrote: The total number of low memory pages is determined as totalram_pages - totalhigh_pages, so without this patch all CMA pageblocks placed in highmem were accounted to low memory

Re: [PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-05 Thread Marek Szyprowski
the mapping is a correct. Shouldn't we use avoid himem in such case? Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org

Re: [PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-05 Thread Marek Szyprowski
kernel has higher priority. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read

[GIT PULL] DMA-mapping updates for v3.8-rc7

2013-02-05 Thread Marek Szyprowski
-mapping api functions: dma_mmap_coherent and dma_get_sgtable. Thanks! Best regards Marek Szyprowski Samsung Poland RD Center Patch summary: Geert Uytterhoeven (9): avr32: Provide dma_mmap_coherent() and dma_get_sgtable() blackfin: Provide dma_mmap_coherent() and dma_get_sgtable

Re: [PATCH 2/3] mmc: use regulator_can_change_voltage() instead of regulator_count_voltages() hacks

2013-02-01 Thread Marek Szyprowski
Hello, On 12/4/2012 3:01 PM, Marek Szyprowski wrote: mmc_regulator_set_ocr() depends on the ability of regulator to change the voltage value. When regulator cannot change its voltage output, some code is skipped to avoid reporting false errors on some boards, which use MMC hosts with fixed

Re: [PATCH 3/3] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-01 Thread Marek Szyprowski
Hello, On 12/4/2012 3:01 PM, Marek Szyprowski wrote: Some regulators don't report any voltage values, so checking supported voltage range results in disabling all SDHCI_CAN_VDD_* flags and registration failure. This patch finally provides a correct fix for the registration of SDHCI driver

[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 RD Center Patch summary: Hiroshi Doyu (3

Re: [PATCH 1/5] metag: Provide dma_get_sgtable()

2013-02-26 Thread Marek Szyprowski
Szyprowski m.szyprow...@samsung.com Acked-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/metag/include/asm/dma-mapping.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/metag/include/asm/dma-mapping.h b/arch/metag/include/asm/dma-mapping.h index b5f80a6..14b23ef 100644

[PATCH] regulators: max8998: fix incorrect min_uV value for ldo10

2013-01-25 Thread Marek Szyprowski
Correct value for minimal voltage for ldo10 output is 95 uV. This patch fixes the typo introduced by patch adf6178ad5552a7f2f742a8c85343c50 (regulator: max8998: Use uV in voltage_map_desc), what solves broken probe of max8998 in v3.8-rc4. Signed-off-by: Marek Szyprowski m.szyprow

Re: [PATCH v2 0/9] Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-28 Thread Marek Szyprowski
. Do you want me to take those patches via dma-mapping tree or get my ack and put them together with your other m68k fixes for v3.8? Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-22 Thread Marek Szyprowski
Hello, On 1/15/2013 5:56 PM, James Bottomley wrote: On Tue, 2013-01-15 at 15:07 +0100, Marek Szyprowski wrote: Hello, On 1/15/2013 10:13 AM, Geert Uytterhoeven wrote: Marek? On Tue, Jan 15, 2013 at 5:16 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 14 January 2013

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-22 Thread Marek Szyprowski
at 15:07 +0100, Marek Szyprowski wrote: On 1/15/2013 10:13 AM, Geert Uytterhoeven wrote: Marek? On Tue, Jan 15, 2013 at 5:16 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 14 January 2013 09:07 PM, Mark Salter wrote: On Sun, 2013-01-13 at 11:44 +0100, Geert

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-23 Thread Marek Szyprowski
+0100, Marek Szyprowski wrote: On 1/15/2013 10:13 AM, Geert Uytterhoeven wrote: Marek? On Tue, Jan 15, 2013 at 5:16 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 14 January 2013 09:07 PM, Mark Salter wrote: On Sun, 2013-01-13 at 11:44 +0100, Geert

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-23 Thread Marek Szyprowski
On 1/23/2013 11:29 AM, James Bottomley wrote: On Wed, 2013-01-23 at 10:47 +0100, Marek Szyprowski wrote: On 1/22/2013 11:13 AM, James Bottomley wrote: There might be a simple solution: just replace void *cpu_addr with void **cpu_addr in the API. This is a bit nasty since compilers think

Re: [Linux-c6x-dev] [PATCH 3/9] c6x: Provide dma_mmap_coherent() and dma_get_sgtable()

2013-01-24 Thread Marek Szyprowski
On 1/21/2013 9:00 PM, Geert Uytterhoeven wrote: On Tue, Jan 15, 2013 at 5:56 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: On Tue, 2013-01-15 at 15:07 +0100, Marek Szyprowski wrote: On 1/15/2013 10:13 AM, Geert Uytterhoeven wrote: Marek? On Tue, Jan 15, 2013 at 5:16

Re: [PATCH 3/3 RESEND] mmc: sdhci: check voltage range only on regulators aware of voltage value

2013-02-14 Thread Marek Szyprowski
On 2/13/2013 12:35 PM, Mark Brown wrote: On Wed, Feb 13, 2013 at 08:45:56AM +0100, Guennadi Liakhovetski wrote: On Wed, 13 Feb 2013, Marek Szyprowski wrote: BTW, mmc_regulator_get_ocrmask() won't work with continuous range regulators. This seems like a problem, that has to be fixed

RE: [PATCH 3/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-13 Thread Marek Szyprowski
; + +#endif -- 1.7.11.4 Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http

[GIT PULL] One more DMA-mapping fix for v3.6

2012-09-14 Thread Marek Szyprowski
:15:48 +0200) Thanks! Best regards Marek Szyprowski Samsung Poland RD Center Patch summary: Thomas Petazzoni (1): arm: mm: fix DMA pool affiliation check arch/arm/mm/dma-mapping.c |2 +- 1 files changed, 1 insertions

[PATCHv5 0/2] ARM: replace custom consistent dma region with vmalloc

2012-07-27 Thread Marek Szyprowski
allocations. This version addresses a few minor issues pointed by Minchan Kim. This patch is based on vanilla v3.5 release. Best regards Marek Szyprowski Samsung Poland RD Center Changelog: v5: - fixed another minor issues pointed by Minchan Kim: added more comments here and there, changed

[PATCHv5 1/2] mm: vmalloc: use const void * for caller argument

2012-07-27 Thread Marek Szyprowski
'const void *' is a safer type for caller function type. This patch updates all references to caller function type. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com Reviewed-by: Minchan Kim minc...@kernel.org --- include/linux

[PATCHv5 2/2] ARM: dma-mapping: remove custom consistent dma region

2012-07-27 Thread Marek Szyprowski
, becasue vmalloc areas cannot be reliably created in atomic context. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/kernel-parameters.txt |2 +- arch/arm/include/asm/dma-mapping.h |2 +- arch/arm/mm/dma

RE: [PATCH v2 3/4] media: videobuf2-dma-contig: use dma_mmap_coherent if available

2012-07-30 Thread Marek Szyprowski
*alloc_ctx, unsigned long vaddr, Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read

[PATCHv6 0/2] ARM: replace custom consistent dma region with vmalloc

2012-07-30 Thread Marek Szyprowski
allocations. This version addresses a few more cleanups pointed by Minchan Kim. This patch is based on vanilla v3.5 release. Best regards Marek Szyprowski Samsung Poland RD Center Changelog: v6: - more cleanups of minor issues pointed by Minchan Kim, moved arm_dma_mmap() changes into separate

[PATCHv6 1/2] mm: vmalloc: use const void * for caller argument

2012-07-30 Thread Marek Szyprowski
'const void *' is a safer type for caller function type. This patch updates all references to caller function type. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com Reviewed-by: Minchan Kim minc...@kernel.org --- include/linux

[PATCHv6 2/2] ARM: dma-mapping: remove custom consistent dma region

2012-07-30 Thread Marek Szyprowski
, because vmalloc areas cannot be reliably created in atomic context. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Reviewed-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/kernel-parameters.txt |2 +- arch/arm/include/asm/dma-mapping.h |2 +- arch/arm/mm/dma

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

2012-07-30 Thread Marek Szyprowski
for some specific use cases) as well as some unification of the common code for dma_mmap_attrs()/dma_mmap_coherent() functions. All extensions have been implemented and tested for ARM architecture. Thanks! Best regards Marek Szyprowski Samsung Poland RD Center Patch summary: Marek Szyprowski (11

Re: [v4 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-28 Thread Marek Szyprowski
them to my fixes-for-3.6 branch. Thanks for Your contribution! Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org

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

2012-09-03 Thread Marek Szyprowski
-for-3.6 for you to fetch changes up to 479ed93a4b98eef03fd8260f7ddc00019221c450: ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC (2012-08-28 21:01:07 +0200) Thanks! Best regards Marek Szyprowski Samsung Poland RD Center

RE: [PATCH v3 3/4] media: videobuf2-dma-contig: use dma_mmap_coherent if available

2012-08-16 Thread Marek Szyprowski
Hello, On Thursday, August 16, 2012 12:14 PM Hideki EIRAKU wrote: From: Marek Szyprowski m.szyprow...@samsung.com Subject: RE: [PATCH v3 3/4] media: videobuf2-dma-contig: use dma_mmap_coherent if available Date: Tue, 07 Aug 2012 16:53:25 +0200 I'm sorry for bringing this issue now, once

RE: [PATCH] ARM: dma-mapping: fix incorrect freeing of atomic allocations

2012-08-07 Thread Marek Szyprowski
/0x220) from [c0009140] (ret_fast_syscall+0x0/0x2c) [ 61.393390] ---[ end trace 0745420412c0325b ]--- The patch fixes this. Signed-off-by: Aaro Koskinen aaro.koski...@iki.fi Thanks for spotting this issue. I've applied it to my fixes branch. Best regards -- Marek Szyprowski Samsung Poland

RE: [PATCH] ARM: dma-mapping: fix atomic allocation alignment

2012-08-07 Thread Marek Szyprowski
for spotting and fixing the issue. I've applied it to my fixes branch. I'm really sorry for introducing such stupid bugs together with my changes. Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

RE: [PATCH v3 3/4] media: videobuf2-dma-contig: use dma_mmap_coherent if available

2012-08-07 Thread Marek Szyprowski
I wonder if there are any architectures, which don't use dma_map_ops based dma-mapping framework, which might use videobuf2-dma-conting module. Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

RE: [PATCH v3 1/4] ARM: dma-mapping: define ARCH_HAS_DMA_MMAP_COHERENT

2012-08-07 Thread Marek Szyprowski
vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, -- 1.7.0.4 I will take this patch to my dma-mapping kernel tree, to the fixes branch. Best regards -- Marek Szyprowski Samsung Poland RD Center -- To unsubscribe from this list: send the line unsubscribe

[GIT PULL] DMA-mapping fixups for v3.6-rc2

2012-08-08 Thread Marek Szyprowski
d9e0d149b5dcc2ef4688afc572b9906bcda941ef ARM: dma-mapping: fix incorrect freeing of atomic allocations are available in the git repository at: git://git.linaro.org/people/mszyprowski/linux-dma-mapping.git fixes-for-linus-for-3.6-rc2 Thanks! Best regards Marek Szyprowski Samsung Poland RD Center Patch summary: Aaro

[PATCH] PM / Domains: fix early device initialization failure

2012-08-09 Thread Marek Szyprowski
dev_pm_get_subsys_data() returns 1 when a new object has been created, what should not be considered as an error for pm_genpd_add_device(). Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/base/power/domain.c |9 - 1 files changed, 8 insertions(+), 1 deletions

[PATCH] regulator: core: request only valid gpio pins for regulator enable

2012-08-09 Thread Marek Szyprowski
. This patch fixes initialization of such drivers (like MAX8952 on UniversalC210 board), when '-1' is provided as enable gpio pin in the regulator's platform data. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/regulator/core.c |2 +- 1 files changed, 1 insertions(+), 1

RE: [RFC 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-22 Thread Marek Szyprowski
dma_alloc_attrs() directly. Please rework your patches to avoid such approach. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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

RE: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Marek Szyprowski
-- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Marek Szyprowski
we should not care here. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ

RE: [v2 4/4] ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC

2012-08-23 Thread Marek Szyprowski
a __iommu_free_atomic() function would also make it safer and easier to understand. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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

RE: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-23 Thread Marek Szyprowski
Hi Hiroshi, On Thursday, August 23, 2012 8:15 AM Hiroshi Doyu wrote: On Thu, 23 Aug 2012 07:58:34 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: Hello, On Wednesday, August 22, 2012 3:37 PM Hiroshi Doyu wrote: KyongHo Cho pullip@samsung.com wrote @ Wed, 22 Aug 2012 14

[PATCH] mm: cma: fix alignment requirements for contiguous regions

2012-08-24 Thread Marek Szyprowski
by one order, because MAX_ORDER alignment is not really needed. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com CC: Michal Nazarewicz min...@mina86.com --- drivers/base/dma-contiguous.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/dma

RE: [v3 1/4] ARM: dma-mapping: atomic_pool with struct page **pages

2012-08-24 Thread Marek Szyprowski
allocate them separately. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ

RE: [PATCH 2/3] [media] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-08-24 Thread Marek Szyprowski
, whatever comes first. Best regards -- Marek Szyprowski Samsung Poland RD Center -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ

RE: [RFC 1/2] cma: remove __reclaim_pages

2012-08-17 Thread Marek Szyprowski
(freelist); } so the actual CMA allocation itself is not using alloc_pages. By removing the watermark check you allow the CMA to breach watermarks and puts the system at risk of livelock. Fair enough. I will look into that. We will also looks into this issue. Best regards -- Marek

  1   2   3   4   5   6   7   8   9   10   >