Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2899971iog; Mon, 27 Jun 2022 05:22:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tANk5ba9BW9YCXJi370xiZe1fm5+bN1F6Uv/+Ey8ragi4dIGAYh2oYJ7OZbrmosiX5bh9D X-Received: by 2002:a17:902:ecd2:b0:16a:4028:8a92 with SMTP id a18-20020a170902ecd200b0016a40288a92mr14644323plh.97.1656332555613; Mon, 27 Jun 2022 05:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332555; cv=none; d=google.com; s=arc-20160816; b=kUmvZHXQv2lMDqZ+RenC29kZaOrql+oZ6WKE/ZrXuz3jxNkiXtyDxmQz8iAExkUhUI m6AULjp6FfmPqvXnOGMD7gtBd1xx9ySL1LOIhQd0dv2TIDQrh4xneBra2wlM/jsLgqpQ gJ5bzei1jXS0huEYBuI1vaCRbZaJTAqom2WUQVJtDtclM16KWUuQ2xdrioIi4yHg4g0r X9orF0MaZVySKO1rvNjnWPMSl29xUVoG+MKfeWV4uwr1NHkDnGW6HkeUU027BwHd90Gg ypEfKUOHUY7Ydiq2ncYYskCD+KLyv+J0x/uyNwpcAjKPIOLfV7s7e+WB70IBgqNoET/W Yr0w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6WdFLknb7pMn4sqqc6zK+z/uXbN9CqjklgEsbGvgqek=; b=WhuAYeGqj12SS1Frfan2AlcE5U5mjQtT9cxF1dm5z95rWwa/qdbIHmSEo3NyZJvLX1 MkzSdtTrCRJyQUKuieSpkYUbUNbPlCDgUSlTSQHGLtJuNgPeT7d1KB6/7/ghwut2wSqd 6kmAmUPBB946SXNo5L2iFHrqckXnbsWVh2E2NBzcQJ4aoJ5grQV+W8eFqUHsX5QlGeq1 QWQKZht0Wr5uD5smRJEbTiiTUk69Q69ldg3G9jaUF6sS2Hx9NibJZ3pLer55+XKyTXjv guNVHPSM8LXy8jRy5VUjMQW1o34u4vFSxjldgJeRuBC2hvszMGQapFbWxV2vVhMfxhOF yWQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MbaHn/rA"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l70-20020a638849000000b0040d37aa9ae1si13021027pgd.587.2022.06.27.05.22.23; Mon, 27 Jun 2022 05:22:35 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MbaHn/rA"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235076AbiF0L0b (ORCPT + 99 others); Mon, 27 Jun 2022 07:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234958AbiF0LZi (ORCPT ); Mon, 27 Jun 2022 07:25:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E52696594; Mon, 27 Jun 2022 04:25:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A26C5B8111E; Mon, 27 Jun 2022 11:25:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4233C3411D; Mon, 27 Jun 2022 11:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329124; bh=TAG2BEam/Z1ewlKrE9whkzHMeSL0882MfpnL0G9SYFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MbaHn/rAv93w6G/n4C2CtkWIzGWPC9kTd1VQXip+TX9FTNlJye1XFGg04vhkPIEmc Y1zYflujdtMfbbL7nTyltl8JA0cvAgmJY0ZDmTaHMWx8ICn6dp02pycgGWclY8UFaX xUlUdtvsFA3yTpiEaK9vDRXSnYrqJZnUobI91EYY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Enzo Matsumiya , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.10 059/102] nvme-pci: add NO APST quirk for Kioxia device Date: Mon, 27 Jun 2022 13:21:10 +0200 Message-Id: <20220627111935.222319108@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Enzo Matsumiya [ Upstream commit 5a6254d55e2a9f7919ead8580d7aa0c7a382b26a ] This particular Kioxia device times out and aborts I/O during any load, but it's more easily observable with discards (fstrim). The device gets to a state that is also not possible to use "nvme set-feature" to disable APST. Booting with nvme_core.default_ps_max_latency=0 solves the issue. We had a dozen or so of these devices behaving this same way in customer environments. Signed-off-by: Enzo Matsumiya Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c42ad0b8247b..9ec3ac367a76 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2699,6 +2699,20 @@ static const struct nvme_core_quirk_entry core_quirks[] = { .vid = 0x14a4, .fr = "22301111", .quirks = NVME_QUIRK_SIMPLE_SUSPEND, + }, + { + /* + * This Kioxia CD6-V Series / HPE PE8030 device times out and + * aborts I/O during any load, but more easily reproducible + * with discards (fstrim). + * + * The device is left in a state where it is also not possible + * to use "nvme set-feature" to disable APST, but booting with + * nvme_core.default_ps_max_latency=0 works. + */ + .vid = 0x1e0f, + .mn = "KCD6XVUL6T40", + .quirks = NVME_QUIRK_NO_APST, } }; -- 2.35.1