Re: [PATCH v3 3/7] of: reserved_mem: add support for named reserved mem nodes

2016-01-04 Thread Marek Szyprowski
Hi Rob, On 2015-12-31 00:25, Rob Herring wrote: On Wed, Dec 16, 2015 at 9:37 AM, Marek Szyprowski wrote: This patch allows device drivers to initialize more than one reserved memory region assigned to given device. When driver needs to use more than one reserved memory region, it should

[PATCH v3 7/7] media: s5p-mfc: add iommu support

2015-12-16 Thread Marek Szyprowski
are supports 256M of address space per each channel). Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 24 drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 79 ++ 2 files changed, 103 insertions(+) create mode 100644 drivers/me

[PATCH v3 2/7] ARM: dts: exynos4412-odroid*: enable MFC device

2015-12-16 Thread Marek Szyprowski
Enable support for Multimedia Codec (MFC) device for all Exynos4412-based Odroid boards. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid

[PATCH v3 1/7] ARM: Exynos: convert MFC device to generic reserved memory bindings

2015-12-16 Thread Marek Szyprowski
This patch replaces custom properties for definining reserved memory regions with generic reserved memory bindings. All custom code for handling MFC-specific reserved memory can be now removed from Exynos-DT generic board code. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/media

[PATCH v3 3/7] of: reserved_mem: add support for named reserved mem nodes

2015-12-16 Thread Marek Szyprowski
This patch allows device drivers to initialize more than one reserved memory region assigned to given device. When driver needs to use more than one reserved memory region, it should allocate child devices and initialize regions by index or name for each of its child devices. Signed-off-by: Marek

