From: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Philipp Zabel" <p.zabel@pengutronix.de>,
"Heiko Stübner" <heiko@sntech.de>,
"Arnd Bergmann" <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: sram: extend usage of reserved partitions
Date: Mon, 21 Sep 2015 15:40:50 +0300 [thread overview]
Message-ID: <55FFFAD2.20606@mentor.com> (raw)
In-Reply-To: <20150921053014.GE24350@kroah.com>
Hi Greg,
On 21.09.2015 08:30, Greg Kroah-Hartman wrote:
> On Mon, Aug 10, 2015 at 12:40:02AM +0300, Vladimir Zapolskiy wrote:
>> This change adds functionality to operate on reserved SRAM partitions
>> described in device tree file. Two partition properties are added,
>> "pool" and "export", the first one allows to share a specific partition
>> for usage by a kernel consumer in the same manner as it is done for
>> the whole SRAM device, and "export" property provides access to some
>> SRAM area from userspace over sysfs interface. Practically it is
>> possible to specify both properties for an SRAM partition, however
>> simultaneous access from a kernel consumer and from userspace is not
>> serialized, but still the combination may be useful for debugging
>> purpose.
>
> This scares me, why do we need to partition sram off in this manner?
at the moment SRAM has no fine grained access interface (i.e. by
offset), it seems practicable to have such an interface, especially if
SRAM is accessed from outside of the kernel.
> What uses it in this way?
On practice I experience the following usecases:
* updates in a particular SRAM area specified by offset and size are
done by bootloader, then this information is utilized by the kernel,
* a particular SRAM area is rw accessed from userspace.
Support of both aforementioned options is provided by the proposed change.
> I need some other people to weigh in on this, and at the very least, I
> need some DT people to bless the changes there...
I'll send next revisions of the change to DT list.
Please note, that the partitioning of SRAM specified in DT is already
present in vanilla (commit 2da19688f4, "reserved areas" on SRAM), this
change adds an option to set a property of that reserved area, here
"reserved area" means SRAM area not accessible by genalloc clients of
"mmio-sram" device.
--
With best wishes,
Vladimir
prev parent reply other threads:[~2015-09-21 12:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 21:40 [PATCH] misc: sram: extend usage of reserved partitions Vladimir Zapolskiy
2015-08-09 21:40 ` Vladimir Zapolskiy
2015-08-10 3:27 ` Greg Kroah-Hartman
2015-08-10 10:47 ` Vladimir Zapolskiy
2015-09-15 14:47 ` Vladimir Zapolskiy
2015-09-21 5:30 ` Greg Kroah-Hartman
2015-09-21 12:40 ` Vladimir Zapolskiy [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=55FFFAD2.20606@mentor.com \
--to=vladimir_zapolskiy@mentor.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/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