Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1387688 > unrolled thread

[PATCH 0/2] ARC: enable per-device dma and reserved memory in DT

Started byAlexey Brodkin <Alexey.Brodkin@synopsys.com>
First post2016-04-26 18:30 +0200
Last post2016-04-26 18:40 +0200
Articles 3 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] ARC: enable per-device dma and reserved memory in DT Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-26 18:30 +0200
    [PATCH 1/2] ARC: support generic per-device coherent dma mem Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-26 18:40 +0200
    [PATCH 2/2] ARC: add support for reserved memory defined by device tree Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-04-26 18:40 +0200

#1387688 — [PATCH 0/2] ARC: enable per-device dma and reserved memory in DT

FromAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Date2016-04-26 18:30 +0200
Subject[PATCH 0/2] ARC: enable per-device dma and reserved memory in DT
Message-ID<rse28-2io-49@gated-at.bofh.it>
This tiny series enbles support of generic per-device coherent dma memory
and ability to specify reserved memory regions to be used in those
per-device mappings.

In particular this allowed us to move frame-buffer memory out of
IOC aperture.

Cc: linux-kernel@vger.kernel.org

Alexey Brodkin (2):
  ARC: support generic per-device coherent dma mem
  ARC: add support for reserved memory defined by device tree

 arch/arc/Kconfig   | 2 ++
 arch/arc/mm/init.c | 4 ++++
 2 files changed, 6 insertions(+)

-- 
2.5.5

[toc] | [next] | [standalone]


#1387702 — [PATCH 1/2] ARC: support generic per-device coherent dma mem

FromAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Date2016-04-26 18:40 +0200
Subject[PATCH 1/2] ARC: support generic per-device coherent dma mem
Message-ID<rsebN-2ma-31@gated-at.bofh.it>
In reply to#1387688
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: linux-kernel@vger.kernel.org
---
 arch/arc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 208aae0..61d69e6 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -37,6 +37,7 @@ config ARC
 	select OF_EARLY_FLATTREE
 	select PERF_USE_VMALLOC
 	select HAVE_DEBUG_STACKOVERFLOW
+	select HAVE_GENERIC_DMA_COHERENT
 
 config MIGHT_HAVE_PCI
 	bool
-- 
2.5.5

[toc] | [prev] | [next] | [standalone]


#1387705 — [PATCH 2/2] ARC: add support for reserved memory defined by device tree

FromAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Date2016-04-26 18:40 +0200
Subject[PATCH 2/2] ARC: add support for reserved memory defined by device tree
Message-ID<rsebN-2ma-41@gated-at.bofh.it>
In reply to#1387688
Enable reserved memory initialization from device tree.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: linux-kernel@vger.kernel.org
---
 arch/arc/Kconfig   | 1 +
 arch/arc/mm/init.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 61d69e6..33c1fc7 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -35,6 +35,7 @@ config ARC
 	select NO_BOOTMEM
 	select OF
 	select OF_EARLY_FLATTREE
+	select OF_RESERVED_MEM
 	select PERF_USE_VMALLOC
 	select HAVE_DEBUG_STACKOVERFLOW
 	select HAVE_GENERIC_DMA_COHERENT
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index 7d2c4fb..5487d0b 100644
--- a/arch/arc/mm/init.c
+++ b/arch/arc/mm/init.c
@@ -13,6 +13,7 @@
 #ifdef CONFIG_BLK_DEV_INITRD
 #include <linux/initrd.h>
 #endif
+#include <linux/of_fdt.h>
 #include <linux/swap.h>
 #include <linux/module.h>
 #include <linux/highmem.h>
@@ -136,6 +137,9 @@ void __init setup_arch_memory(void)
 		memblock_reserve(__pa(initrd_start), initrd_end - initrd_start);
 #endif
 
+	early_init_fdt_reserve_self();
+	early_init_fdt_scan_reserved_mem();
+
 	memblock_dump_all();
 
 	/*----------------- node/zones setup --------------------------*/
-- 
2.5.5

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web