Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 03:58 PM, Wenwei Tao wrote: static int nvm_core_init(struct nvm_dev *dev) { ... dev->sec_per_pg = grp->fpg_sz / grp->csecs; ... /* calculated values */ dev->sec_per_pl = dev->sec_per_pg * dev->nr_planes; dev->sec_per_blk = dev->sec_per_pl * dev->pgs_per_blk; dev->sec_per_lun =

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Wenwei Tao
static int nvm_core_init(struct nvm_dev *dev) { ... dev->sec_per_pg = grp->fpg_sz / grp->csecs; ... /* calculated values */ dev->sec_per_pl = dev->sec_per_pg * dev->nr_planes; dev->sec_per_blk = dev->sec_per_pl * dev->pgs_per_blk; dev->sec_per_lun = dev->sec_per_blk * dev->blks_per_lun; ... }

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 01:47 PM, Wenwei Tao wrote: > 2016-01-27 17:36 GMT+08:00 Matias Bjørling : >> On 01/27/2016 07:06 AM, Wenwei Tao wrote: >>> Thanks. >>> >>> 2016-01-27 13:52 GMT+08:00 Matias Bjørling : On 01/27/2016 03:21 AM, Wenwei Tao wrote: > > Yes, It's a spelling mistake, will

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Wenwei Tao
2016-01-27 17:36 GMT+08:00 Matias Bjørling : > On 01/27/2016 07:06 AM, Wenwei Tao wrote: >> Thanks. >> >> 2016-01-27 13:52 GMT+08:00 Matias Bjørling : >>> On 01/27/2016 03:21 AM, Wenwei Tao wrote: Yes, It's a spelling mistake, will correct it in next version. >>> >>> >>> I can fix it in

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 07:06 AM, Wenwei Tao wrote: > Thanks. > > 2016-01-27 13:52 GMT+08:00 Matias Bjørling : >> On 01/27/2016 03:21 AM, Wenwei Tao wrote: >>> >>> Yes, It's a spelling mistake, will correct it in next version. >> >> >> I can fix it in the version I apply. No problem. Hi Wenwei, I've

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 03:58 PM, Wenwei Tao wrote: static int nvm_core_init(struct nvm_dev *dev) { ... dev->sec_per_pg = grp->fpg_sz / grp->csecs; ... /* calculated values */ dev->sec_per_pl = dev->sec_per_pg * dev->nr_planes; dev->sec_per_blk = dev->sec_per_pl * dev->pgs_per_blk; dev->sec_per_lun =

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 07:06 AM, Wenwei Tao wrote: > Thanks. > > 2016-01-27 13:52 GMT+08:00 Matias Bjørling : >> On 01/27/2016 03:21 AM, Wenwei Tao wrote: >>> >>> Yes, It's a spelling mistake, will correct it in next version. >> >> >> I can fix it in the version I apply. No problem. Hi

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Wenwei Tao
2016-01-27 17:36 GMT+08:00 Matias Bjørling : > On 01/27/2016 07:06 AM, Wenwei Tao wrote: >> Thanks. >> >> 2016-01-27 13:52 GMT+08:00 Matias Bjørling : >>> On 01/27/2016 03:21 AM, Wenwei Tao wrote: Yes, It's a spelling mistake, will correct it in next

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Matias Bjørling
On 01/27/2016 01:47 PM, Wenwei Tao wrote: > 2016-01-27 17:36 GMT+08:00 Matias Bjørling : >> On 01/27/2016 07:06 AM, Wenwei Tao wrote: >>> Thanks. >>> >>> 2016-01-27 13:52 GMT+08:00 Matias Bjørling : On 01/27/2016 03:21 AM, Wenwei Tao wrote: > > Yes,

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-27 Thread Wenwei Tao
static int nvm_core_init(struct nvm_dev *dev) { ... dev->sec_per_pg = grp->fpg_sz / grp->csecs; ... /* calculated values */ dev->sec_per_pl = dev->sec_per_pg * dev->nr_planes; dev->sec_per_blk = dev->sec_per_pl * dev->pgs_per_blk; dev->sec_per_lun = dev->sec_per_blk * dev->blks_per_lun; ... }

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
Thanks. 2016-01-27 13:52 GMT+08:00 Matias Bjørling : > On 01/27/2016 03:21 AM, Wenwei Tao wrote: >> >> Yes, It's a spelling mistake, will correct it in next version. > > > I can fix it in the version I apply. No problem.

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Matias Bjørling
On 01/27/2016 03:21 AM, Wenwei Tao wrote: Yes, It's a spelling mistake, will correct it in next version. I can fix it in the version I apply. No problem.

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
Yes, It's a spelling mistake, will correct it in next version. 2016-01-26 22:52 GMT+08:00 Matias Bjørling : > On 01/26/2016 01:33 PM, Wenwei Tao wrote: >> We can create more than one target on a lightnvm >> device by specifying its begin lun and end lun. >> >> But only specify the physical

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Matias Bjørling
On 01/26/2016 01:33 PM, Wenwei Tao wrote: > We can create more than one target on a lightnvm > device by specifying its begin lun and end lun. > > But only specify the physical address area is not > enough, we need to get the corresponding non- > intersection logical address area division from >

[PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
We can create more than one target on a lightnvm device by specifying its begin lun and end lun. But only specify the physical address area is not enough, we need to get the corresponding non- intersection logical address area division from the backend device's logcial address space. Otherwise

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Matias Bjørling
On 01/27/2016 03:21 AM, Wenwei Tao wrote: Yes, It's a spelling mistake, will correct it in next version. I can fix it in the version I apply. No problem.

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
Thanks. 2016-01-27 13:52 GMT+08:00 Matias Bjørling : > On 01/27/2016 03:21 AM, Wenwei Tao wrote: >> >> Yes, It's a spelling mistake, will correct it in next version. > > > I can fix it in the version I apply. No problem.

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Matias Bjørling
On 01/26/2016 01:33 PM, Wenwei Tao wrote: > We can create more than one target on a lightnvm > device by specifying its begin lun and end lun. > > But only specify the physical address area is not > enough, we need to get the corresponding non- > intersection logical address area division from >

Re: [PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
Yes, It's a spelling mistake, will correct it in next version. 2016-01-26 22:52 GMT+08:00 Matias Bjørling : > On 01/26/2016 01:33 PM, Wenwei Tao wrote: >> We can create more than one target on a lightnvm >> device by specifying its begin lun and end lun. >> >> But only specify

[PATCH v2 1/2] lightnvm: specify target's logical address area

2016-01-26 Thread Wenwei Tao
We can create more than one target on a lightnvm device by specifying its begin lun and end lun. But only specify the physical address area is not enough, we need to get the corresponding non- intersection logical address area division from the backend device's logcial address space. Otherwise