Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp225518iob; Mon, 2 May 2022 17:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiT+HKVnD4/dSC9qX6OJ9Er1R9ygXSa4JwBXZqCPcI7b9C2QaiiGz1JjPFiak/KQ+IwSz2 X-Received: by 2002:a63:115b:0:b0:3c1:eb46:6f5 with SMTP id 27-20020a63115b000000b003c1eb4606f5mr9471468pgr.277.1651538798704; Mon, 02 May 2022 17:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651538798; cv=none; d=google.com; s=arc-20160816; b=yN9hLnwsyC9nmGNKHvDlj/GeIKVbTg8yKulYyEAXgilBt6GxJS7eZN/tuoHmrjI6rk qmsZ3BrAkSUpU8SVZng9U2qLPo7XYo5gTRlj7o6oNTOMBp6oxxf+ijCjo9g+u6qdMowH iCmSut54fRD1pHaSTZ6fhVzRco3vcTLcTihh7Gukh+AgjLCnlpdGOWPTAWsn0cWxO0zO dLMW4lUq2KohFk9Ucmh6EwYOwf/vjb6diWaPlRr+nKO9scrqSAebQZ7rtGEOuVFpmuBc 86R+4Q6ah8MlFzfwNXmvltqmHxDpjQca/SAgiSFFKa/TCx12ClVZXGtGiXf83Y1KxAxj amTQ== 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=y0LBGAd1mzPzBgDI34ZO9E56JL4JndzFBjXWTJ7seYs=; b=gbvloUpP48CstLnNDUniWL7ub0/9QZbYQ8XzbWxypFy+towII6cfqqBQZQfV8jXhtP 8hpb3y92gdNHAEjkiO7Mif2IATfiHqvmY2WSEkcukGwwKKaPmlHdTDJ2QH3Ge3zRFLgd WmEST5XjmlS90VEExFRE0IweSenIKPZqJVngC81chXPmJ0OIG1++0Peilpy7hNunizl3 S5Ex1qWpOZrDi9OVakvMRAfhgXsyw92t0vLVCqEe62IEO9l8AwmJ8UkqP5qFuckHXBWm bRJZMnsU8M0p2zta35iHvTeWg9YoDEpwN9s9SGLRmChyhyeQUY5Pi8ngVz0aWJQYUTAW 8uqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="ckPp/NdR"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k35-20020a635a63000000b003c1d54ffc57si7380642pgm.396.2022.05.02.17.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:46:38 -0700 (PDT) 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=@google.com header.s=20210112 header.b="ckPp/NdR"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C5603E0FC; Mon, 2 May 2022 17:35:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387061AbiEBTRW (ORCPT + 99 others); Mon, 2 May 2022 15:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387053AbiEBTRS (ORCPT ); Mon, 2 May 2022 15:17:18 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32655DEA2 for ; Mon, 2 May 2022 12:13:49 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id z18so16553188iob.5 for ; Mon, 02 May 2022 12:13:49 -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=y0LBGAd1mzPzBgDI34ZO9E56JL4JndzFBjXWTJ7seYs=; b=ckPp/NdRMXgf5FFXPyGc9liaDJqL2hcNn8pjXgoavzCrY0KDzgtvF0XFqZcMNDXfOr 6l0lOd/hHI50esNE7LrmDR6dg2UfbkHDyciTF6LeHVIUleHrSlXIeRHzr97J1v7x8kSk uzomDevaWRkXHoUH1qWDXTMfMsXSKVz+jFnJCewEpD4C6IMblNSJx23INuzLghEhlxQE 6mEsGQvJu3GuLNm3d8F4s/JrjutfEMrDVMEOfsJPdPIG+JojWyMeaaIRprxbMHoaoQxh Gk4SpxniQhemtQMl77jiDeVgdZebFILROTazekNN8BwMh2KFYXZPPdsTcFTHY45nWptd Am4w== 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=y0LBGAd1mzPzBgDI34ZO9E56JL4JndzFBjXWTJ7seYs=; b=mQmjkc8aYAwHJDA7WXzNScxejz1TNN83nGeAvthnUPrC9cAVRNkcxdhYb4+H2viGx3 qSwy81XKV1WO/eLNIHRBuu1EnBQjv7QY5efUCgHwGOxnz6eF6OdKZsZnRKzvx2p7qSb4 PxEm3MvWDL3sNgO9woUYYWC6nbdZ1BAZQxd8nf46VrqWO7+j3r0ZBLzwBu8w0Lm98+sA GDDJ3lm9dBxNqdtzrTY3HSyFJLkWA/m74VzxFZPehtAC27C9CoCwQiVBxjtPAMgoqase Pwmgbz9NWq0BvprJLUGJRkA8efUP1N2+gern1GaQVMhIjuYfToM4OnOWSsEajZo5n7lO inEQ== X-Gm-Message-State: AOAM530lWzvG850vEVYPswA6+prBjQclgaC4Sw467V8E5B8Fm8gzgeYc Ii9Fe6J3GCri7TI0dfItIipU7jeF6LsEDV/6sOKNrg== X-Received: by 2002:a6b:4419:0:b0:657:aeaa:d2e with SMTP id r25-20020a6b4419000000b00657aeaa0d2emr4701122ioa.24.1651518828432; Mon, 02 May 2022 12:13:48 -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: Mon, 2 May 2022 12:13:37 -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=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 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? Thanks sureshtk > thanks, > > greg k-h