Received: by 10.223.185.116 with SMTP id b49csp2010031wrg; Thu, 15 Feb 2018 05:15:25 -0800 (PST) X-Google-Smtp-Source: AH8x226TKryvQ9widcxH5TtU7VSJjz3pCRqX5qXroW3talaHN0yMtxdbmlFws+VZsrkICzJJc1DP X-Received: by 10.101.66.193 with SMTP id l1mr2214977pgp.149.1518700525871; Thu, 15 Feb 2018 05:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518700525; cv=none; d=google.com; s=arc-20160816; b=GXBEZJgx4ABNFCItyKeUjyz9wqBe4M77Zpc1FnKPStzcCeGpQb+ojgxJvS/hq7t3KF f3+LVZCCN4iJlIrUr8JfMn105zHbblDcpbfNYXAErtlhB6Px9RieL3nelktx8jPlmRnu xWeorTR54YkVjyqpcRBv3ZGMqvkniOz8QkqMuwI28NNCHs7XEV2U5H/9qliIQa6WZZNC LEuFBR0qvMrrgj07AxsWwia9TqNigMTFe0aYrxOAABuy5OUwnlZzCWY4gIV/NAwCh2OX ArmXP6/darpABpFYwRVpJ5asmYQYGGWuSmykjuGcF0ytytD+Okhje7yVcOpZxjE32UPz NWeA== 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=X0ghgOJJGdd/Ysbd4F+WSehxrMMAkubMNwVzZYlXCjY=; b=M/IPhmj6myUTz6rEP6iKCtLsKRrvnInWiGsTAXnXIKR9QkcEix4g5WtSHL38yhPxA/ 1jTXniya7PNFVWJGgs1vnB5c6PFpnBP9XCdAPHtC/UHOuITkE/NzNvglvK/3nfHqnS9F 8fA5Qp7grs39Ts2+VUk71irwSGzv/Q1nPwWL4x5VqIkhuJRPe9WcLpCbFEPI1ZAwWBiu fLnw5H/MQYihaB38Eef6uw66jkV1gIKVxWxeL6Hm9EOWKataeqOFnZt5WOEvC7lcF7CU qasdkpOyi0m1gtuhlIHbNVzhIGNWogU+qiK6eaKfp0+fKg9tktvSUbGpg+cwsWD8Z+DA i8fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=Crnc2toh; 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 w3si3812136pgb.419.2018.02.15.05.15.11; Thu, 15 Feb 2018 05:15:25 -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=Crnc2toh; 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 S1031809AbeBONMU (ORCPT + 99 others); Thu, 15 Feb 2018 08:12:20 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36511 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030561AbeBONMT (ORCPT ); Thu, 15 Feb 2018 08:12:19 -0500 Received: by mail-lf0-f68.google.com with SMTP id t79so34000979lfe.3 for ; Thu, 15 Feb 2018 05:12:18 -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=X0ghgOJJGdd/Ysbd4F+WSehxrMMAkubMNwVzZYlXCjY=; b=Crnc2tohk5ZOu6i1llF1mejP2sZVj5zCeJVYjhf78yMSsSNFvIL4OhMerUBpiqFufn 1G6R00luX1QBi8G0bLcr0zOpqkbVWvhNDj6F/EWOscooI/E7C5Ci4gglpBEwcbVWwKAk RDWyZQuY8KQaWwbjWWpqXpHnpr0ro9ClAIAGOetmcF3jenz+Z8nwkRvdFL5jvd7saPhO BDK38tTpgd+EAK4KCMsDTPWJ5Bcdg9KMDeu2/jvoBFOzLh8PlP0fRCu0DFpoUAAFyjpN fsW/m+6kFB2JGc5uNbu4FPeronjMis5IcSRjjgkrxS3C1A/uztwo0rQd1DPlNgkar4IP ZXFg== 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=X0ghgOJJGdd/Ysbd4F+WSehxrMMAkubMNwVzZYlXCjY=; b=dakw48V9IjwCWJ+afpJa2yU6Neo00OtmZCEWXMqs3NB1vQ27Bj4ize/0pnQS/rH997 rIp0rtBzewSUa/oNYwpOP9g9nUEDofxv2J/oxQk7LLCxpgfOn/cFrAg3n7zhFpQIi/ed udq2tOmsh6VkQT5CunmDpsI7gMtMdVKG4gelMzVgA97WSYaJc8DVn9iQumzaYnHHdyaq dowqu9q05gfUfu38P76iVvXh2b4BJcxc7dtixvSYFd1RiD688VszYZjvQd29dAdedNTR MsOpOgomO116pl8LyYIfxmMaKidL4dTeUHRHGUWgpMnR68bg5efzIlInPCrRoR7hxzJo GNMw== X-Gm-Message-State: APf1xPA1PLRSxVO6ezqPwIoO9QO2tEWISVEjqGvQz3LoGm1ya7twfU4Q u6p7CZ+x1e4PmVNQWGLMm1cQGw== X-Received: by 10.25.89.146 with SMTP id n140mr1866717lfb.134.1518700337592; Thu, 15 Feb 2018 05:12:17 -0800 (PST) Received: from Macroninja.cnexlabs.com (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.gmail.com with ESMTPSA id s7sm449295lfg.13.2018.02.15.05.12.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 05:12:16 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH v2 0/6] lightnvm: base 2.0 implementation Date: Thu, 15 Feb 2018 14:11:54 +0100 Message-Id: <20180215131200.3354-1-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 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 A couple of patches for 2.0 support for the lightnvm subsystem. They form the foundation for the integration. The first two patches is preparation for the 2.0 work. The third patch implements the 2.0 data structures, the geometry command, and exposes the sysfs attributes that comes with the 2.0 specification. Note that the attributes between 1.2 and 2.0 are different, and it is expected that user-space shall use the version sysfs attribute to know which attributes will be available. The next two patches removes max_phys_sect and max_rq_size, as they not used. The last patch implements support for using the nvme namespace logical block and metadata fields and sync it with the internal lightnvm identify structures. Changes since v2: - Removed blk_queue_block_size() setup in nvm_init and made sure to only update csecs and sos in on the late setup path. No reason to set it twice. From discussion with Javier. - Added two extra patches, that removes max_phys_sect and max_rq_size. Changes since v1: - pr_err fix from Randy. - Address type fix from Javier. - Also CC the nvme mailing list. Matias Bjørling (6): lightnvm: make 1.2 data structures explicit lightnvm: flatten nvm_id_group into nvm_id lightnvm: add 2.0 geometry identification lightnvm: remove max_rq_size lightnvm: remove nvm_dev_ops->max_phys_sect nvme: lightnvm: add late setup of block size and metadata drivers/lightnvm/core.c | 61 ++--- drivers/lightnvm/pblk-init.c | 9 +- drivers/lightnvm/pblk-recovery.c | 8 +- drivers/nvme/host/core.c | 2 + drivers/nvme/host/lightnvm.c | 513 ++++++++++++++++++++++++++++----------- drivers/nvme/host/nvme.h | 2 + include/linux/lightnvm.h | 71 +++--- 7 files changed, 442 insertions(+), 224 deletions(-) -- 2.11.0