From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
To: ext Tony Lindgren <tony@atomide.com>
Cc: ext Russell King - ARM Linux <linux@arm.linux.org.uk>,
Grazvydas Ignotas <notasas@gmail.com>,
"Shilimkar, Santosh" <santosh.shilimkar@ti.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RFC] Initial attempt to make ARM use LMB
Date: Tue, 18 May 2010 10:47:57 +0300 [thread overview]
Message-ID: <1274168877.2307.70.camel@tubuntu.research.nokia.com> (raw)
In-Reply-To: <20100517173715.GA5818@atomide.com>
On Mon, 2010-05-17 at 19:37 +0200, ext Tony Lindgren wrote:
> Sorry if I've been confused about what vram.c is doing.
>
> How about change vram.c to use dma_alloc_coherent for now? That would
> break the non-standard behaviour to preserve the log set by the
> bootloader, but that should be OK until we know how to deal with that
> properly.
>
> After that you could just optionally reserve the bootloader memory
> area using LMB based on some flags in the platform init data.
>From vram.c's commit log about features vram.c supports but dma_alloc_*
doesn't:
- Support for OMAP2's SRAM
- Allocate without ioremapping
- Allocate at defined physical addresses
- Allows larger VRAM area and larger allocations
I haven't heard anybody using OMAP2's SRAM for framebuffer, so that's
probably not an issue.
Reserving the memory at defined physical address is needed for the
bootloader-framebuffer, but I think it's only used on N900's product
kernel with some additional hacks. So that's probably not an issue
either.
Allocating without ioremapping... dma_alloc_* always ioremaps the
allocated area, even though it's never used (in some cases). I think
this is the case when using OMAP's VRFB rotation HW. This may or may not
be an issue, depending on the amount of memory allocated and the
available virtual mem area.
And the last point, I think there was a limit of about 8MB when
allocating with dma_alloc_* (I may remember wrong). This could be a
problem for some use cases.
So, I guess it's possible to use dma_alloc_*, but there may be some
complications.
I still haven't found time to look at the LMB stuff, but I hope I'll
manage to do that this week.
Tomi
next prev parent reply other threads:[~2010-05-18 7:48 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 23:32 [RFC] Initial attempt to make ARM use LMB Russell King - ARM Linux
2010-03-31 6:43 ` Jeremy Kerr
2010-04-01 9:47 ` Tony Lindgren
2010-04-09 11:13 ` Russell King - ARM Linux
2010-04-08 15:32 ` Rabin Vincent
2010-04-08 18:27 ` Russell King - ARM Linux
2010-04-09 11:11 ` Russell King - ARM Linux
2010-04-10 3:42 ` Rabin Vincent
2010-04-10 7:03 ` Russell King - ARM Linux
2010-04-10 11:56 ` Rabin Vincent
2010-04-14 7:34 ` Benjamin Herrenschmidt
2010-05-05 15:02 ` Russell King - ARM Linux
2010-05-13 17:40 ` Russell King - ARM Linux
2010-05-13 21:19 ` Tony Lindgren
2010-05-13 21:58 ` Russell King - ARM Linux
2010-05-13 22:01 ` Tony Lindgren
2010-05-13 22:12 ` Russell King - ARM Linux
2010-05-14 7:24 ` Shilimkar, Santosh
2010-05-14 10:11 ` Grazvydas Ignotas
2010-05-14 10:16 ` Russell King - ARM Linux
2010-05-17 9:38 ` Grazvydas Ignotas
2010-05-17 9:44 ` Russell King - ARM Linux
2010-05-17 10:26 ` Tomi Valkeinen
2010-05-17 17:37 ` Tony Lindgren
2010-05-18 7:47 ` Tomi Valkeinen [this message]
2010-05-18 8:40 ` Russell King - ARM Linux
2010-05-18 8:58 ` Tomi Valkeinen
2010-05-14 15:22 ` Tony Lindgren
2010-05-14 15:32 ` Shilimkar, Santosh
2010-05-14 15:43 ` Tony Lindgren
2010-05-22 21:58 ` Russell King - ARM Linux
2010-05-26 0:44 ` Tony Lindgren
2010-05-26 7:50 ` Russell King - ARM Linux
2010-05-26 13:51 ` Tony Lindgren
2010-05-26 21:40 ` Russell King - ARM Linux
2010-05-27 8:52 ` Tomi Valkeinen
2010-05-27 9:25 ` Russell King - ARM Linux
2010-05-27 9:47 ` Tomi Valkeinen
2010-05-28 14:32 ` Russell King - ARM Linux
2010-05-31 8:04 ` Tony Lindgren
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=1274168877.2307.70.camel@tubuntu.research.nokia.com \
--to=tomi.valkeinen@nokia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=notasas@gmail.com \
--cc=santosh.shilimkar@ti.com \
--cc=tony@atomide.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 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).