Commit 62771fe0 authored by Matias Bjørling's avatar Matias Bjørling Committed by Jens Axboe

lightnvm: add 2.0 geometry identification

Implement the geometry data structures for 2.0 and enable a drive
to be identified as one, including exposing the appropriate 2.0
sysfs entries.
Signed-off-by: default avatarMatias Bjørling <mb@lightnvm.io>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c6ac3f35
...@@ -931,11 +931,9 @@ static int nvm_init(struct nvm_dev *dev) ...@@ -931,11 +931,9 @@ static int nvm_init(struct nvm_dev *dev)
goto err; goto err;
} }
pr_debug("nvm: ver:%x nvm_vendor:%x\n", if (dev->identity.ver_id != 1 && dev->identity.ver_id != 2) {
dev->identity.ver_id, dev->identity.vmnt); pr_err("nvm: device ver_id %d not supported by kernel.\n",
dev->identity.ver_id);
if (dev->identity.ver_id != 1) {
pr_err("nvm: device not supported by kernel.");
goto err; goto err;
} }
......
This diff is collapsed.
...@@ -184,10 +184,9 @@ struct nvm_id { ...@@ -184,10 +184,9 @@ struct nvm_id {
u16 csecs; u16 csecs;
u16 sos; u16 sos;
u16 ws_min; u32 ws_min;
u16 ws_opt; u32 ws_opt;
u16 ws_seq; u32 mw_cunits;
u16 ws_per_chk;
u32 trdt; u32 trdt;
u32 trdm; u32 trdm;
...@@ -199,6 +198,10 @@ struct nvm_id { ...@@ -199,6 +198,10 @@ struct nvm_id {
u32 mccap; u32 mccap;
u16 cpar; u16 cpar;
/* calculated values */
u16 ws_seq;
u16 ws_per_chk;
/* 1.2 compatibility */ /* 1.2 compatibility */
u8 mtype; u8 mtype;
u8 fmtype; u8 fmtype;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment