Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1014433pxb; Wed, 16 Feb 2022 09:05:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbWPN9Nq/9hu364gHDEESXTZ/8BJyQLP8P4/13PeLx3Q50qoO1g+8z2Csv6KuDSpQ668PR X-Received: by 2002:a17:906:7746:b0:6ce:a12e:489f with SMTP id o6-20020a170906774600b006cea12e489fmr2897554ejn.551.1645031101107; Wed, 16 Feb 2022 09:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645031101; cv=none; d=google.com; s=arc-20160816; b=WExywuAQn3/Dvmlg2oLOecVwtKi5jFCL4SAdFxdTMVtr0fFiVubzL4ipMMNlZ9XANc m7yNo/GfDpaBmI+LP/YND1QnFFU3Xs6yHGK9GTSnvkObVBBKJ2nNQmDgyWcmg4gJNIdL gyP7XlVg5j8esxBW3i56MXF5AwwOJ0BGPkKlLrOyf0vGFkoRX86G2TQqJxck097kBOCp QTBo8yLq3NqCxlEp49oQW5daxOQJjKtcKSDQeDZEu4wgyeYGynnNpPe3YDIdW982ulL5 iwQ47r8LxltlmLceAbgelzFl9psP7dwyPCZU5Ry8ArIItz71YK4SXEvrsTImUt+bGSSk V01A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Gbm/qLf0bhmHpiUm7cUvEmurhPnWsvc5iBPuaTsL0Do=; b=K9kwWfgejoNYeIalPR3Tj6jNdk5Q64mKelq+v7r5JQCYTkUZ0M54HbJxJMltI4GIzq pL5/ASIdsZIx8yhWG7/fANbUGTPC/4MN6znZKgdjtUkOCMWZGTMh2TQojHixynhig2yv AdB8tZX5DiQP7z0r0SSjoVtxb6MZEvudhn9DBOQ5WTbOjLwiBMeaGKLU9DUDHYsXLcUD 0tD69Fkh1CDVDKe4GailBoh6jNaIAFAO7tuE461pQS/u7gDS9xe6x9Qh448eoFeCBO1V AAiG7HZGpSU9wDHN/vklBlZ1apGpe+fTw8Ki2JojNkuv8wVfk87GNft7g8f9ocYYIETC D4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=PNYnoeir; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12si2508071edx.218.2022.02.16.09.04.34; Wed, 16 Feb 2022 09:05:01 -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=@quicinc.com header.s=qcdkim header.b=PNYnoeir; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235968AbiBPQHU (ORCPT + 99 others); Wed, 16 Feb 2022 11:07:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235942AbiBPQHT (ORCPT ); Wed, 16 Feb 2022 11:07:19 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F0F42DE9 for ; Wed, 16 Feb 2022 08:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645027627; x=1676563627; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Gbm/qLf0bhmHpiUm7cUvEmurhPnWsvc5iBPuaTsL0Do=; b=PNYnoeirRyFMQHIcNY0G5ijGbgQlGX6/ErzoH+x+fqgadc2Z+mg52K75 jMfao0IbVNnMNTDouxRWy/AGNvXr1ggDAjl+jkI+852x8QoSa5DWw7/mj YZlcosLtbwEagDyegxhq4BFLbBT7IZnmogGIM0r207yUAjI7wQMsQ385M M=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 16 Feb 2022 08:07:07 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 08:07:06 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Wed, 16 Feb 2022 08:07:06 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 16 Feb 2022 08:07:06 -0800 Received: from nalasex01a.na.qualcomm.com ([fe80::a58b:cd8b:e019:f01d]) by nalasex01a.na.qualcomm.com ([fe80::a58b:cd8b:e019:f01d%4]) with mapi id 15.02.0922.019; Wed, 16 Feb 2022 08:07:06 -0800 From: "Nitin Rawat (QUIC)" To: Christoph Hellwig , Vidya Sagar CC: Keith Busch , Jens Axboe , Sagi Grimberg , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Sajida Bhanu (Temp) (QUIC)" Subject: RE: [PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform Thread-Topic: [PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform Thread-Index: AQHYHsBOpLTvLkaTP0STBN0OK3zww6yOaCmAgAfvxCA= Date: Wed, 16 Feb 2022 16:07:05 +0000 Message-ID: <9b291987cf914f119788c42b32a08a12@quicinc.com> References: <1644526408-10834-1-git-send-email-quic_nitirawa@quicinc.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.216.23.73] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Hi Christoph/Keith/Rafael Since we are giving control to PCIe (NVMe power rails control), it can vary= from platform to platform. More over, PCIe driver doesn't control these power rails directly from PCIe= driver, they tie nvme supply with one of the pcie supply and control them = together.=20 So i think it would be better to either have quirk based on platform or alw= ays setting simple suspend and platform which needs full suspend can update= it through some means.=20 Based on below link, Looks like this can be across platform ...vidya also m= ention similar concern for tegra platform. =20 https://lore.kernel.org/lkml/20220209202639.GB1616420@dhcp-10-100-145-180.w= dc.com/T/#md10b0108b3ccbb1254fe0ad8dbb6e98044a8820b Please let me know your opinions. Thanks, Nitin -----Original Message----- From: Christoph Hellwig =20 Sent: Friday, February 11, 2022 11:53 AM To: Nitin Rawat (QUIC) Cc: Keith Busch ; Jens Axboe ; Sagi Grimbe= rg ; linux-nvme@lists.infradead.org; linux-kernel@vger.ke= rnel.org; Sajida Bhanu (Temp) (QUIC) Subject: Re: [PATCH v3] nvme/pci: Add quick suspend quirk for Sc7280 Platfo= rm On Fri, Feb 11, 2022 at 02:23:28AM +0530, Nitin Rawat wrote: > Enable quick suspend quirks for Sc7280 platform, where power to nvme=20 > device is removed during suspend-resume process. This is done to avoid=20 > the failure dring resume. You need to sort this out in the PCI and PM layers. The broken platform wi= ll also affect all other PCIe drivers and not just nvme.