From: Jeff Moyer <jmoyer@redhat.com>
To: rob.gittins@linux.intel.com
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@veger.org,
linux-pmfs@lists.infradead.org
Subject: Re: RFC Block Layer Extensions to Support NV-DIMMs
Date: Thu, 05 Sep 2013 13:19:02 -0400 [thread overview]
Message-ID: <x49vc2f89vd.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <1378398821.3768.116.camel@Virt-Centos-6.lm.intel.com> (Rob Gittins's message of "Thu, 05 Sep 2013 10:33:41 -0600")
Rob Gittins <rob.gittins@linux.intel.com> writes:
>> > void (*commitpmem)(struct block_device *bdev, void *addr);
>>
>> Seems like this would benefit from a length argument as well, no?
>
> Yes. Great point. I will add that in.
Rob, taking it a step further, maybe a vectored interface would be more
flexible. Something to consider, anyway.
>> > Another area requiring extension is the need to be able to clear PMEM
>> > errors. When data is fetched from errored PMEM it is marked with the
>> > poison attribute. If the CPU attempts to access the data it causes a
>> > machine check. How errors are cleared is hardware dependent and needs
>> > to be handled by the specific device driver. The following function
>> > in the block_device_operations vector would clear the correct range
>> > of PMEM and put new data there. If the argument data is null or the
>> > size is zero the driver is free to put any data in PMEM it wishes.
>> >
>> > void (*clearerrorpmem)(struct block_device *bdev, void *addr,
>> > size_t len, void *data);
>
>> What is the size of data?
>
> clearerrorpmem as part of the process of clearing an error
> can effectively write a buffer of data as part of the
> clear process. If the len is zero or the data pointer is null then
> only a error clear happens.
So data would be of 'len' size, then? In other words, this would be a
way to restore data that may have been there?
> The existing partitioning mechanism was intended for small drives
> and works best for a single fs/device. We are approaching NV-DIMMs
> as if they were more like LUNs in storage arrays. Each range is
> treated as a device. A range of an NV-DIMM could be partitioned if
> someone wanted to do such a thing.
OK, that clears things up, thanks.
-Jeff
next prev parent reply other threads:[~2013-09-05 17:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-04 21:54 Rob Gittins
2013-09-05 12:12 ` Jeff Moyer
2013-09-05 15:34 ` Matthew Wilcox
2013-09-05 17:15 ` Jeff Moyer
2013-09-05 17:57 ` Matthew Wilcox
2013-09-05 19:46 ` Zuckerman, Boris
2013-09-05 20:43 ` Gittins, Rob
2013-09-05 21:02 ` Zuckerman, Boris
2013-09-05 16:33 ` Rob Gittins
2013-09-05 17:19 ` Jeff Moyer [this message]
2013-09-07 5:12 ` Vladislav Bolkhovitin
2013-09-23 22:51 ` Rob Gittins
2013-09-26 6:58 ` Vladislav Bolkhovitin
2013-09-26 14:56 ` Zuckerman, Boris
2013-09-26 17:56 ` Matthew Wilcox
2013-09-26 19:36 ` Zuckerman, Boris
2013-09-28 7:44 ` Vladislav Bolkhovitin
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=x49vc2f89vd.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=linux-fsdevel@veger.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pmfs@lists.infradead.org \
--cc=rob.gittins@linux.intel.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
Powered by JetHome