Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2190718rwb; Thu, 27 Jul 2023 03:40:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCwQmwlWQb186COJnIzxh6ChRikExm1Pvxl6CNcFLXwT3JSb9Mt61pnPwcJp3t3ry2tpnj X-Received: by 2002:a17:902:8f95:b0:1b8:6987:de84 with SMTP id z21-20020a1709028f9500b001b86987de84mr4412952plo.48.1690454452897; Thu, 27 Jul 2023 03:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690454452; cv=none; d=google.com; s=arc-20160816; b=ueMhkkgyUx5rpWn3vcZA5n/riRRwc4NTyej5h2jPaJllv1dbqU41moNydb99cff34/ auL1sRfG2jDnyTg0IyR6aZdv1qZILlvXxPLas+C6hB5230S98z114uFuQvPFZLKqsCtm G2ejlN1sTva1Jiz6tKxbS4V5S1PBRBb+1oRdob5Vxi2cqCx2rKcHtV5aSoZf7NF+x1/O KB8ScBlxh3Ade0+i3ODLJbvJk7syBEXkLbCmcHZkOu1Kifty4Q2PqFqpJydqxp1gNZeQ UpkNsAFWxNKyBiVoV3FIEt4hXEwtnmy77iZb019WpK2+FXdPkDLXFmVWrZSgBKhipkfn jv7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dazoiG/A1vrVzBtZaRm1eL6aOfJ6AlDwSG66EtOsTmE=; fh=9J5IJTOxn1J4xcfqtZYy2wo6/vV7YRpL6fzGtjQFe+c=; b=qkedB2pSnT3AzQKxAheUsSg1UyOR0nE/1eiRhG7DErnFlmZTRQd0OwYgtXGeioiFCK uM3Nffao5mc73IdKkmMkWBT7+SvlrmJV7/GQJRBGSQWI7DJhRj4h+iRePeqjPsAERjgS zVGGBWlti5PPpJ6BGEYgwcLdpDqsA2n0FS4Grqa3lUxKtOEz/lh8u5/BwazWcBRU5OsS n3QLe0q17eFP6l7WxNEED3CgyvOvsxH8aV751Q4WeDVpRsnqFqOXE1PUQ2IXg5QP7WWA 9mL0pRQQsXg70GbC56JjfZrU+qQpJYy7r4Z+MaJo8BxwvjL+Fd8GnGcQQ1l1syeri1ws fN3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a170902ee5300b001bba953ac2esi1101081plo.339.2023.07.27.03.40.40; Thu, 27 Jul 2023 03:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231915AbjG0KT7 (ORCPT + 99 others); Thu, 27 Jul 2023 06:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233414AbjG0KT5 (ORCPT ); Thu, 27 Jul 2023 06:19:57 -0400 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998061FFA for ; Thu, 27 Jul 2023 03:19:45 -0700 (PDT) X-UUID: efdee9600b8242dab6b8f45134d09719-20230727 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.28,REQID:cd34a3cc-68f4-4daf-8285-83140148c9bd,IP:5,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:0 X-CID-INFO: VERSION:1.1.28,REQID:cd34a3cc-68f4-4daf-8285-83140148c9bd,IP:5,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:176cd25,CLOUDID:3f028542-d291-4e62-b539-43d7d78362ba,B ulkID:230727181935Q0FGY2OS,BulkQuantity:0,Recheck:0,SF:44|38|24|17|19|102, TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: efdee9600b8242dab6b8f45134d09719-20230727 X-User: aichao@kylinos.cn Received: from localhost.localdomain [(111.48.58.12)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1232940138; Thu, 27 Jul 2023 18:19:32 +0800 From: Ai Chao To: kbusch@kernel.org, axboe@fb.com, hch@lst.de, sagi@grimberg.me Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Ai Chao Subject: [PATCH] nvme-pci: add quirk to disable APST feature for BIWIN AP443 256GB SSD Date: Thu, 27 Jul 2023 18:19:28 +0800 Message-Id: <20230727101928.1366179-1-aichao@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add quirk to disable APST feature for BIWIN AP443 256GB SSD. It drops off the PCIe bus on a Lenovo board, board name is LXKT-ZXFG-N6 or LXKT-ZXE-N70. Signed-off-by: Ai Chao --- drivers/nvme/host/pci.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 7f25c0fe3a0b..240e8e946e01 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2897,7 +2897,18 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev) if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO")) && dmi_match(DMI_BOARD_NAME, "LNVNB161216")) return NVME_QUIRK_SIMPLE_SUSPEND; - } + } else if (pdev->vendor == 0x1dee && pdev->device == 0x5216) { + /* + * BIWIN AP443 256GB SSD drops off the PCIe bus on a + * Lenovo or KaiTian board, board name is LXKT-ZXFG-N6 + * or LXKT-ZXE-N70 + */ + if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO") || + dmi_match(DMI_BOARD_VENDOR, "KaiTian")) && + (dmi_match(DMI_BOARD_NAME, "LXKT-ZXEG-N6") || + dmi_match(DMI_BOARD_NAME, "LXKT-ZXE-N70"))) + return NVME_QUIRK_NO_APST; + } return 0; } -- 2.25.1 No virus found Checked by Hillstone Network AntiVirus