Received: by 10.192.165.156 with SMTP id m28csp1312759imm; Mon, 16 Apr 2018 18:57:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+U0d5nho1/upEXeXwygAFbQuI1bSNFzSy9M7lBj0wmFbn0iV9qPZBRn/hM6q14anNrm33n X-Received: by 10.99.61.15 with SMTP id k15mr140490pga.361.1523930227664; Mon, 16 Apr 2018 18:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523930227; cv=none; d=google.com; s=arc-20160816; b=aLhjYlLq7VG1eo39tbivAln8y1edKKI1DKCG3bDsJe4iJGgtkI2S/QzX9QYafYB89o owNBk/hFyATF4gF6TH9vvKb10LHNECIe4R+I2vlgfeUYjadyZUxEKCHAmXayhB7pziph omYG2Pftb23DX6dvFiS5KjgexGX6jkMuqrFO+9K9+AgRxwgUn0FJokPguxdi9WwPhdKj PhZQfbVoAI3WuRIh22WGxL1z3pphpBLCVlWQESqHGT4g0Zsc+CLPHMcN1zJ0+WC71uWg 8wu74ufOi4Mjmvkqkas9CNoCyksFSzoE6YVfnPe92fFLk2UvOW/WmY04DwF96ZsyzluE hREQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6YrRhiqrWDFM+KgEJjug4j67PmRXNzU1oM2BIXIsu1k=; b=k0G+IRntaR96V6rtgkboIGrJfk323rKs1J1Pb7h2GIcdyisxtlfnJCEW2MdRwkbNQ8 +HQ5W97/5BHIyW6SiMlCKMEHm3qDVrtzBGUcIPxcc8y8HuBNC+3zM2oraQvkSLYoGJsB 3sQfQe1SKyHA88XDbMcVjbRCpI7lLxiHt2s5cpUorGAtUE77r9W9wxJ1UWrN76VckdGr CAw9XH7M/8Qb88JA7fdJCcWx/5MxzJDr1WTa7BIjDaWT/CnAt0KoMmZW7co5XIQRX0t4 jEKlSlGnP9YfwN9qaVfOsjcMtyiOxP2ch9KJOkZA9PZvGkC4Wn7ubrETVG3fK0DWkk8r gnkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cnexlabs.onmicrosoft.com header.s=selector1-cnexlabs-com header.b=guiwJah0; 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 h34-v6si13710621pld.360.2018.04.16.18.56.53; Mon, 16 Apr 2018 18:57:07 -0700 (PDT) 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=@cnexlabs.onmicrosoft.com header.s=selector1-cnexlabs-com header.b=guiwJah0; 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 S1751970AbeDQBzk (ORCPT + 99 others); Mon, 16 Apr 2018 21:55:40 -0400 Received: from mail-co1nam03on0042.outbound.protection.outlook.com ([104.47.40.42]:45287 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751060AbeDQBzh (ORCPT ); Mon, 16 Apr 2018 21:55:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cnexlabs.onmicrosoft.com; s=selector1-cnexlabs-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6YrRhiqrWDFM+KgEJjug4j67PmRXNzU1oM2BIXIsu1k=; b=guiwJah0KWBQLZ6hIwq5gCAATAVYezjAeSV1Dh16TFaplWqQ1P6Go20S7DyWtvcirvXlSvSePmkd6SriG4Fe7RmCVYIxeDn1gynujK5OqleS2KPkhs4/Gip3wyH6h0Pn2Xj4Ypd4DtgXppQLgFCtCGkztcwmfr1008IQDl33WpU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=wxu@cnexlabs.com; Received: from dojo.cnexlabs.com (115.238.84.139) by MWHPR06MB3502.namprd06.prod.outlook.com (2603:10b6:300:11b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Tue, 17 Apr 2018 01:55:33 +0000 From: Wei Xu To: linux-nvme@lists.infradead.org Cc: mb@lightnvm.io, javier@cnexlabs.com, keith.busch@intel.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Xu Subject: [PATCH] nvme: lightnvm: add granby support Date: Tue, 17 Apr 2018 09:55:12 +0800 Message-Id: <1523930112-7402-1-git-send-email-wxu@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [115.238.84.139] X-ClientProxiedBy: HK2PR04CA0077.apcprd04.prod.outlook.com (2603:1096:202:15::21) To MWHPR06MB3502.namprd06.prod.outlook.com (2603:10b6:300:11b::22) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR06MB3502; X-Microsoft-Exchange-Diagnostics: 1;MWHPR06MB3502;3:n/HW0dhANT94yYEJui2a5Zdxj6QMNGmgjYfuMtsQqSrpFBis25soAWRetXwlyKlmDPyk+IXJCggmIao9fclFhJGjL2p8ldMS8Fivl66LjjAozBcKz6nF6hHtUTcUW9LqWiAMwNpO+zhKCzZw7o5ZxuCCUCGJpHwvGk/Le3DjrSh89vPn5b+HxOji1Vi5lAlyH1wT30UAOfa+xdRn78t8q2N77dn8iounCt7I0iATH1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5nx3caaAqYaLyvkFf+T7y3eK0ifWs3snidsHBMsnG7DGUh1nVzCe+jw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHPR06MB3502;BCL:0;PCL:0;RULEID:;SRVR:MWHPR06MB3502; X-Forefront-PRVS: 0645BEB7AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39830400003)(39380400002)(366004)(396003)(346002)(376002)(199004)(189003)(47776003)(66066001)(68736007)(5660300001)(4326008)(7696005)(8936002)(23676004)(36756003)(7736002)(6666003)(59450400001)(386003)(69596002)(316002)(26005)(86362001)(52116002)(53416004)(25786009)(478600001)(81166006)(956004)(2616005)(81156014)(186003)(16526019)(107886003)(1857600001)(486006)(476003)(53936002)(8676002)(50226002)(50466002)(2906002)(2351001)(3846002)(2870700001)(105586002)(305945005)(2361001)(6916009)(106356001)(6486002)(6116002)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR06MB3502;H:dojo.cnexlabs.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: cnexlabs.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjA2TUIzNTAyOzIzOk9BckdaNnM3OEFMYkR4cTRxemN3eTBaQmlR?= =?utf-8?B?OTZaUHhmN1QxSDYxWGRJSHY3bTlmWUZjZWY1RlJteExZMTlPMWpRTndGTXZz?= =?utf-8?B?d2FxS3A5dmFINUcrQys1dWhydjh0N3Y0MzZFbXh0RHBqdHE2K1dlU2x1ZXV6?= =?utf-8?B?L1dCU2RJT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-Office365-Filtering-Correlation-Id: 476e850c-ff75-4394-3e69-08d5a4064f33 X-OriginatorOrg: cnexlabs.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2018 01:55:33.1591 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 476e850c-ff75-4394-3e69-08d5a4064f33 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e40dfc2e-c6c1-463a-a598-38602b2c3cff X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB3502 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new lightnvm quirk to identify CNEX’s Granby controller. Signed-off-by: Wei Xu --- drivers/nvme/host/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index cb73bc8..9419e88 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2529,6 +2529,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_LIGHTNVM, }, { PCI_DEVICE(0x1d1d, 0x2807), /* CNEX WL */ .driver_data = NVME_QUIRK_LIGHTNVM, }, + { PCI_DEVICE(0x1d1d, 0x2601), /* CNEX Granby */ + .driver_data = NVME_QUIRK_LIGHTNVM, }, { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) }, -- 2.7.4