From: Artem Bityutskiy <dedekind1@gmail.com>
To: Ameya Palande <ameya.palande@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Ramirez Luna, Omar" <omar.ramirez@ti.com>,
"Guzman Lugo, Fernando" <x0095840@ti.com>,
Doyu Hiroshi <hiroshi.doyu@nokia.com>,
Contreras Felipe <felipe.contreras@nokia.com>,
Tereshonkov Roman Sergeevitch <roman.tereshonkov@nokia.com>
Subject: Re: [DSPBRIDGE RFC] Combining Reserve and Map into a new IOCTL
Date: Tue, 01 Sep 2009 18:13:19 +0300 [thread overview]
Message-ID: <4A9D3A0F.4060608@gmail.com> (raw)
In-Reply-To: <4A9D2313.4040408@nokia.com>
On 09/01/2009 04:35 PM, Ameya Palande wrote:
> Current approach has following problems:
0. It is brain-dead.
> 1. Caller has to perform 4 system calls in order to map and unmap a buffer.
> 2. Kernel has no idea about the type of buffer (input/output). So depending
> on buffer type caller has to explicitly call DSPProcessor_FlushMemory() or
> DSPProcessor_InvalidateMemory().
>
> Proposed approach:
> Introduce 2 new IOCTLs which combine (reserve, map) and (unmap, unreserve).
> Caller should also specify buffer type (input/output) attribute as a
> parameter to new mapping IOCTL.
>
> Benefits of new approach:
> 1. Saves 2 system calls per map and unmap pair.
> 2. By implementing lazy unreserve we can introduce cache of reserved
> mappings, which can skip reserve, unreserve operations.
> 3. Kernel can take care of flushing/invalidating cache depending on buffer
> type, which saves system call overhead and removed explicit cache control
> from user space.
>
> These IOCTLs can be added to the current set of API which doesn't break
> compatibility with old applications.
>
> Waiting for comments!
>
> Ideas proposed in this document are from:
> 1. Hiroshi Doyu<hiroshi.doyu@nokia.com>
> 2. Felipe Contreras<felipe.contreras@nokia.com>
Sounds good for an non-expert.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-09-01 15:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 13:35 [DSPBRIDGE RFC] Combining Reserve and Map into a new IOCTL Ameya Palande
2009-09-01 15:13 ` Artem Bityutskiy [this message]
2009-09-02 15:38 ` Felipe Contreras
2009-09-02 16:16 ` Kanigeri, Hari
2009-09-03 8:50 ` Felipe Contreras
2009-09-03 9:39 ` Hiroshi DOYU
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=4A9D3A0F.4060608@gmail.com \
--to=dedekind1@gmail.com \
--cc=ameya.palande@nokia.com \
--cc=felipe.contreras@nokia.com \
--cc=hiroshi.doyu@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=omar.ramirez@ti.com \
--cc=roman.tereshonkov@nokia.com \
--cc=x0095840@ti.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