[PATCH 2/2] lightnvm: pblk: retrieve chunk metadata on erase

2018-10-04 Thread Javier González
On the OCSSD 2.0 spec, the device populates the metadata pointer (if provided) when a chunk is reset. Implement this path in pblk. This is the base for implementing wear-leveling and supporting variable size chunks (e.g., due to the device mapping out certain sectors). For 1.2, reset the write poi

Re: [PATCH 2/2] lightnvm: pblk: retrieve chunk metadata on erase

2018-09-17 Thread Matias Bjørling
On 09/11/2018 01:35 PM, Javier González wrote: On the OCSSD 2.0 spec, the device populates the metadata pointer (if provided) when a chunk is reset. Implement this path in pblk and use it for sanity chunk checks. For 1.2, reset the write pointer and the state on core so that the erase path is tr