From patchwork Tue Oct 9 11:11:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10632249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1DC9215E8 for ; Tue, 9 Oct 2018 11:13:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC53B22B26 for ; Tue, 9 Oct 2018 11:13:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB1C525EF7; Tue, 9 Oct 2018 11:13:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42CC422B26 for ; Tue, 9 Oct 2018 11:13:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbeJIS3l (ORCPT ); Tue, 9 Oct 2018 14:29:41 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35476 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbeJIS3l (ORCPT ); Tue, 9 Oct 2018 14:29:41 -0400 Received: by mail-pf1-f194.google.com with SMTP id l17-v6so683118pff.2 for ; Tue, 09 Oct 2018 04:13:14 -0700 (PDT) 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=MXyuX/eQAsmUVQCsPh/3ouIrGtbN7Q8q10YOZMYO9jQ=; b=Ehts/CCwdtmnZQad135C51xhugYCFS+soebIQ3RucheWZfcAmaLNTqn1+Jh1/FPMRB 7xE1bc9nUkE+4zP2PRbTAiUlKhXlqu2tbWiBqfA9C/L7t+47R5/8kZzOdeXJyOWqGaHB iszoAguMMMrNaM++UlTlW6pS9EHX3oi2uqele5PLzoH/R+bTw6y4g9uarvzmq1dYvFtA c4IAjqJt8Sk1qWsLwdMnAUl7YsfrVXTQqOvR0OQ8rJVV+68Ak/w/3V8Ml4ha5pGpOkb+ 9YwoI8rx3Ples/ri4tMqwawj5mUXnvwwarI9okmk0p/76LYpzBXt1cVZwTHYFamaM2Us 0Bsg== 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=MXyuX/eQAsmUVQCsPh/3ouIrGtbN7Q8q10YOZMYO9jQ=; b=cKT/7gnKz8/LXLpaf1Os6md+fRA2x/2m9UQlM2tvqilDJO5xcBuOsID3W0iFtIY0kZ POVatyavmVr0b8EuAG2afkNjVPGTDx2Se/oBSQRLAv1C8iZDFsMdbQbCHh5tZscHzC6K jqW2+vgHnbxlZcHwU/qeOCrIDpe/uhhk9jaQAFOFE+wo5O7uL8V30NSmMSeWWH43B8+x f42/6ryXqQ//zNcmi/sEzTICfK8v20Llc/xT7NFM5bG5uQnMbVdd59KhbZm6TWIOFgfJ FR5PVqlCYcNWGmNWgrc/kdwxXG0XqGsV0Rz86oW/PvlnujK8RqkazqLt44Jxj/UUWg7P 07Tw== X-Gm-Message-State: ABuFfohjse8AS7PdXxuK/wTG6TcfH8zFnYpS0/ff6jRkYnVCV6nk/2rC +yTcvtSLEzLKtG6S+XnJbPMEkiJJDdwwVA== X-Google-Smtp-Source: ACcGV60FXQYsxlxG/viRdMZUcLvJoCP8hjrTR9mdvBHdAI0XEmY17Jg71uAShmXYgoMVRc0qFESkyg== X-Received: by 2002:a63:501:: with SMTP id 1-v6mr24833936pgf.205.1539083594357; Tue, 09 Oct 2018 04:13:14 -0700 (PDT) Received: from skyninja.hgst.com (rap-us.hgst.com. [199.255.44.250]) by smtp.gmail.com with ESMTPSA id p1-v6sm25342380pff.128.2018.10.09.04.13.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 04:13:12 -0700 (PDT) From: =?utf-8?q?Matias_Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Mat?= =?utf-8?q?ias_Bj=C3=B8rling?= Subject: [GIT PULL 00/45] lightnvm updates for 4.20. Date: Tue, 9 Oct 2018 13:11:30 +0200 Message-Id: <20181009111215.7653-1-mb@lightnvm.io> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jens, Please pick up the following patches for 4.20. The changes include: - pblk trace support from Hans. - SPDX license header update from Javier. - Tons of refactoring patches from Javier, and me to cleanly abstract the 1.2 and 2.0 specs behind a common core interface. - Enable pblk to use a common interface to retrieve chunk metadata. From me. - Bug fixes from Hans, Javier, Jia-ju, Wei, Zhoujie, and me. Thanks!, Matias Hans Holmberg (11): lightnvm: introduce nvm_rq_to_ppa_list lightnvm: pblk: allocate line map bitmaps using a mempool lightnvm: pblk: remove unused parameters in pblk_up_rq lightnvm: pblk: fix up prints in pblk_read_check_rand lightnvm: pblk: fix write amplificiation calculation lightnvm: pblk: add trace events for chunk states lightnvm: pblk: add trace events for line state changes lightnvm: pblk: add trace events for pblk state changes lightnvm: pblk: add tracing for chunk resets lightnvm: pblk: stop recreating global caches lightnvm: pblk: fix mapping issue on failed writes Javier González (21): lightnvm: pblk: fix race condition on metadata I/O lightnvm: pblk: add helpers for chunk addresses lightnvm: pblk: improve line helpers lightnvm: pblk: fix comment typo lightnvm: pblk: remove unused variable. lightnvm: pblk: guarantee emeta on line close lightnvm: move ppa transformations to core lightnvm: pblk: calculate line pad distance in helper lightnvm: use internal allocation for chunk log page lightnvm: pblk: encapsulate rqd dma allocations lightnvm: pblk: refactor metadata paths lightnvm: pblk: take write semaphore on metadata lightnvm: pblk: recover open lines on 2.0 devices lightnvm: pblk: add SPDX license tag lightnvm: pblk: fix race on sysfs line state lightnvm: pblk: remove unused function lightnvm: pblk: encapsulate rb pointer operations lightnvm: pblk: move ring buffer alloc/free rb init lightnvm: pblk: guarantee mw_cunits on read buffer lightnvm: do no update csecs and sos on 1.2 lightnvm: pblk: guarantee that backpointer is respected on writer stall Jia-Ju Bai (1): lightnvm: pblk: fix two sleep-in-atomic-context bugs Matias Bjørling (10): lightnvm: remove dependencies on BLK_DEV_NVME and PCI lightnvm: combine 1.2 and 2.0 command flags lightnvm: pblk: fix rqd.error return value in pblk_blk_erase_sync lightnvm: move device L2P detection to core lightnvm: move bad block and chunk state logic to core lightnvm: pblk: unify vector max req constants lightnvm: pblk: fix incorrect min_write_pgs lightnvm: pblk: remove size and out of bounds read check lightnvm: pblk: refactor put line fn on read completion lightnvm: pblk: remove debug from pblk_[down/up]_page Wei Yongjun (1): lightnvm: pblk: fix error handling of pblk_lines_init() Zhoujie Wu (1): lightnvm: pblk: consider max hw sectors supported for max_write_pgs drivers/lightnvm/Kconfig | 3 +- drivers/lightnvm/core.c | 334 ++++++++++++++---- drivers/lightnvm/pblk-cache.c | 1 + drivers/lightnvm/pblk-core.c | 589 +++++++++++++++++-------------- drivers/lightnvm/pblk-gc.c | 11 +- drivers/lightnvm/pblk-init.c | 321 +++++++---------- drivers/lightnvm/pblk-map.c | 13 +- drivers/lightnvm/pblk-rb.c | 110 +++--- drivers/lightnvm/pblk-read.c | 86 ++--- drivers/lightnvm/pblk-recovery.c | 477 +++++++++---------------- drivers/lightnvm/pblk-rl.c | 5 +- drivers/lightnvm/pblk-sysfs.c | 12 +- drivers/lightnvm/pblk-trace.h | 145 ++++++++ drivers/lightnvm/pblk-write.c | 90 ++--- drivers/lightnvm/pblk.h | 225 ++++-------- drivers/nvme/host/lightnvm.c | 32 +- include/linux/lightnvm.h | 166 ++++++++- 17 files changed, 1436 insertions(+), 1184 deletions(-) create mode 100644 drivers/lightnvm/pblk-trace.h