All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
To: Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
	Gregory Clement <gregory.clement@free-electrons.com>
Cc: Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org,
	devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Olof Johansson <olof@lixom.net>, Nicolas Pitre <nico@fluxnic.net>,
	Lior Amsalem <alior@marvell.com>,
	Maen Suleiman <maen@marvell.com>,
	Tawfik Bayouk <tawfik@marvell.com>,
	Shadi Ammouri <shadi@marvell.com>,
	Eran Ben-Avi <benavi@marvell.com>,
	Yehuda Yitschak <yehuday@marvell.com>,
	Nadav Haklai <nadavh@marvell.com>,
	Ike Pan <ike.pan@canonical.com>,
	Chris Van Hoof <vanhoof@canonical.com>,
	Dan Frazier <dann.frazier@canonical.com>,
	Leif Lindholm <leif.lindholm@arm.com>,
	Jon Masters <jcm@redhat.com>, David Marlin <dmarlin@redhat.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: [PATCH v3 2/9] ARM: mvebu: Limit the DMA zone when LPAE is selected
Date: Tue,  9 Apr 2013 00:52:10 +0200	[thread overview]
Message-ID: <1365461538-30702-3-git-send-email-gregory.clement@free-electrons.com> (raw)
In-Reply-To: <1365461538-30702-1-git-send-email-gregory.clement@free-electrons.com>

When LPAE is activated on Armada XP, all registers and IOs are still
32bit, the 40bit extension is on the CPU to DRAM path (windows) only.
That means that all the DMA transfer are restricted to the low 32 bits
address space. This is limitation is achieved by selecting ZONE_DMA.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 arch/arm/mach-mvebu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 440b13e..db1bbc8 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -13,6 +13,7 @@ config ARCH_MVEBU
 	select MVEBU_CLK_CORE
 	select MVEBU_CLK_CPU
 	select MVEBU_CLK_GATING
+	select ZONE_DMA if ARM_LPAE
 
 if ARCH_MVEBU
 
-- 
1.7.9.5


WARNING: multiple messages have this Message-ID (diff)
From: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>,
	Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>,
	Gregory Clement
	<gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Ike Pan <ike.pan-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>,
	David Marlin <dmarlin-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Yehuda Yitschak <yehuday-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Tawfik Bayouk <tawfik-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Dan Frazier
	<dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>,
	Eran Ben-Avi <benavi-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Leif Lindholm <leif.lindholm-5wv7dgnIgG8@public.gmane.org>,
	Sebastian Hesselbarth
	<sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Jon Masters <jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Chris Van Hoof <vanhoof-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Maen Suleiman <maen-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Nadav Haklai <nadavh-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	Shadi Ammouri <shadi-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Subject: [PATCH v3 2/9] ARM: mvebu: Limit the DMA zone when LPAE is selected
Date: Tue,  9 Apr 2013 00:52:10 +0200	[thread overview]
Message-ID: <1365461538-30702-3-git-send-email-gregory.clement@free-electrons.com> (raw)
In-Reply-To: <1365461538-30702-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>

When LPAE is activated on Armada XP, all registers and IOs are still
32bit, the 40bit extension is on the CPU to DRAM path (windows) only.
That means that all the DMA transfer are restricted to the low 32 bits
address space. This is limitation is achieved by selecting ZONE_DMA.

Signed-off-by: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
---
 arch/arm/mach-mvebu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 440b13e..db1bbc8 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -13,6 +13,7 @@ config ARCH_MVEBU
 	select MVEBU_CLK_CORE
 	select MVEBU_CLK_CPU
 	select MVEBU_CLK_GATING
+	select ZONE_DMA if ARM_LPAE
 
 if ARCH_MVEBU
 
-- 
1.7.9.5

WARNING: multiple messages have this Message-ID (diff)
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/9] ARM: mvebu: Limit the DMA zone when LPAE is selected
Date: Tue,  9 Apr 2013 00:52:10 +0200	[thread overview]
Message-ID: <1365461538-30702-3-git-send-email-gregory.clement@free-electrons.com> (raw)
In-Reply-To: <1365461538-30702-1-git-send-email-gregory.clement@free-electrons.com>