[PATCH v3 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support

2015-12-16 Thread Marek Szyprowski
would prefer to merge patches 1-2 via Samsung tree and patches 3-7 via media tree (there are no compile-time dependencies between patches 1-2 and 3-7). Patches have been tested on Odroid U3 (Exynos 4412 based) and Odroid XU3 (Exynos 5422 based) boards. Best regards Marek Szyprowski Samsung R&a

[PATCH v3 5/7] media: set proper max seg size for devices on Exynos SoCs

2015-12-16 Thread Marek Szyprowski
All multimedia devices found on Exynos SoCs support only contiguous buffers, so set DMA max segment size to DMA_BIT_MASK(32) to let memory allocator to correctly create contiguous memory mappings. Signed-off-by: Marek Szyprowski --- drivers/media/platform/exynos-gsc/gsc-core.c | 1 + drivers

[PATCH v3 6/7] media: s5p-mfc: replace custom reserved memory init code with generic one

2015-12-16 Thread Marek Szyprowski
by generic reserved memory bindings. Support for non-dt platform has been removed, because all supported platforms have been converted to device tree. Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 129 +++ 1 file changed, 62 inserti

[PATCH v3 4/7] media: vb2-dma-contig: add helper for setting dma max seg size

2015-12-16 Thread Marek Szyprowski
d-off-by: Marek Szyprowski --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 14 ++ include/media/videobuf2-dma-contig.h | 1 + 2 files changed, 15 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-contig.c b/drivers/media/v4l2-core/videobuf2-dma-contig.c

Re: [PATCH v2 4/7] media: vb2-dma-contig: add helper for setting dma max seg size

2015-12-15 Thread Marek Szyprowski
Hi Laurent, On 2015-12-14 16:50, Laurent Pinchart wrote: Hi Marek, On Monday 14 December 2015 10:20:22 Marek Szyprowski wrote: On 2015-12-13 20:57, Laurent Pinchart wrote: On Wednesday 09 December 2015 14:58:19 Marek Szyprowski wrote: Add a helper function for device drivers to set DMA&#

Re: [PATCH v2 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support

2015-12-14 Thread Marek Szyprowski
Hello, On 2015-12-13 20:52, Laurent Pinchart wrote: Hi Marek, Thank you for the patches. On Wednesday 09 December 2015 14:58:15 Marek Szyprowski wrote: Hello, This patchset finally perform cleanup of custom code in s5p-mfc codec driver. The first part is removal of custom, driver specific

Re: [PATCH v2 4/7] media: vb2-dma-contig: add helper for setting dma max seg size

2015-12-14 Thread Marek Szyprowski
Hello, On 2015-12-13 20:57, Laurent Pinchart wrote: Hi Marek, Thank you for the patch. On Wednesday 09 December 2015 14:58:19 Marek Szyprowski wrote: Add a helper function for device drivers to set DMA's max_seg_size. Setting it to largest possible value lets DMA-mapping API always c

[PATCH v2 6/7] media: s5p-mfc: replace custom reserved memory init code with generic one

2015-12-09 Thread Marek Szyprowski
by generic reserved memory bindings. Support for non-dt platform has been removed, because all supported platforms have been converted to device tree. Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 129 +++ 1 file changed, 62 inserti

[PATCH v2 3/7] of: reserved_mem: add support for named reserved mem nodes

2015-12-09 Thread Marek Szyprowski
This patch allows device drivers to initialize more than one reserved memory region assigned to given device. When driver needs to use more than one reserved memory region, it should allocate child devices and initialize regions by index or name for each of its child devices. Signed-off-by: Marek

[PATCH v2 5/7] media: set proper max seg size for devices on Exynos SoCs

2015-12-09 Thread Marek Szyprowski
All multimedia devices found on Exynos SoCs support only contiguous buffers, so set DMA max segment size to DMA_BIT_MASK(32) to let memory allocator to correctly create contiguous memory mappings. Signed-off-by: Marek Szyprowski --- drivers/media/platform/exynos-gsc/gsc-core.c | 1 + drivers

[PATCH v2 4/7] media: vb2-dma-contig: add helper for setting dma max seg size

2015-12-09 Thread Marek Szyprowski
d-off-by: Marek Szyprowski --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 15 +++ include/media/videobuf2-dma-contig.h | 1 + 2 files changed, 16 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-contig.c b/drivers/media/v4l2-core/videobuf2-dma-contig.c

[PATCH v2 1/7] ARM: Exynos: convert MFC device to generic reserved memory bindings

2015-12-09 Thread Marek Szyprowski
This patch replaces custom properties for definining reserved memory regions with generic reserved memory bindings. All custom code for handling MFC-specific reserved memory can be now removed from Exynos-DT generic board code. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/media

[PATCH v2 7/7] media: s5p-mfc: add iommu support

2015-12-09 Thread Marek Szyprowski
are supports 256M of address space per each channel). Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 24 drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 79 ++ 2 files changed, 103 insertions(+) create mode 100644 drivers/me

[PATCH v2 2/7] ARM: dts: exynos4412-odroid*: enable MFC device

2015-12-09 Thread Marek Szyprowski
Enable support for Multimedia Codec (MFC) device for all Exynos4412-based Odroid boards. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid

[PATCH v2 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support

2015-12-09 Thread Marek Szyprowski
would prefer to merge patches 1-2 via Samsung tree and patches 3-7 via media tree (there are no compile-time dependencies between patches 1-2 and 3-7). Patches have been tested on Odroid U3 (Exynos 4412 based) and Odroid XU3 (Exynos 5422 based) boards. Best regards Marek Szyprowski Samsung R&a

Re: [PATCH 3/7] of: reserved_mem: add support for named reserved mem nodes

2015-12-09 Thread Marek Szyprowski
Hello, On 2015-12-08 15:58, Rob Herring wrote: On Mon, Dec 7, 2015 at 6:08 AM, Marek Szyprowski wrote: This patch allows device drivers to use more than one reserved memory region assigned to given device. When NULL name is passed to of_reserved_mem_device_init(), the default (first) region

Re: [PATCH 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support

2015-12-08 Thread Marek Szyprowski
Hello, On 2015-12-07 13:08, Marek Szyprowski wrote: This patchset finally perform cleanup of custom code in s5p-mfc codec driver. The first part is removal of custom, driver specific code for intializing and handling of reserved memory. Instead, a generic code for reserved memory regions is

[PATCH 1/7] ARM: Exynos: convert MFC device to generic reserved memory bindings

2015-12-07 Thread Marek Szyprowski
This patch replaces custom properties for definining reserved memory regions with generic reserved memory bindings. All custom code for handling MFC-specific reserved memory can be now removed from Exynos-DT generic board code. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/media

[PATCH 4/7] media: vb2-dma-contig: add helper for setting dma max seg size

2015-12-07 Thread Marek Szyprowski
d-off-by: Marek Szyprowski --- Changelog: v3: - make this code a helper function instead of chaning max_seg_size unconditionally on vb2_dma_contig_init_ctx v2: - set max segment size only if a new dma params structure has been allocated, as suggested by Laurent Pinchart --- drivers/media/v4l2

[PATCH 6/7] media: s5p-mfc: replace custom reserved memory init code with generic one

2015-12-07 Thread Marek Szyprowski
by generic reserved memory bindings. Support for non-dt platform has been removed, because all supported platforms have been converted to device tree. Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 129 +++ 1 file changed, 62 inserti

[PATCH 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support

2015-12-07 Thread Marek Szyprowski
would prefer to merge patches 1-2 via Samsung tree and patches 3-7 via media tree (there are no compile-time dependencies between patches 1-2 and 3-7). Patches have been tested on Odroid U3 (Exynos 4412 based) and Odroid XU3 (Exynos 5422 based) boards. Best regards Marek Szyprowski Samsung R&a

[PATCH 7/7] media: s5p-mfc: add iommu support

2015-12-07 Thread Marek Szyprowski
are supports 256M of address space per each channel). Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 24 drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 79 ++ 2 files changed, 103 insertions(+) create mode 100644 drivers/me

[PATCH 2/7] ARM: dts: exynos4412-odroid*: enable MFC device

2015-12-07 Thread Marek Szyprowski
Enable support for Multimedia Codec (MFC) device for all Exynos4412-based Odroid boards. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid

[PATCH 3/7] of: reserved_mem: add support for named reserved mem nodes

2015-12-07 Thread Marek Szyprowski
This patch allows device drivers to use more than one reserved memory region assigned to given device. When NULL name is passed to of_reserved_mem_device_init(), the default (first) region is used. Signed-off-by: Marek Szyprowski --- drivers/of/of_reserved_mem.c| 101

[PATCH 5/7] media: set proper max seg size for devices on Exynos SoCs

2015-12-07 Thread Marek Szyprowski
All multimedia devices found on Exynos SoCs support only contiguous buffers, so set DMA max segment size to DMA_BIT_MASK(32) to let memory allocator to correctly create contiguous memory mappings. Signed-off-by: Marek Szyprowski --- drivers/media/platform/exynos-gsc/gsc-core.c | 1 + drivers

Re: [RFC PATCH v3 0/2] Expose DMA_MEMORY_EXCLUSIVE through shared-dma-pool

2015-11-13 Thread Marek Szyprowski
| 6 +- 2 files changed, 8 insertions(+), 1 deletion(-) Acked-by: Marek Szyprowski Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body o

Re: [PATCH 1/1] drivers: of: of_reserved_mem: fixup the alignment with CMA setup

2015-11-10 Thread Marek Szyprowski
setup correctly and thus CMA will fail to setup. This patch is to fixup the alignment to meet the CMA setup required. Mailing-list-thread: https://lkml.org/lkml/2015/11/9/138 Signed-off-by: Jason Liu Cc: Marek Szyprowski Cc: Grant Likely Cc: Rob Herring Acked-by: Marek Szyprowski --- d

Re: [PATCH 01/10] clk/samsung: exynos5433: add definitions of HDMI-PHY output clocks

2015-10-20 Thread Marek Szyprowski
? This patch just adds support for 2 more clocks to exynos 5433 clk driver, which were previously undefined. How this break compatibility with older DTBs? Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "

Re: [RFT 0/3] usb: usb3503: Fix probing on Arndale board (missing phy)

2015-10-08 Thread Marek Szyprowski
Hello, On 2015-10-08 11:35, Javier Martinez Canillas wrote: Hello, On 10/08/2015 08:23 AM, Marek Szyprowski wrote: Hello, On 2015-10-08 08:02, Krzysztof Kozlowski wrote: On 07.10.2015 23:26, Marek Szyprowski wrote: Hello, On 2015-10-07 02:30, Krzysztof Kozlowski wrote: Introduction

Re: [RFT 0/3] usb: usb3503: Fix probing on Arndale board (missing phy)

2015-10-07 Thread Marek Szyprowski
Hello, On 2015-10-08 08:02, Krzysztof Kozlowski wrote: On 07.10.2015 23:26, Marek Szyprowski wrote: Hello, On 2015-10-07 02:30, Krzysztof Kozlowski wrote: Introduction This patchset tries to fix probing of usb3503 on Arndale board if the Samsung PHY driver is probed later (or

Re: [RFT 0/3] usb: usb3503: Fix probing on Arndale board (missing phy)

2015-10-07 Thread Marek Szyprowski
ght now I didn't find any good solution for additional control for devices which are on autoprobed bus like usb. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message

Re: [PATCH v2] ARM: dts: exynos5420: fix wrong clock binding for sysmmu_fimd1_1

2015-09-23 Thread Marek Szyprowski
enabled and exynos-drm driver tries to allocate buffer via DMA mapping API on Odroid-XU3 board. Fixes: b70045167815 ("ARM: dts: add sysmmu nodes for exynos5420") Signed-off-by: Joonyoung Shim Cc: # v4.2 Reviewed-by: Javier Martinez Canillas Acked-by: Marek Szyprowski --- Changes for v2

Re: [PATCH/RFC 0/4] Probe deferral for IOMMU DT integration

2015-03-04 Thread Marek Szyprowski
-mapping.h | 7 +- include/linux/iommu.h| 2 + include/linux/of_device.h| 4 +- 11 files changed, 268 insertions(+), 27 deletions(-) Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line &

Re: [PATCH/RFC 0/4] Probe deferral for IOMMU DT integration

2015-02-11 Thread Marek Szyprowski
l check if this patchset helps in our case. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-30 Thread Marek Szyprowski
Hello, On 2015-01-29 11:56, Javier Martinez Canillas wrote: On Thu, Jan 29, 2015 at 10:15 AM, Marek Szyprowski wrote: Also, I wonder whether we could extend the mmc-pwrseq to cover your case? Did you consider that as an option? I didn't consider mmc-pwrseq yet. For me it l

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-29 Thread Marek Szyprowski
Hello, On 2015-01-29 11:56, Javier Martinez Canillas wrote: On Thu, Jan 29, 2015 at 10:15 AM, Marek Szyprowski wrote: Also, I wonder whether we could extend the mmc-pwrseq to cover your case? Did you consider that as an option? I didn't consider mmc-pwrseq yet. For me it l

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-29 Thread Marek Szyprowski
Hello, On 2015-01-28 15:24, Ulf Hansson wrote: On 28 January 2015 at 14:59, Marek Szyprowski wrote: There are boards (like Hardkernel's Odroid boards) on which eMMC card's reset line is connected to GPIO line instead of the hardware reset logic. In case of such boards, if firs

[PATCH 4/4] ARM: dts: exynos5422-odroidxu3: add eMMC reset line

2015-01-28 Thread Marek Szyprowski
This patch adds reset-gpios property to the eMMC slot, so the MMC driver is able to properly reset eMMC card on system restart and thus fixes system hang on software reboot. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 13 - 1 file changed, 12

Re: [PATCH 0/2] Fix reboot issue on Odroid boards with eMMC card

2015-01-27 Thread Marek Szyprowski
Hello, On 2015-01-27 09:56, Sjoerd Simons wrote: On Tue, 2015-01-27 at 09:11 +0100, Marek Szyprowski wrote: This patchset fixes reboot hang issue on Hardkernel's Odroid boards with eMMC card. Those boards are designed in such a way, that the eMMC nreset signal is routed to SoC GPIO

Re: [PATCH 1/2] power: reset: add driver for Hardkernel's Odroid boards

2015-01-27 Thread Marek Szyprowski
Hello, On 2015-01-25 15:32, Sebastian Reichel wrote: On Fri, Jan 23, 2015 at 12:11:22PM +0100, Marek Szyprowski wrote: Frankly, I analyzed this case once again and I came to conclusion that there is no need to make a separate reset driver for Odroid boards. There is nothing special, specific

[PATCH 2/2] ARM: dts: exynos*-odroid*: add eMMC reset line

2015-01-27 Thread Marek Szyprowski
This patch add samsung,dw-mshc-reset-gpios property to the eMMC slot, so Exynos DW MMC driver is able to properly reset eMMC card on system restart and thus fixes hang on software reboot. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 1 + arch/arm/boot

[PATCH 1/2] mmc: dw_mmc-exynos: add support for controlling emmc reset pin

2015-01-27 Thread Marek Szyprowski
s code for handling such cases. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/mmc/exynos-dw-mshc.txt | 6 +++ drivers/mmc/host/dw_mmc-exynos.c | 43 +- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetre

[PATCH 0/2] Fix reboot issue on Odroid boards with eMMC card

2015-01-27 Thread Marek Szyprowski
river. Best regards Marek Szyprowski Samsung R&D Institute Poland Changelog: initial version: http://thread.gmane.org/gmane.linux.power-management.general/51855/ Path summary: Marek Szyprowski (2): mmc: dw_mmc-exynos: add support for controlling emmc reset pin ARM: dts: exynos*-odroid*:

Re: [PATCH 1/2] power: reset: add driver for Hardkernel's Odroid boards

2015-01-23 Thread Marek Szyprowski
Hello, On 2015-01-22 02:33, Joonyoung Shim wrote: On 01/22/2015 10:06 AM, Sebastian Reichel wrote: On Wed, Oct 29, 2014 at 02:13:28PM +0100, Marek Szyprowski wrote: This patch adds a driver implementing correct reboot and poweroff procedures for Exynos4412-based Hardkernel's Odroid X/X2/

[PATCH v3 1/7 RESEND] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Marek Szyprowski
This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski --- RESEND version: - fixed spelling mistakes, thanks go to Geert! --- .../devicetree

[PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains

2015-01-14 Thread Marek Szyprowski
This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/power/power_domain.txt | 29 ++ 1

Re: [PATCH] drivers: of: Export of_reserved_mem_device_{init,release}

2015-01-13 Thread Marek Szyprowski
o do it on their own. Assuming that those functions need to be called from drivers, then EXPORT_SYMPOL_GPL is the correct approach. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the bod

Re: [PATCH RFC v2 08/12] soc: samsung: pm_domain: Add support for parent power domain

2014-12-03 Thread Marek Szyprowski
#x27;ll have to use "power-domains" properties to link them together. I agree. I will send updated patch for this purpose for existing exynos4 power domain driver. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe from this list: send the line "

[PATCH 1/2] power: reset: add driver for Hardkernel's Odroid boards

2014-10-29 Thread Marek Szyprowski
This patch adds a driver implementing correct reboot and poweroff procedures for Exynos4412-based Hardkernel's Odroid X/X2/U2/U3/U3+ boards. Signed-off-by: Marek Szyprowski --- .../bindings/power/reset/odroid-reset.txt | 18 drivers/power/reset/Kc

[PATCH 2/2] ARM: dts: exynos4412-odroid-common: add reboot handler

2014-10-29 Thread Marek Szyprowski
This patch adds node which enables board-specific reboot/poweroff code. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412

Re: [PATCH v2 0/4] CMA & device tree, once again

2014-08-26 Thread Marek Szyprowski
Hello, On 2014-08-09 02:28, Laura Abbott wrote: On 7/14/2014 12:12 AM, Marek Szyprowski wrote: Hello, This is one more respin of the patches which add support for creating reserved memory regions defined in device tree. The last attempt (http://lists.linaro.org/pipermail/linaro-mm-sig/2014

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-30 Thread Marek Szyprowski
Hello, On 2014-07-31 01:49, Grant Likely wrote: On Tue, Jul 29, 2014 at 11:33 PM, Marek Szyprowski wrote: Hello, On 2014-07-29 23:54, Grant Likely wrote: On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski wrote: Initialization procedure of dma coherent pool has been split into two

Re: [PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-29 Thread Marek Szyprowski
Hello, On 2014-07-29 23:54, Grant Likely wrote: On Mon, 14 Jul 2014 10:28:06 +0200, Marek Szyprowski wrote: Initialization procedure of dma coherent pool has been split into two parts, so memory pool can now be initialized without assigning to particular struct device. Then initialized

Re: [PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-29 Thread Marek Szyprowski
Hello, On 2014-07-28 16:17, Grant Likely wrote: On Mon, 14 Jul 2014 10:28:05 +0200, 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. Signed-off-by

[PATCH v2 RESEND 4/4] drivers: dma-contiguous: add initialization from device tree

2014-07-14 Thread Marek Szyprowski
Add a function to create CMA region from previously reserved memory 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 --- drivers/base/dma-contigu

[PATCH v2 RESEND 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-14 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/of

[PATCH v2 RESEND 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-14 Thread Marek Szyprowski
spinlock has been added to dma_coherent_mem structure. The last part of this patch adds support for handling 'shared-dma-pool' reserved-memory device tree nodes. Signed-off-by: Marek Szyprowski --- drivers/base/dma-coherent.c | 137 ++-- 1 file ch

[PATCH v2 RESEND 1/4] drivers: of: add automated assignment of reserved regions to client devices

2014-07-14 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 632aae861375..59fb12e84e6b

[PATCH v2 RESEND 0/4] CMA & device tree, once again

2014-07-14 Thread Marek Szyprowski
; size = <0x400>; alignment = <0x40>; }; Then the defined region can be assigned to devices: scaler: scaler@1250 { memory-region = <&multimedia_reserved>; /* ... */ }; codec: codec@1260 { memory-region = <&multimedi

[PATCH v2 3/4] drivers: dma-coherent: add initialization from device tree

2014-07-14 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(+) di

[PATCH v2 1/4] drivers: of: add automated assignment of reserved regions to client devices

2014-07-14 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 632aae861375..59fb12e84e6b

[PATCH v2 4/4] drivers: dma-contiguous: add initialization from device tree

2014-07-14 Thread Marek Szyprowski
Add a function to create CMA region from previously reserved memory 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 --- drivers/base/dma-contigu

[PATCH v2 0/4] CMA & device tree, once again

2014-07-14 Thread Marek Szyprowski
the defined region can be assigned to devices: scaler: scaler@1250 { memory-region = <&multimedia_reserved>; /* ... */ }; codec: codec@1260 { memory-region = <&multimedia_reserved>; /* ... */ }; Best regards Marek Szyprowski Samsung

[PATCH v2 2/4] drivers: of: initialize and assign reserved memory to newly created devices

2014-07-14 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/of

Re: [PATCH 4/4] drivers: dma-contiguous: add initialization from device tree

2014-07-07 Thread Marek Szyprowski
Hello, On 2014-07-04 07:52, Joonsoo Kim wrote: -Original Message- From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] Sent: Wednesday, July 02, 2014 7:49 PM Subject: [PATCH 4/4] drivers: dma-contiguous: add initialization from device tree Add a code to create CMA region from

Re: [PATCH V2 0/2] Sound support for Exynos4412 Odroid X2, U3 board

2014-06-24 Thread Marek Szyprowski
the right times? Or do you think the problem is more likely to be clock-related? Hard to say right now, but at least we need to test a bit more our solutions with different initial clocks configuration. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- To unsubscribe

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/of

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

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

[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

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

2014-02-28 Thread Marek Szyprowski
t reserved 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 insertion

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

[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 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 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
d by Josh Cartwright Summary: Grant Likely (1): of: document bindings 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

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.

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. &

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

2014-02-21 Thread Marek Szyprowski
-dma-pool' regions without 'reusable' 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

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

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

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

2014-02-21 Thread Marek Szyprowski
t reserved 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/driver

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

[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
he client 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 f

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

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

  1   2   >