Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp880988iob; Thu, 12 May 2022 06:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEUhcbEf4pxHBRc5yLNAaJvNOfSst0ZUMu0Ro7fZPPgakVR+COKNwiiQoxQUoguWzIcyQ8 X-Received: by 2002:a05:6402:11c7:b0:428:5fdc:80c5 with SMTP id j7-20020a05640211c700b004285fdc80c5mr34065286edw.332.1652362925651; Thu, 12 May 2022 06:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652362925; cv=none; d=google.com; s=arc-20160816; b=bVo0jSNzmdrNdqeAvlZRArjgNXSN8jTk7y0FlL4HrfKWiMfUSchCNaBJxxwpnq9CQv tYA5KVcQNHR45ir6kiwOYDO9lDdc9xruISWUQfAL0mDAmZAeQGIx9vjgea1RcsQoxbcT KKx14Za5RkyQaOWVU9phxj8hfGEAJygIdAK6Y3hlXJ050Y7JaB/pgcVv8AOZ477y3pi/ MLYi/h2GypcbvPJwK6YhfCWAgKQaCa2iZdJMxEp2MWN2iG9fgM7LKmPAStggCN8rDwvV 1OnvGAmtOmT9ISFP3+I3tvlakUaFZkwLd4J2qR5MhcUVs2kcSXZnzCv9n8hsOf9SC+ee cL2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=t9KxxV9NPaarLjUn6WnSeaJ1unQjijG7pUlU5QRc31c=; b=En5MFMDTMdrC4uu5TZD83rELJ0C3FYS4uYypBO7dWlWdQB4lHRKQSSM3QQP+DwZsdp oJKDqPVzYyZyQWxjKQsymsUEPfyh7YGYU8RH+C1RL5uJSpsnWnjMXH5Ab4eQwB3vM010 N6BiytV6+94CEuM5bc1QxaYZ0u3sZw6tMAJDraXWckhLU2cu7N6yjBAAkGrzYDf85HKg jWkWPAo+crdcXPkAeXFhXekKGETt5a3ATygMTiD91EPTGmiPdMZkLOkTnEzkOmsPDeYk 3Pb6hlCCMXirGFIU8ZeQWfczEmDWOetSLm/jHrCOcVgxcD/ZBuj1vqBz2CSixqM5YYV3 +MTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=H+FMOTet; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bx9-20020a170906a1c900b006f3a30194c5si5637720ejb.901.2022.05.12.06.41.38; Thu, 12 May 2022 06:42:05 -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=@google.com header.s=20210112 header.b=H+FMOTet; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347937AbiEKVCY (ORCPT + 99 others); Wed, 11 May 2022 17:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238958AbiEKVCV (ORCPT ); Wed, 11 May 2022 17:02:21 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4D96161F for ; Wed, 11 May 2022 14:02:20 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id h85so3335530iof.12 for ; Wed, 11 May 2022 14:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t9KxxV9NPaarLjUn6WnSeaJ1unQjijG7pUlU5QRc31c=; b=H+FMOTettN+fuJtHKZqvo9EElI2NN1SPK4306s/OFHXEpdYb2w8lMqMB9SYcHYzNYK fPb27VOOqwfpDDqp5639NElcCyMRqOxbTyvlNIvswSaV2AJihPzGq1xo3mRDRoBbdY9Z ieamvJCGxKnz7laf6bu3Els3to1eswUjqz7BPVzm8ZEFjlu+mFmArNAeeZ61qgI+39xf jp6z/bpGJfGdnhddB5JrTTHjNlonTnbTOU1XAcwGupZCq+QMV5rdjheyamVoOumzLFj6 uChw2lg4VDkyw1fMCaQlWP3tiyel2InlZRfoUFjbHjqsH2+sUFi5PugWTKBosWZmIjeT dhLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t9KxxV9NPaarLjUn6WnSeaJ1unQjijG7pUlU5QRc31c=; b=rMGDIlS3Q0xLywYIxenRVtiIjafIYSXsAf5NIqy8MoaWnL3aOfmu2hjyLGCk5E5uBI PiVbkFQc9nQx2iP31NsrCVbSWUid7fgIaSvBrVsiR2YbqoiW7Ow8uOLtiEkW79VZU8g+ xrPe8E9OnPPFUzbOtxuGp/UAV3kqhfPRvq+yU71VDnNcglyOToP8bhxr7sc8ewccbsAq JVD21476UqkZqU5K4ZNVFe0vornFGocY/szfKvZicZA4qMcFUOenADbMR3ixe3THHO+x VY5INGocFiSSzV2rB0ut+LIAXGoj9o2XXdHruQBKS/0TEjjHtCSnxIRMWB4NCGOafsC4 OQ+w== X-Gm-Message-State: AOAM533vOr9F9gJpaGURDaA2cvUIQCMfZNXFLkzfzCIZxvP9Iq3dzqJ8 dTiMv+54cCrAyysTSjWe8EZKwB0yW80FgHXbFewCuA== X-Received: by 2002:a05:6638:34a2:b0:32b:7d4f:8932 with SMTP id t34-20020a05663834a200b0032b7d4f8932mr13504775jal.317.1652302939471; Wed, 11 May 2022 14:02:19 -0700 (PDT) MIME-Version: 1.0 References: <20220412224348.1038613-1-tansuresh@google.com> <20220412224348.1038613-2-tansuresh@google.com> In-Reply-To: From: Tanjore Suresh Date: Wed, 11 May 2022 14:02:08 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] driver core: Support asynchronous driver shutdown To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Christoph Hellwig , Sagi Grimberg , Bjorn Helgaas , Linux Kernel Mailing List , linux-nvme , Linux PCI Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 Greg On Mon, May 2, 2022 at 12:13 PM Tanjore Suresh wrote: > > On Sat, Apr 30, 2022 at 12:52 AM Greg Kroah-Hartman > wrote: > > > > A: http://en.wikipedia.org/wiki/Top_post > > Q: Were do I find info about this thing called top-posting? > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > A: Top-posting. > > Q: What is the most annoying thing in e-mail? > > > > A: No. > > Q: Should I include quotations after my reply? > > > > http://daringfireball.net/2007/07/on_top > > > > On Fri, Apr 29, 2022 at 11:03:07AM -0700, Tanjore Suresh wrote: > > > Rafael, > > > > > > That is a good observation, however, many of the use cases in data > > > centers (deployment of devices in data centers) do not exploit device > > > power management. Therefore, I'm not sure that is the right way to > > > design this. > > > > Yes it is, enable device power management and use that interface please. > > Devices in data centers should of course be doing the same thing as > > everyone else, as it actually saves real money in power costs. To not > > do so is very odd. > > > > I guess we are intermixing the terminology of device power management > with shutdown. > My second, third reasoning in my previous e-mail, thought it brings > out that difference. Maybe not. > I will try one more time, my thought process on this one. > > This patch is only for shutdown. The shutdown can be done in a system > in various flavors, > (this may include a power being pulled from the system components when > all the devices > are quiescent and it can also be soft shutdown, where power is not > removed from the system, but system > could be attempting a reboot) > > The device power management allows the device to bring down any > devices that may be idle to various power states that > device may support in a selective manner & based on the transition > allowed by the device. Such a transition initiated by > the system can be achieved using the 'dpm' interface for runtime power > management (more for extending laptop battery life). > It can also be exploited for system sleep models (suspend and resume - > where state is preserved and restarted from where it left off > --> More applicable for laptops/desktops). That does not mean data > center devices cannot exploit, but they worry about slight latency > variation in any > I/O initiated to any device. Such power management could introduce > more latency when it transitions from one state to another. > Therefore, the use case is more apt for Laptops, in certain cases > desktops in my opinion or understanding. > > The shutdown entry point has been traditionally different and the > semantics is that the whole system is going down to a > quiescent state and power may be pulled or may not be, IMO, i am > seeing both are independent requirements, in my view. > Let me know if I am mistaken. I am not sure why we should break the > shutdown semantics as understood by driver developers and > overload it with dpm requirements? > I have not seen additional comments, I request your help in moving this further, please. If i have missed something, Please let me know. Thanks sureshtk > Thanks > sureshtk > > > > thanks, > > > > greg k-h