Received: by 10.223.176.5 with SMTP id f5csp443535wra; Fri, 9 Feb 2018 01:30:12 -0800 (PST) X-Google-Smtp-Source: AH8x225wem+YBXDENxP3jtJU54KNa/ymc45d0eYC5IyeynKdSERnjENH6cNl5bwgBZGpVZVVBUFK X-Received: by 2002:a17:902:b785:: with SMTP id e5-v6mr1970972pls.317.1518168612670; Fri, 09 Feb 2018 01:30:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518168612; cv=none; d=google.com; s=arc-20160816; b=iJLziMMfEGN1CGW2ij836ZgsuXrv8N6GaYnAYzBDnbU9TrM9AV7XodhBrz1Qtf5bVv Ag2Kkkok7F7rEXtBMhQ8ky5AfP66EpT8zC/ocR1rfQatswJberDqAI5oMkWvNo2LHmvn pbYB9OdlwsoVzoBatfOslDbEGO4oSRwsQlj2PuHdZyldBHEFu6w3mL6wLOteUmYmyF/J tA4TsdWR5/Sv+yU8JUBWIbRvItlV1PUxpvyS5Lb+SzVznN5qsrXIYxIPPu/8PRKHX8/J VhWlhjR5D6/ZOa05589sxWTJAC6TYbQtj92vaj8KQ7cXCvH6WZ2NoTTWeAnqsS35dERl 4sGA== 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=mC9zNqdXwWcAUAISRIBz6VubvCUttL1CNtKd7flLDpg=; b=0z9oDq9NhjDhvaTLTMxkOk6m3P2fRsg3gUDNXJfOx+DfAIR69Apih7Z/qKC0cKXBNO irwTUOaaKHp8KRQ/+hfBiCtpwJ3qp6/YVfykmiikuV+WO12XS/FufJgzpu+KI5bW9cKh j1PE9xfIZ0yo8gFGFBwEgKgWCx8HjC39kbnoFQi6GYY+aHT0jWmtEgbhMnXxaY3ALNtn tCwhfu5t4cyu9fB6zMs7h75zvQ518BasQQEfiOo36s1QJiOcFVFO2suDSIjjby/LzXfl woSQhkIc6w25H32enyYmB4y7kvsjckb8DtYgRdVKB6t/MX1Wdg6UA8A4T9ZYGqylgqzk 2AWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=UhZySdf3; 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 g30si1160641pgn.394.2018.02.09.01.29.55; Fri, 09 Feb 2018 01:30:12 -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=UhZySdf3; 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 S1752656AbeBIJ1r (ORCPT + 99 others); Fri, 9 Feb 2018 04:27:47 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:37251 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752626AbeBIJ1l (ORCPT ); Fri, 9 Feb 2018 04:27:41 -0500 Received: by mail-lf0-f66.google.com with SMTP id f137so10312927lfe.4 for ; Fri, 09 Feb 2018 01:27:40 -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=mC9zNqdXwWcAUAISRIBz6VubvCUttL1CNtKd7flLDpg=; b=UhZySdf3klFeJTgqUrzXecbuKnr3J/YjLLfP1I/QcKBRD4pZfONovGJsHNjE7F3jDN hmVz3V+yehE/7lhz49kWE1uElDHaOmqs7/uvGmCipD+AAuFojGUCQQMmo5GjRwhC0CtL 3ir0+OnsChWmk5kGgAs+2F/0oK5hUl2/uvDooKb7Ct/ZXagAWW+QeFQtjEuqmJ5xLEg3 AnTNiw2tH7KR3ySAwgvBWOgsRmsiI4cg6IKfMxZyHruzr45OZ1AodwS09SSNZA2vY7nY eHSyVlzl/S9uLo0oh/I+0vy1FFU+K/DuGUDfENdsyVI1RBDKZ4BH0uhKhyDKeBZBlrw/ wR/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=mC9zNqdXwWcAUAISRIBz6VubvCUttL1CNtKd7flLDpg=; b=W91GKNnybZPFdZO9SSa5vkFVKkjO+Xjkk+vJl5L7cKBDr3p06U6duBOxSHh8Yj7Yt+ +fuZt/Xqlz2FqHarNS0pn03gwwbyPFamfzk/ce7qgP92OdcNagu6fleEl9/kfzd9nyhT OVmgHB+TJeGQUG1/oMvc14ejrt49+Omm1zw9hCJWiGfDfq7qb0Nj19Jpu8zNqtH7qDJJ bAImitYVNmxrG2rJ+qLr+CN05eDfAdJDx4ubQc92SJhF2B/83UVASmNZGKfgNkN/zqsN ypHo9t3+sssxu6M6ivF/89ECAMC4iKyrJ1lE2MC8T+fkTf6NTCBGxgOnVoN9by6Ia7yo EgcQ== X-Gm-Message-State: APf1xPDMCMdgCfSGVtFHFXRkcrQABiUEdh7vDLMy+RtouXzqTZdCEpdZ x3DsjAE1rbo8qs7YnGzmeNrxZw== X-Received: by 10.25.156.20 with SMTP id f20mr1402353lfe.12.1518168459996; Fri, 09 Feb 2018 01:27:39 -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 t23sm343963ljd.67.2018.02.09.01.27.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 01:27:39 -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/4] lightnvm: base 2.0 implementation Date: Fri, 9 Feb 2018 10:27:15 +0100 Message-Id: <20180209092719.10679-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 basis for integrating 2.0 support. For the rest of the support, Javier has code that implements report chunk and sets up the LBA format data structure. He also has a bunch of patches that brings pblk up to speed. 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 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 v1: - pr_err fix from Randy. - Address type fix from Javier. - Also CC the nvme mailing list. Matias Bjørling (4): lightnvm: make 1.2 data structures explicit lightnvm: flatten nvm_id_group into nvm_id lightnvm: add 2.0 geometry identification nvme: lightnvm: add late setup of block size and metadata drivers/lightnvm/core.c | 33 ++- drivers/nvme/host/core.c | 2 + drivers/nvme/host/lightnvm.c | 508 ++++++++++++++++++++++++++++++++----------- drivers/nvme/host/nvme.h | 2 + include/linux/lightnvm.h | 64 +++--- 5 files changed, 428 insertions(+), 181 deletions(-) -- 2.11.0