From patchwork Thu Mar 29 22:04:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10316601 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F2A186037E for ; Thu, 29 Mar 2018 22:16:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7B0E2A536 for ; Thu, 29 Mar 2018 22:16:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC30D2A534; Thu, 29 Mar 2018 22:16:10 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable 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 4FF672A534 for ; Thu, 29 Mar 2018 22:16:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbeC2WQI (ORCPT ); Thu, 29 Mar 2018 18:16:08 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:38990 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752236AbeC2WHD (ORCPT ); Thu, 29 Mar 2018 18:07:03 -0400 Received: by mail-lf0-f66.google.com with SMTP id p142-v6so10344877lfd.6 for ; Thu, 29 Mar 2018 15:07:02 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=kRuDZc6WyFgN7XDE8G/KDcxUKpuRXPWsCWEFnwvMq1I=; b=bGmOFNrGfBRtmQDF7FQQaEbExqN1GxLPFegG1g20jATIBz2FqG+iz9jC5jZoPqFMhB X08raqEsl+XAF31P1HKTRet5L6/vgVAQBTtM9YqCgowGMG/QFXOTURt04iTjLPyQTiaR GI5FF8+QwZaBilj0EzVwsiVHR8T2oj+C/whtBW+KplQN7LBAecfCQnLW03YjLb2R6qi/ 5Td4CYa3c779Zg3aNrx1piftLPs5Rv96bA6pjvr28NV7q/jHr88IhpJz2AuKwQfsdTiR quj+gUHeKMS9Cz13CYEswvq9eHa8A+EKL20Heo9A9FZUHM7l7yo8NF5mrEJqUzHOVk+5 1Vqg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kRuDZc6WyFgN7XDE8G/KDcxUKpuRXPWsCWEFnwvMq1I=; b=BRggnzOK9o0v8kcVFJsrQsmsOCrMVGEa/eCsqD0fPlrh6yAvsNViKMnYyoDhyU6yGN XNhOTBJd5RQmYdp0gXBY99OCXdrB79oWnD0BIqkKTbE595U2udfpZfGMMHG+YjOGn0bD KKneSKRe2zd94n0viHQYmyPBz1lACvxgaitZ66hwm243fAQRbo/CnfHqBF4vhAvh5WW1 lEhobbjxEoQ3otKfwpuy4x6zB2vMedrkIg9ruCSLWTS4leeOT+w/+jeGf0JT/9EidFnQ euTB7RVWbr/mGXlnwfRAu8g5H3Ktb9a6nO7oSEqH54szoWxqUmiUozCW/6T4yEwl8qYO lnNw== X-Gm-Message-State: AElRT7GB3AWJdjfBymtGenrmj+U+phr7c/E57VWPtT8JKBcbNOy7qG+G oMvw8qTArxuUtLhQyEmwxsj0jg== X-Google-Smtp-Source: AIpwx4+xRGSVQy9Uw66c/lCPgVXZjiQ+KLPkZsx7qnCNrs0Ee5uHGmCnYWTXZ2EnBGKkNZ+ChT5Cgw== X-Received: by 2002:a19:d015:: with SMTP id h21-v6mr6238124lfg.124.1522361221692; Thu, 29 Mar 2018 15:07:01 -0700 (PDT) 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 i89-v6sm1365508lfk.12.2018.03.29.15.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 15:07:00 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, keith.busch@intel.com, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 06/37] lightnvm: remove mlc pairs structure Date: Fri, 30 Mar 2018 00:04:53 +0200 Message-Id: <20180329220524.30363-7-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180329220524.30363-1-mb@lightnvm.io> References: <20180329220524.30363-1-mb@lightnvm.io> 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 From: Matias Bjørling The known implementations of the 1.2 specification, and upcoming 2.0 implementation all expose a sequential list of pages to write. Remove the data structure, as it is no longer needed. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index f9c38a8d54e1..940c9b9a2a09 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -115,17 +115,6 @@ struct nvme_nvm_command { }; }; -#define NVME_NVM_LP_MLC_PAIRS 886 -struct nvme_nvm_lp_mlc { - __le16 num_pairs; - __u8 pairs[NVME_NVM_LP_MLC_PAIRS]; -}; - -struct nvme_nvm_lp_tbl { - __u8 id[8]; - struct nvme_nvm_lp_mlc mlc; -}; - struct nvme_nvm_id_group { __u8 mtype; __u8 fmtype; @@ -149,8 +138,7 @@ struct nvme_nvm_id_group { __le32 mpos; __le32 mccap; __le16 cpar; - __u8 reserved[10]; - struct nvme_nvm_lp_tbl lptbl; + __u8 reserved[906]; } __packed; struct nvme_nvm_addr_format {