Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752948AbbLNNRd (ORCPT ); Mon, 14 Dec 2015 08:17:33 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37991 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbbLNNRa (ORCPT ); Mon, 14 Dec 2015 08:17:30 -0500 From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH RFC 0/5] lightnvm: Introduce System Blocks Date: Mon, 14 Dec 2015 14:17:02 +0100 Message-Id: <1450099027-24745-1-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2285 Lines: 58 Hi, Currently a device is brought up via the media manager, which detects if a device supports it. We like to allow a drive to be intialized to a specific media manager and therefore introduce new functionality in the core to scan a specific set of flash blocks, that maintains what we call system blocks. With this patchset, the disk should first be initialized to a given media manager, which then takes control over the device. The core and media managers are free to update the system block for the device. In the case of the initialization PPA for the media manager is changed or for other reasons. A system block is duplicated in three places to prevent the system block data to be unreachable. We currently allocate blocks on three different luns, the first lun from the first channel, the first lun from the middle channel, and from the first lun in the last channel. If a device only have a single or two channels, only one or two system blocks are maintained. The three luns each have two blocks reserved during initialization, which amounts to approximately 1.5M updates in total, which is much more updates that we expect with current workloads. The first four patches prepares the core to directlt interact with the device, and the last patch introduces the recovery scheme. Later patches will add the management functionality and integrate with the gennvm media manager. Thanks, Matias Matias Bjørling (5): lightnvm: move ppa erase logic to core lightnvm: refactor rqd ppa list into set/free lightnvm: add sync support for submit_io lightnvm: introduce nvm_submit_ppa lightnvm: core on-disk initialization drivers/lightnvm/Makefile | 2 +- drivers/lightnvm/core.c | 128 +++++++++++ drivers/lightnvm/gennvm.c | 68 +----- drivers/lightnvm/sysblk.c | 524 +++++++++++++++++++++++++++++++++++++++++++ drivers/nvme/host/lightnvm.c | 7 + include/linux/lightnvm.h | 39 ++++ 6 files changed, 703 insertions(+), 65 deletions(-) create mode 100644 drivers/lightnvm/sysblk.c -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/