* [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE
@ 2013-07-26 13:05 Will Deacon
2013-08-11 21:51 ` Olof Johansson
0 siblings, 1 reply; 5+ messages in thread
From: Will Deacon @ 2013-07-26 13:05 UTC (permalink / raw)
To: linux-arm-kernel
On systems running with LPAE enabled, DMA masters capable only of 32-bit
addressing require ZONE_DMA to be set. Given the proliferation of such
masters, and the tendency to re-use existing system IP with newer
processors, this patch defaults ZONE_DMA to y if ARM_LPAE, rather than
force each SoC to select it individually.
Cc: Olof Johansson <olof@lixom.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
arch/arm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 82f06982..7fede35 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -192,6 +192,7 @@ config ARCH_MAY_HAVE_PC_FDC
config ZONE_DMA
bool
+ default y if ARM_LPAE
config NEED_DMA_MAP_STATE
def_bool y
--
1.8.2.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE
2013-07-26 13:05 [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE Will Deacon
@ 2013-08-11 21:51 ` Olof Johansson
2013-08-11 22:05 ` Russell King - ARM Linux
0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2013-08-11 21:51 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jul 26, 2013 at 02:05:51PM +0100, Will Deacon wrote:
> On systems running with LPAE enabled, DMA masters capable only of 32-bit
> addressing require ZONE_DMA to be set. Given the proliferation of such
> masters, and the tendency to re-use existing system IP with newer
> processors, this patch defaults ZONE_DMA to y if ARM_LPAE, rather than
> force each SoC to select it individually.
>
> Cc: Olof Johansson <olof@lixom.net>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
> ---
> arch/arm/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 82f06982..7fede35 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -192,6 +192,7 @@ config ARCH_MAY_HAVE_PC_FDC
>
> config ZONE_DMA
> bool
> + default y if ARM_LPAE
I guess you could bikeshed over this vs selecting it from ARM_LPAE, but either
way gets the work done. I don't have a preference.
Acked-by: Olof Johansson <olof@lixom.net>
..for Russell's patch tracker?
-Olof
^ permalink raw reply [flat|nested] 5+ messages in thread
* [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE
2013-08-11 21:51 ` Olof Johansson
@ 2013-08-11 22:05 ` Russell King - ARM Linux
2013-08-11 22:14 ` Olof Johansson
0 siblings, 1 reply; 5+ messages in thread
From: Russell King - ARM Linux @ 2013-08-11 22:05 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Aug 11, 2013 at 02:51:12PM -0700, Olof Johansson wrote:
> On Fri, Jul 26, 2013 at 02:05:51PM +0100, Will Deacon wrote:
> > On systems running with LPAE enabled, DMA masters capable only of 32-bit
> > addressing require ZONE_DMA to be set. Given the proliferation of such
> > masters, and the tendency to re-use existing system IP with newer
> > processors, this patch defaults ZONE_DMA to y if ARM_LPAE, rather than
> > force each SoC to select it individually.
> >
> > Cc: Olof Johansson <olof@lixom.net>
> > Signed-off-by: Will Deacon <will.deacon@arm.com>
> > ---
> > arch/arm/Kconfig | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> > index 82f06982..7fede35 100644
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -192,6 +192,7 @@ config ARCH_MAY_HAVE_PC_FDC
> >
> > config ZONE_DMA
> > bool
> > + default y if ARM_LPAE
>
> I guess you could bikeshed over this vs selecting it from ARM_LPAE, but either
> way gets the work done. I don't have a preference.
>
> Acked-by: Olof Johansson <olof@lixom.net>
>
> ..for Russell's patch tracker?
No. As I keep telling people, go look at my dma-mask patches and stop
papering over this problem.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE
2013-08-11 22:05 ` Russell King - ARM Linux
@ 2013-08-11 22:14 ` Olof Johansson
2013-08-11 22:19 ` Russell King - ARM Linux
0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2013-08-11 22:14 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Aug 11, 2013 at 3:05 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> No. As I keep telling people, go look at my dma-mask patches and stop
> papering over this problem.
Ah, yes, I'm going through email backlog. The DMA mask series will
definitely cover this in a better way.
This is a minimal patch that could be suitable for -stable backport.
If we care about that -- I'm sure people can just amend their configs
where needed.
-Olof
^ permalink raw reply [flat|nested] 5+ messages in thread
* [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE
2013-08-11 22:14 ` Olof Johansson
@ 2013-08-11 22:19 ` Russell King - ARM Linux
0 siblings, 0 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2013-08-11 22:19 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Aug 11, 2013 at 03:14:26PM -0700, Olof Johansson wrote:
> On Sun, Aug 11, 2013 at 3:05 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
>
> > No. As I keep telling people, go look at my dma-mask patches and stop
> > papering over this problem.
>
> Ah, yes, I'm going through email backlog. The DMA mask series will
> definitely cover this in a better way.
>
> This is a minimal patch that could be suitable for -stable backport.
> If we care about that -- I'm sure people can just amend their configs
> where needed.
Well, it's not a regression, it's something which has never worked. In
my mind, that isn't really -stable material - stable is for stuff that
was either working and has been broken or for security stuff.
Having all your system memory above 4G _and_ having 32-bit DMA masks is
something which never worked.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-08-11 22:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 13:05 [RFC PATCH] ARM: dma: default ZONE_DMA to y if ARM_LPAE Will Deacon
2013-08-11 21:51 ` Olof Johansson
2013-08-11 22:05 ` Russell King - ARM Linux
2013-08-11 22:14 ` Olof Johansson
2013-08-11 22:19 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).