From: linus.walleij@stericsson.com (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: is there the sample for how to use the tcm on userspace ?
Date: Tue, 31 May 2011 17:44:25 +0200 [thread overview]
Message-ID: <4DE50CD9.3050506@stericsson.com> (raw)
In-Reply-To: <BANLkTi=XY2pkENWGacj77wAFf2A0i0V=sg@mail.gmail.com>
On 05/31/2011 11:35 AM, Jello huang wrote:
> It is easy to define the interface .But
> on ARM11 (ARM10?):
>
> CPU
> |
> MMU
> / \
> Cache TCM
> |
> External memory interface
This is how all TCM works, it's behind the MMU but you can *also*
move it in physical address space.
> If we use TCM from userspace whether it directly use TCM or it need
> through MMU
You need to get hold of the memory somehow, but there is code in
the kernel managing it as a memory pool, so you need a userspace
interface to tcm_alloc() and tcm_free() and the resulting handles.
> And how much benefit we can get when we use the SDRAM or TCM from
> usespace.
Define benefit, plus this depends on the bus and cache topology and
frequency of your system.
Frank Rowand presented a very compelling case for using on-chip
memory in the critical latency paths to avoid cache stalls on SMP
systems:
http://www.elinux.org/images/d/dd/Elc2011_rowand.pdf
However my TCM interface is not yet SMP aware. I was planning
to try to fix it for the PB11MPcore (which has per-cpu TCM!) someday
as an interesting exercise. But that depend on time and planning etc.
Yours,
Linus Walleij
prev parent reply other threads:[~2011-05-31 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BANLkTi=_1cXiQ6A6fCmfywyHHAOvB3DQpA@mail.gmail.com>
2011-05-31 8:11 ` is there the sample for how to use the tcm on userspace ? Linus Walleij
[not found] ` <BANLkTi=aDBjBsAx0XwL1HRKCnO1=2wHaVA@mail.gmail.com>
2011-05-31 8:37 ` Linus Walleij
[not found] ` <BANLkTi=XY2pkENWGacj77wAFf2A0i0V=sg@mail.gmail.com>
2011-05-31 15:44 ` Linus Walleij [this message]
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=4DE50CD9.3050506@stericsson.com \
--to=linus.walleij@stericsson.com \
--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