When LPAE is activated on Armada XP, all registers and IOs are still
32bit, the 40bit extension is on the CPU to DRAM path (windows) only.
That means that all the DMA transfer are restricted to the low 32 bits
address space. This is limitation is achieved by selecting ZONE_DMA.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 arch/arm/mach-mvebu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 440b13e..db1bbc8 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -13,6 +13,7 @@ config ARCH_MVEBU
 	select MVEBU_CLK_CORE
 	select MVEBU_CLK_CPU
 	select MVEBU_CLK_GATING
+	select ZONE_DMA if ARM_LPAE
 
 if ARCH_MVEBU
 
-- 
1.7.9.5

  parent reply	other threads:[~2013-04-08 22:52 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 22:52 [PATCH v3 0/9] ARM: mvebu: Enable LPAE support for Armada XP SoCs Gregory CLEMENT
2013-04-08 22:52 ` Gregory CLEMENT
2013-04-08 22:52 ` Gregory CLEMENT
2013-04-08 22:52 ` [PATCH v3 1/9] ARM: dts: mvebu: fix cpus section indentation Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52 ` Gregory CLEMENT [this message]
2013-04-08 22:52   ` [PATCH v3 2/9] ARM: mvebu: Limit the DMA zone when LPAE is selected Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-11 18:07   ` Jason Cooper
2013-04-11 18:07     ` Jason Cooper
2013-04-11 18:07     ` Jason Cooper
2013-04-08 22:52 ` [PATCH v3 3/9] ARM: mvebu: Align the internal registers virtual base to support LPAE Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-11 18:08   ` Jason Cooper
2013-04-11 18:08     ` Jason Cooper
2013-04-11 18:08     ` Jason Cooper
2013-04-08 22:52 ` [PATCH v3 4/9] ARM: mvebu: Enable pj4b on LPAE compilations Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-11 18:08   ` Jason Cooper
2013-04-11 18:08     ` Jason Cooper
2013-04-11 18:08     ` Jason Cooper
2013-04-11 20:41     ` Gregory CLEMENT
2013-04-11 20:41       ` Gregory CLEMENT
2013-04-11 20:41       ` Gregory CLEMENT
2013-04-11 23:29       ` Jason Cooper
2013-04-11 23:29         ` Jason Cooper
2013-04-11 23:29         ` Jason Cooper
2013-04-08 22:52 ` [PATCH v3 5/9] ARM: dts: Add a 64 bits version of the skeleton device tree Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-11 18:12   ` Jason Cooper
2013-04-11 18:12     ` Jason Cooper
2013-04-11 18:12     ` Jason Cooper
2013-04-11 20:48     ` Gregory CLEMENT
2013-04-11 20:48       ` Gregory CLEMENT
2013-04-11 20:48       ` Gregory CLEMENT
2013-04-11 23:35       ` Jason Cooper
2013-04-11 23:35         ` Jason Cooper
2013-04-11 23:35         ` Jason Cooper
2013-04-08 22:52 ` [PATCH v3 6/9] ARM: dts: mvebu: move all peripherals inside soc Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52 ` [PATCH v3 7/9] ARM: dts: mvebu: Convert all the mvebu files to use the range property Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52 ` [PATCH v3 8/9] ARM: dts: mvebu: introduce internal-regs node Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52 ` [PATCH v3 9/9] ARM: dts: mvebu: Convert mvebu device tree files to 64 bits Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT
2013-04-08 22:52   ` Gregory CLEMENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1365461538-30702-3-git-send-email-gregory.clement@free-electrons.com \
    --to=gregory.clement@free-electrons.com \
    --cc=alior@marvell.com \
    --cc=andrew@lunn.ch \
    --cc=arnd@arndb.de \
    --cc=benavi@marvell.com \
    --cc=dann.frazier@canonical.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=dmarlin@redhat.com \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=grant.likely@secretlab.ca \
    --cc=ike.pan@canonical.com \
    --cc=jason@lakedaemon.net \
    --cc=jcm@redhat.com \
    --cc=leif.lindholm@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maen@marvell.com \
    --cc=nadavh@marvell.com \
    --cc=nico@fluxnic.net \
    --cc=olof@lixom.net \
    --cc=rob.herring@calxeda.com \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=shadi@marvell.com \
    --cc=tawfik@marvell.com \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=vanhoof@canonical.com \
    --cc=yehuday@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.