Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2911696pxb; Thu, 10 Feb 2022 08:11:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp2IR+te4ZpLX9fFHlTP1Nle3RXyJYC6pN10t4LvjLkSn6hH/DUDzP0yychqeBa1Mng5Uc X-Received: by 2002:a17:90a:df13:: with SMTP id gp19mr3548985pjb.170.1644509480494; Thu, 10 Feb 2022 08:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644509480; cv=none; d=google.com; s=arc-20160816; b=M6NE2G+GhDsMGFncIU6ubjLaRgsx7U9nqGzB8cG+U69h+ObEyYW70VPXxQBdXqtlTF OU3zXk/bBf+x+maALorLT4wkmxiMJFzcq1uHsFvQE0eXg6zxBtdM2xyJQFKRnuhq2R4E wMBRzC0Gxv1AELxl5OJ0VpYP0M9+X2h2LpeHXDcFy+Dh+AnjksaEegjjPI7Jrlg6HcZE IB3+X7NU1cBLVhMXpqxvmGripjuSrHZUxUVFTq0KEFDytgztQ6jcaNf9rWUU5hkIp6Xv 4WfEJiehGbViSq0ZSAHKzbNBzQYRzCr+bEVe/iRep0HT136uH3h+9r47NTKn4GnR1vYK PlWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zD/3iZu7QTBepjDAFJsl0viHHBJPbs2QwsTkApDUaII=; b=QQho+bP5Q46+mtKW2UvL/dxR1UkdrpK5oXEzz9vocuQHcjd/YmDp8+E1yaYglQ9v6H 4/P8lc94mUImiPHzOTqLHW4ljQctAS4xUh/Z419PfOCwVnbKi1P9DUNoG77PHx1GeeZO zsZvfRjUjUGcMeDqYRgvFxFAonyERvUFMoetXUNDDMDsxMSr6NC0DsxdS7EI0HMBvu8r Vmej/UKSfZ/+f+ujIZfZjX1tYri3cdH/oe/GEpPAdW0aYDF0G7mTf6Y423uxZq+jcWcp gV6ZgXXjwII53A8vFUDwmFTNxYhZ6QMrzkhm1Jf4NBThUwjwG7V/wsxnutB3CJEkh5O/ BPtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jyWCLFa1; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g185si519242pgc.496.2022.02.10.08.11.06; Thu, 10 Feb 2022 08:11:20 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=jyWCLFa1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243311AbiBJPBS (ORCPT + 99 others); Thu, 10 Feb 2022 10:01:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243267AbiBJPBR (ORCPT ); Thu, 10 Feb 2022 10:01:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B3891B3 for ; Thu, 10 Feb 2022 07:01:18 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D149C61AD8 for ; Thu, 10 Feb 2022 15:01:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7C03C004E1; Thu, 10 Feb 2022 15:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644505277; bh=Hi2Mca6jqEt1GgA8oCBVMaSPWVu89ItIPId18WE1+wo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jyWCLFa1Mw22hr0+sxUUJEtJ98QtJ4JJPXo70nMNuzLgcM7f1avHCogMbutMJA2JW cWG1WXhix/0Ra+ALhv74XBk85rxAjUV0XN3f67EOqvzjAarXw516zah75060+9/SL3 DwFv2jtxPqLw77w8PAksghjaxmBYedc3GTxH2jJgSxtALSFf1ISuY+DON88OffKy55 jEjSugCGbpNc4R4kTrjH1CKwFrtw3KO23kNoDEVlS2Uppfy56vbuEH7VzmdeXRWLVJ 9+SKJuEgLWbKyqdnNtS4Vf8yo5Un0yKMBPVjp/rmM8LmvwmKD6rY3nE0p7xZFKYpL9 dt4rQCfvOh1pw== Date: Thu, 10 Feb 2022 07:01:14 -0800 From: Keith Busch To: Nitin Rawat Cc: Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Shaik Sajida Bhanu Subject: Re: [PATCH v1] nvme/pci: Add quick suspend quirk for Toshiba drive. Message-ID: <20220210150114.GB1617879@dhcp-10-100-145-180.wdc.com> References: <1644495676-8124-1-git-send-email-quic_nitirawa@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1644495676-8124-1-git-send-email-quic_nitirawa@quicinc.com> X-Spam-Status: No, score=-7.1 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 On Thu, Feb 10, 2022 at 05:51:16PM +0530, Nitin Rawat wrote: > The Toshiba KBG40ZPZ256G SSD is having resume issues on SC7280 platform. > Hence enabling quick suspend quirks for Toshiba KBG40ZPZ256G on sc7280 > platform so that nvme device is taken through shutdown path > during resume. > > No issue is seen after enabling this quirks. > > Signed-off-by: Nitin Rawat > Signed-off-by: Shaik Sajida Bhanu > --- > drivers/nvme/host/pci.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index 6a99ed6..04c5954 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -3032,6 +3032,15 @@ 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; > + > + /* > + * Toshiba KBG40ZPZ256G on Sc7280 platform is having NVMe > + * Resume issue. Appending quick suspend quirks for sc7280 > + * platforms so that full NVMe device shutdown path is > + * executed during resume. > + */ > + if (of_machine_is_compatible("qcom,sc7280")) > + return NVME_QUIRK_SIMPLE_SUSPEND; Shouldn't this check be moved outside the vendor/device check? It doesn't seem like this behavior for this platform is specific to any particular controller, right? Otherwise, looks fine.