Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2291301pxb; Wed, 9 Feb 2022 15:19:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxPzlGKeZrHFlbuCrstpQjfK0dQUA11eMy23+yey+EhQCk+FvBll8W+/Gbd/MgexXdekYS X-Received: by 2002:a05:6a00:16d4:: with SMTP id l20mr4719794pfc.5.1644448772393; Wed, 09 Feb 2022 15:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644448772; cv=none; d=google.com; s=arc-20160816; b=o1IThgtm/HbGYaSQGN9mmRwbmr0t5XxPZQeUG6n7hcYjw2OIEorgbMIA3bkOWn2AnI vtY4oiXnbOsyRKNJCvw+hD4kIHgsbJ6sIx0N28oTwuNnF/grCUuVbQpTRtatUVIEWI7/ y764g8CHMUkqhahNgYN6nLah2bO7KrZbQHB0rfJtuQT2R5+KbkRLxi49bcoT+xEyWipM qp7bR7wOrOmS3hsB320PSEzagDBnA+6ALkm1i93M5eemJ/cOc/m25TLkcheRsgyTOIUg Id16ZGAy0wqTtX3q4+rh9Gcdhj3aw2cVHhXlA0WnofqNGCEbaAzoLFee+fEmMNjQ21HZ RZUg== 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=YQ93vvu/mLRTii8DBVQc/ZPhQKp/nljv1Z77ABdvnmA=; b=Wrl76sUVgpVTq1KqSjEkQrSGwC/3p6n1UZ5j65g1zqoYqrDf1zChMQt9Q6ctf2meoQ 0Oe0UMv2Ol4/xJYePG2IE4YkwYlxtaWm2u8SgWDkHXqDXagRb4xEQdzoKYilfPBAkram DAdWj4kHxIIETqLItolgbFEYTSUCVsNkkWX9tJ4R8Z8IImRl1V2tpULtQ7447BUZ0xpv okiLZTHRE1Qyzo+8z+L5vIYcLZgFLQtz4tUJYQDXVml3bhMEVQ3hfmwnwQvlwB+rXXJd LOGCklRcvbMx1uScrVmAk/2uHa6OIurWTohyHVX//21FCrizgFHnPqRNe859sdzu4Ewj HsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aSpJb1ew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v186si17458752pgd.333.2022.02.09.15.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:19:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aSpJb1ew; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E7C7E053FAB; Wed, 9 Feb 2022 15:16:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233782AbiBIVrW (ORCPT + 99 others); Wed, 9 Feb 2022 16:47:22 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:59130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233770AbiBIVrV (ORCPT ); Wed, 9 Feb 2022 16:47:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89024C0F8692; Wed, 9 Feb 2022 13:47:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1212DB8125B; Wed, 9 Feb 2022 21:47:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2822C340E7; Wed, 9 Feb 2022 21:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644443241; bh=YQ93vvu/mLRTii8DBVQc/ZPhQKp/nljv1Z77ABdvnmA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aSpJb1ewaZ2Z9xJBWbGcdJCZsTktGsEZJ3dFz6EY2R9NYPmruhmCnhi8U66OqjICR WjyUSGe0Jx2Cm9eFGOM8qWCF9Rd7+M6yjL2lbrHmr7xJAOLroLF80ooK+DNgpYm0sp S/QvsauD6hI3oXF4YBbxJ6ja6FzZJeStGjMBQ2ELkMNKtu+8jbg2Fj5jJ9lALJDBDD THn7Wgs4wIpBln20X8iGIKVf14HkgwatyM4X67v10X14DRgRJ8+HGpSZBXEvl+JJio Z44gj4P571G6865pXJwAS8x/kz/6U2O351PKSqu2LhVIsTISb7tPW7yd9GgAAilvdu yofN8SyfCKtSw== Date: Wed, 9 Feb 2022 13:47:18 -0800 From: Keith Busch To: nitirawa@codeaurora.org Cc: Vidya Sagar , rafael.j.wysocki@intel.com, keith.busch@intel.com, hch@lst.de, bhelgaas@google.com, mmaddireddy@nvidia.com, kthota@nvidia.com, sagar.tv@gmail.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Query related to shutting down NVMe during system suspend Message-ID: <20220209214718.GC1616420@dhcp-10-100-145-180.wdc.com> References: <65b836cd-8d5d-b9c2-eb8f-2ee3ef46112b@nvidia.com> <20220209202639.GB1616420@dhcp-10-100-145-180.wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 02:47:47AM +0530, nitirawa@codeaurora.org wrote: > IMO, the NVME driver is not associated with any device tree, Instead PCI > driver is associated with device tree. That may be good, though: the idle behavior isn't unqiue to nvme. It may be fine if PCI is the common layer to own this, as long as drivers can query it. > So unlike ACPI based platform where we have platform specific DMI matching, > we don't have equivalent check for DT based platform. Is there any existing kernel API a driver can call to uniquely identify such a platform? > Do we see any concern if we introduce a module param with default not set to > quick suspend. As of now, the idea was proposed and was not accepted.