* [PATCH] lightnvm: Add error code for bad write pointer
@ 2017-09-06 10:22 Javier González
2017-09-06 13:44 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Javier González @ 2017-09-06 10:22 UTC (permalink / raw)
To: mb, axboe; +Cc: linux-block, linux-kernel, Javier González
Add new error code introduced on the OCSSD spec 2.0 for write pointer
mismatch on the device side. This indicates to the host that a write on
a block (chunk) is not respecting the required sequentiality.
Signed-off-by: Javier González <javier@cnexlabs.com>
---
include/linux/lightnvm.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 7dfa56ebbc6d..81b71c6d5873 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -102,7 +102,8 @@ enum {
/* Status codes */
NVM_RSP_SUCCESS = 0x0,
NVM_RSP_NOT_CHANGEABLE = 0x1,
- NVM_RSP_ERR_FAILWRITE = 0x40ff,
+ NVM_RSP_ERR_FAILWRITE = 0x40ff, /* Generic write failure */
+ NVM_RSP_ERR_FAILWP = 0x42f0, /* Write pointer failure */
NVM_RSP_ERR_EMPTYPAGE = 0x42ff,
NVM_RSP_ERR_FAILECC = 0x4281,
NVM_RSP_ERR_FAILCRC = 0x4004,
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] lightnvm: Add error code for bad write pointer
2017-09-06 10:22 [PATCH] lightnvm: Add error code for bad write pointer Javier González
@ 2017-09-06 13:44 ` Christoph Hellwig
2017-09-06 14:44 ` Javier González
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2017-09-06 13:44 UTC (permalink / raw)
To: Javier González
Cc: mb, axboe, linux-block, linux-kernel, Javier González
On Wed, Sep 06, 2017 at 12:22:38PM +0200, Javier González wrote:
> Add new error code introduced on the OCSSD spec 2.0 for write pointer
> mismatch on the device side. This indicates to the host that a write on
> a block (chunk) is not respecting the required sequentiality.
Do you have a pointer to that spec?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] lightnvm: Add error code for bad write pointer
2017-09-06 13:44 ` Christoph Hellwig
@ 2017-09-06 14:44 ` Javier González
0 siblings, 0 replies; 3+ messages in thread
From: Javier González @ 2017-09-06 14:44 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Matias Bjørling, Jens Axboe, linux-block, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
> On 6 Sep 2017, at 15.44, Christoph Hellwig <hch@infradead.org> wrote:
>
> On Wed, Sep 06, 2017 at 12:22:38PM +0200, Javier González wrote:
>> Add new error code introduced on the OCSSD spec 2.0 for write pointer
>> mismatch on the device side. This indicates to the host that a write on
>> a block (chunk) is not respecting the required sequentiality.
>
> Do you have a pointer to that spec?
No yet. Still writing it up nicely.
I'll wait to re-post until we have the spec out.
Javier
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-06 14:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 10:22 [PATCH] lightnvm: Add error code for bad write pointer Javier González
2017-09-06 13:44 ` Christoph Hellwig
2017-09-06 14:44 ` Javier González
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).