From: Grant Likely <grant.likely@secretlab.ca>
To: Tomasz Figa <tomasz.figa@gmail.com>,
Stephen Warren <swarren@wwwdotorg.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org, Laura Abbott <lauraa@codeaurora.org>,
Pawel Moll <pawel.moll@arm.com>, Arnd Bergmann <arnd@arndb.de>,
Tomasz Figa <t.figa@samsung.com>,
Nishanth Peethambaran <nishanth.p@gmail.com>,
Michal Nazarewicz <mina86@mina86.com>,
linaro-mm-sig@lists.linaro.org, Marc <marc.ceeeee@gmail.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Kumar Gala <galak@codeaurora.org>,
Olof Johansson <olof@lixom.net>,
Ian Campbell <ian.campbell@citrix.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
linux-arm-kernel@lists.infradead.org,
Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [PATCH v6 3/4] drivers: of: add initialization code for dma reserved memory
Date: Thu, 29 Aug 2013 22:12:59 +0100 [thread overview]
Message-ID: <20130829211259.D8DF33E1222@localhost> (raw)
In-Reply-To: <98354044.bRIxVeGEeu@flatron>
On Tue, 20 Aug 2013 00:02:37 +0200, Tomasz Figa <tomasz.figa@gmail.com> wrote:
> Hi Stephen,
>
> On Monday 19 of August 2013 15:49:20 Stephen Warren wrote:
> > On 08/19/2013 09:04 AM, Marek Szyprowski wrote:
> > > This patch adds device tree support for contiguous and reserved memory
> > > regions defined in device tree.
> > >
> > > diff --git a/Documentation/devicetree/bindings/memory.txt
> > > b/Documentation/devicetree/bindings/memory.txt
> > >
> > > +*** Reserved memory regions ***
> > > +
> > > +In /memory/reserved-memory node one can create additional nodes
> >
> > s/additional/child/ or s/additional/sub/ would make it clearer where the
> > "additional" nodes should be placed.
> >
> > > +compatible: "linux,contiguous-memory-region" - enables binding
> of
> > > this
> > > + region to Contiguous Memory Allocator (special region for
> > > + contiguous memory allocations, shared with movable system
> > > + memory, Linux kernel-specific), alternatively if
> > > + "reserved-memory-region" - compatibility is defined, given
> > > + region is assigned for exclusive usage for by the
> respective
> > > + devices
> >
> > "alternatively" makes it sound like the two compatible values are
> > mutually-exclusive. Perhaps make this a list, like:
> >
> > ----------
> > compatible: One or more of:
> >
> > - "linux,contiguous-memory-region" - enables binding of this
> > region to Contiguous Memory Allocator (special region for
> > contiguous memory allocations, shared with movable system
> > memory, Linux kernel-specific).
> > - "reserved-memory-region" - compatibility is defined, given
> > region is assigned for exclusive usage for by the respective
> > devices.
> > ----------
> >
> > "linux,contiguous-memory-region" is already long enough, but I'd
> > slightly bikeshed towards "linux,contiguous-memory-allocator-region", or
> > perhaps "linux,cma-region" since it's not really describing whether the
> > memory is contiguous (at the level of /memory, each chunk of memory is
> > contiguous...)
>
> I'm not really sure if we need the "linux" prefix for "contiguous-memory-
> region". The concept of contiguous memory region is rather OS independent
> and tells us that memory allocated from this region will be contiguous.
> IMHO any OS is free to implement its own contiguous memory allocation
> method, without being limited to Linux CMA.
>
> Keep in mind that rationale behind those contiguous regions was that there
> are devices that require buffers contiguous in memory to operate
> correctly.
>
> But this is just nitpicking and I don't really have any strong opinion on
> this.
Actually, I think this is important. It is something that describes the
expected usage of the hardware (flicker-free framebuffer is a really
good example) and isn't really linux-specific from that perspective.
I think you can drop the 'linux,' prefix string.
g.
next prev parent reply other threads:[~2013-08-29 21:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1376924669-28873-1-git-send-email-m.szyprowski@samsung.com>
[not found] ` <1376924669-28873-3-git-send-email-m.szyprowski@samsung.com>
2013-08-26 12:09 ` [PATCH v6 2/4] drivers: of: add function to scan fdt nodes given by path Rob Herring
[not found] ` <1376924669-28873-4-git-send-email-m.szyprowski@samsung.com>
2013-08-26 12:20 ` [PATCH v6 3/4] drivers: of: add initialization code for dma reserved memory Rob Herring
[not found] ` <521292E0.105@wwwdotorg.org>
[not found] ` <98354044.bRIxVeGEeu@flatron>
2013-08-29 21:12 ` Grant Likely [this message]
[not found] ` <52134B92.10308@samsung.com>
[not found] ` <52139AE7.4050300@wwwdotorg.org>
[not found] ` <2011590.EGDykoeEOS@amdc1227>
2013-08-29 21:20 ` Grant Likely
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=20130829211259.D8DF33E1222@localhost \
--to=grant.likely@secretlab.ca \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ian.campbell@citrix.com \
--cc=kyungmin.park@samsung.com \
--cc=lauraa@codeaurora.org \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=marc.ceeeee@gmail.com \
--cc=mark.rutland@arm.com \
--cc=mina86@mina86.com \
--cc=nishanth.p@gmail.com \
--cc=olof@lixom.net \
--cc=pawel.moll@arm.com \
--cc=s.hauer@pengutronix.de \
--cc=s.nawrocki@samsung.com \
--cc=swarren@wwwdotorg.org \
--cc=t.figa@samsung.com \
--cc=tomasz.figa@gmail.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).