From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/19] removal of mach/vmalloc.h and generic optimizations
Date: Sun, 18 Sep 2011 10:40:37 +0200 [thread overview]
Message-ID: <1933895.GJBlYra9yP@wuerfel> (raw)
In-Reply-To: <alpine.LFD.2.00.1109172238070.20358@xanadu.home>
On Saturday 17 September 2011 22:46:33 Nicolas Pitre wrote:
> On Sat, 17 Sep 2011, Arnd Bergmann wrote:
>
> > On Friday 16 September 2011 03:07:11 Nicolas Pitre wrote:
> > > This patch series removes all instances of mach/vmalloc.h in order to
> > > have a more unified memory map across all ARM architectures. To do so,
> > > the static mappings are moved inside the vmalloc area. And finally this
> > > allows for a generic optimization to ioremap where static mappings are
> > > reused whenever possible, using common code instead of having this
> > > duplicated in a couple places.
> > >
> > > This also provides a net reduction of more than 1200 lines of code.
>
> > Doing some randconfig tests, I noticed that your series is currently broken
> > on shmobile, which triggers a
> >
> > BUILD_BUG_ON(VMALLOC_END > CONSISTENT_BASE);
> >
> > in mem_init(), because the platform has a CONSISTENT_DMA_SIZE of 158MB.
> > All other platforms have a CONSISTENT_DMA_SIZE of at most 14MB, which
> > works correctly.
>
> Any idea why shmobile requires such an amount of consistent memory?
No, I couldn't find anything in the code or the changelog why this was
done. Magnus changed it in this commit:
commit 28f0721a79046056ced3b9bd79c319c5c417ec30
Author: Magnus Damm <damm@opensource.se>
Date: Wed Apr 28 08:25:30 2010 +0000
ARM: mach-shmobile: Set CONSISTENT_DMA_SIZE to 158 MB
This patch sets CONSISTENT_DMA_SIZE to 158 MB
for all SH-Mobile ARM processors.
The DMA area is mapped at 0xf6000000 - 0xffdfffff,
on top of the 256 MB I/O window at 0xe6000000.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Maybe he can give a better explanation and can say whether it's
actually required. The patch series introducing it contained
the introduction of the shdma dmaengine driver and some changes
to video drivers, but I could not tell how they are related
to this change.
> > My feeling is that a 158MB CONSISTENT_DMA_SIZE causes other problems
> > anyway because we cannot map regular RAM both cached and uncached,
> > but this is still a regression. The problem might be solved using
> > Marek's CMA patches, which should eliminate the need for a huge
> > CONSISTENT_DMA_SIZE.
>
> Maybe. However I don't want for this series to depend on CMA. I'll
> find some temporary hack in the mean time.
Ok
Arnd
next prev parent reply other threads:[~2011-09-18 8:40 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 7:07 [PATCH 0/19] removal of mach/vmalloc.h and generic optimizations Nicolas Pitre
2011-09-16 7:07 ` [PATCH 01/19] ARM: sort the meminfo array earlier Nicolas Pitre
2011-09-16 17:21 ` Stephen Boyd
2011-09-16 18:09 ` Nicolas Pitre
2011-09-16 19:21 ` Stephen Boyd
2011-09-16 20:44 ` Nicolas Pitre
2011-09-17 15:05 ` Russell King - ARM Linux
2011-09-17 15:49 ` Nicolas Pitre
2011-09-19 4:06 ` Nicolas Pitre
2011-09-19 11:22 ` Russell King - ARM Linux
2011-09-16 7:07 ` [PATCH 02/19] ARM: mach-dove: remove inclusion of <mach/vmalloc.h> Nicolas Pitre
2011-09-16 7:07 ` [PATCH 03/19] ARM: mach-prima2: don't define SIRFSOC_VA in terms of VMALLOC_END Nicolas Pitre
2011-09-16 7:25 ` Barry Song
2011-09-16 7:07 ` [PATCH 04/19] ARM: plat-mxc: remove inclusion of <mach/vmalloc.h> Nicolas Pitre
2011-09-16 7:07 ` [PATCH 05/19] ARM: plat-omap: don't define OMAP1_SRAM_VA in terms of VMALLOC_END Nicolas Pitre
2011-09-16 7:07 ` [PATCH 06/19] ARM: mach-at91: remove arch specific special handling for ioremap Nicolas Pitre
2011-09-19 13:35 ` Jean-Christophe PLAGNIOL-VILLARD
2011-09-19 14:13 ` Russell King - ARM Linux
2011-09-19 15:12 ` Nicolas Pitre
2011-09-19 15:08 ` Nicolas Pitre
2011-09-16 7:07 ` [PATCH 07/19] ARM: mach-davinci: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 08/19] ARM: mach-tegra: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 09/19] ARM: plat-omap: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 10/19] ARM: mach-bcmring: use proper constant to identify DMA memory area Nicolas Pitre
2011-09-16 7:07 ` [PATCH 11/19] ARM: mach-orion5x: remove arch specific special handling for ioremap Nicolas Pitre
2011-09-16 7:07 ` [PATCH 12/19] ARM: mach-kirkwood: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 13/19] ARM: mach-ixp23xx: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 14/19] ARM: plat-iop: " Nicolas Pitre
2011-09-16 7:07 ` [PATCH 15/19] mm: add vm_area_add_early() Nicolas Pitre
2011-09-16 7:07 ` [PATCH 16/19] ARM: move iotable mappings within the vmalloc region Nicolas Pitre
2011-09-16 10:39 ` Jamie Iles
2011-09-17 15:19 ` Russell King - ARM Linux
2011-09-17 16:05 ` Nicolas Pitre
2011-09-17 16:20 ` Russell King - ARM Linux
2011-09-19 4:13 ` Nicolas Pitre
2011-09-19 11:21 ` Russell King - ARM Linux
2011-09-19 4:18 ` Nicolas Pitre
2011-09-19 11:20 ` Russell King - ARM Linux
2011-09-19 15:05 ` Nicolas Pitre
2011-09-16 7:07 ` [PATCH 17/19] ARM: simplify __iounmap() when dealing with section based mapping Nicolas Pitre
2011-09-16 7:07 ` [PATCH 18/19] ARM: add generic ioremap optimization by reusing static mappings Nicolas Pitre
2011-09-16 7:07 ` [PATCH 19/19] ARM: big removal of now unused vmalloc.h files Nicolas Pitre
2011-09-16 13:26 ` [PATCH 0/19] removal of mach/vmalloc.h and generic optimizations Jamie Iles
2011-09-17 20:52 ` Arnd Bergmann
2011-09-18 2:46 ` Nicolas Pitre
2011-09-18 8:40 ` Arnd Bergmann [this message]
2011-09-19 4:39 ` Nicolas Pitre
2011-09-21 1:14 ` Nicolas Pitre
2011-09-21 17:09 ` Nicolas Pitre
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=1933895.GJBlYra9yP@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox