Received: by 10.223.185.116 with SMTP id b49csp3675498wrg; Tue, 13 Feb 2018 06:07:18 -0800 (PST) X-Google-Smtp-Source: AH8x227jGEgnNN8n2pHcfL7U6Qkc2GXZUW91ZSUYqOqxuNG7xLvNsqxNor0+KBwMnuyeeA/ZMOUJ X-Received: by 2002:a17:902:9346:: with SMTP id g6-v6mr1230906plp.379.1518530838179; Tue, 13 Feb 2018 06:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518530838; cv=none; d=google.com; s=arc-20160816; b=NZLW1M/h2D+588JItTz0dUxMy5Egris/sGBs5qlfxlO6ac/LrAV7oj6RWvKfrQ4hHG 203JA52oOj1algCpUahtYJV/tuRswR4zsx+jHpBjqxbwbQMc2Y5ncO6zukIa0TwghKXh nkW8zEZxPA91KF3MFfNButa+luNDvWqZHMsqYjZ6mAjgAHX/J1jPdJ+Z/PLL9sNsEA2R kO3PG5z2RtYc+R61hM9YrqkwgQhxt7QIaY7XcyfVtZpDw+Z+S55MXkNKqv2wNKgxnxW4 +hS8lr9rmUYanWdOHV5b4tAGAz9fPgokN+ezlhA14wqE63VjGJJg6qER2R8FuR22y4LW DdCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=cux0oTfp37C9k7dA1s0tw2BD7p/WTXdvVM33CttM/j0=; b=OfKK2JG8ddzZAgDfLV2Ap/m0jhNT0dVXXNkxak9bo2tiZw6ntdu0R6J4e5vmwn6OoC jcWC6uZZU9w0b2oxEpl8Qz5/rOhq7IxeeO4/m8zp4Hy6VS5HxU8RggrJVT5nnXsKd5BV Q1wBqzR2hgvO7ehqiWjZLlq0fGODCH6cXpvVqSirvTxVhV5ws4b9TGYmmk81CDjSmGkS whWtcUk2tuQH3ayZ+iGYlCc7a5KOn6aG0hIzWMTqps18k7x7+zswCO7/P5O4AIuCTkQ4 0ckcRNOsCrGVBlkj6j1W5a8DC9K1Fmh1Tt/uEfOPwBh7ssiNFepfuJwptUm8BkCr1YEo ONnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=v165DUd0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m87si1083879pfk.383.2018.02.13.06.07.02; Tue, 13 Feb 2018 06:07:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=v165DUd0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965013AbeBMOGT (ORCPT + 99 others); Tue, 13 Feb 2018 09:06:19 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51444 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964917AbeBMOGR (ORCPT ); Tue, 13 Feb 2018 09:06:17 -0500 Received: by mail-wm0-f68.google.com with SMTP id r71so16325741wmd.1 for ; Tue, 13 Feb 2018 06:06:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cux0oTfp37C9k7dA1s0tw2BD7p/WTXdvVM33CttM/j0=; b=v165DUd0xsNi3ZO+QAl7zUJnsgJvj3QyydHHy31NaU73w4rgiDivJeX3rJUmgz9MuZ Ym0AN54/ZE+5rJYY8FDFv58mbRU0nuEKcpA/yTOJ63EOYGiiON2AGk1whFxyKidWEMhH 6QAb/6mkiZcho2Kwt4gZx9Yn0RsInL4UZJKsSRhLfMO77nnb0UKfToP9jNc0y7NtFO6U ahChi8mwdJ4qu1hcSqeU9V0J9cbIwDB3K1l0rMpFSRZ/NpSv+6IMyQqBK5LNxnip4gGZ lxqTdqN/uOO2F0kfiPGIG2/oh/iRMLxtF6DorUW9qHxmAF045pJ4N7d/714dAVf9wSqI v4/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cux0oTfp37C9k7dA1s0tw2BD7p/WTXdvVM33CttM/j0=; b=T0Ln/W2fjr66LU7aSEjDJak2qNC+tlpchmDJ56xhQTdN6e2O6rB2z6qTjBxyermVFr FNhMf5PbHvA/84eglqiR+GaeVsvUp1vuovepPkg9FqEHrYv0ELTRFIqYumJX6+u3zCU2 m3faxucgPZopzk0IAe1fb/CLq954ghh3rQbJQOVnK3BvlHhAxapTuJFRBLQzgT7u+RVs u0XZK4OXn8V25sOD6053w+sjXssKPjraa5COIDgw8KXO0P2F6tvd74nHTKoJWA2TOQmr AB9/1vAvHPrhYQKY+88lXO0x+4RPgIXzXSzMcr/aBUu1KAf+mJ7QlovKRyQKiRHzwpVr +rXg== X-Gm-Message-State: APf1xPDT6OkOZCKSnLcPCyl9Yi67gF46bmOio+kB+Z0q5fCVZkRVr+KO 8FAg91hxNgZkW/2IKfUQPlDbsg== X-Received: by 10.80.148.111 with SMTP id q44mr2353775eda.41.1518530776737; Tue, 13 Feb 2018 06:06:16 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id k11sm6658850eda.22.2018.02.13.06.06.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 06:06:16 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 0/8] lightnvm: pblk: implement support for 2.0 Date: Tue, 13 Feb 2018 15:06:00 +0100 Message-Id: <1518530768-20956-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset implements support for 2.0 spec in pblk. The first patch abstracts the geometry retrieved from the identify command and allows both specs to coexist under the same geometry description. From there on, we build the missing 2.0 support in lightnvm core: address format, address conversion and report chnk get log page. The last three patches implement the actual support for 2.0 in pblk. Note that we only port functionality for 2.0. Newer functionality enabled by 2.0 (e.g., wear-leveling) will be submitted in following patches. This patches apply on top of Matias' latest patches. Javier González (8): lightnvm: exposed generic geometry to targets lightnvm: show generic geometry in sysfs lightnvm: add support for 2.0 address format lightnvm: convert address based on spec. version lightnvm: implement get log report chunk helpers lightnvm: pblk: implement get log report chunk lightnvm: pblk: refactor init/exit sequences lightnvm: pblk: implement 2.0 support drivers/lightnvm/core.c | 171 ++++----- drivers/lightnvm/pblk-core.c | 134 +++++-- drivers/lightnvm/pblk-gc.c | 2 +- drivers/lightnvm/pblk-init.c | 787 +++++++++++++++++++++++---------------- drivers/lightnvm/pblk-read.c | 2 +- drivers/lightnvm/pblk-recovery.c | 14 +- drivers/lightnvm/pblk-rl.c | 2 +- drivers/lightnvm/pblk-sysfs.c | 130 ++++++- drivers/lightnvm/pblk-write.c | 2 +- drivers/lightnvm/pblk.h | 253 +++++++++---- drivers/nvme/host/lightnvm.c | 553 ++++++++++++++++++--------- include/linux/lightnvm.h | 317 ++++++++++------ 12 files changed, 1553 insertions(+), 814 deletions(-) -- 2.7.4