Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp132817iob; Tue, 17 May 2022 21:20:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMUhyVzlyOlD1K0yJAzQ9WGdHs/QzRsQNzw8sCpiszk2Caoy6qYrowZAIVrVGGI88D92RZ X-Received: by 2002:a62:484:0:b0:50d:a020:88e5 with SMTP id 126-20020a620484000000b0050da02088e5mr25628905pfe.51.1652847634201; Tue, 17 May 2022 21:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847634; cv=none; d=google.com; s=arc-20160816; b=yttK0o6dKpBO593+YpSTmAcqbhDqhnkTIthGHt1hDGiAxGPxCQnPTAYDmKJmx0KVh4 LR+m903k+ua2euoPbQZi3YIwyisRiH1+RmzLwOw2FXjmluhxSP7g4P0X2BDQKAxVWMpx sSlx8bUnbRSy7N72tx1D7K6sTmzl8AfPlFYvL2e8gwfPJzVX+zqWEfncWf0PSLL/ELJg iHsgJBVqj7J1lGQv3BThWenHnmxAhb3vb7WhwZrHc8n+81gxyaR6n2pld+JvJdfsaYid pjdjHykyNuJv0AcxcK/5984siGkG45QjoAF5dKsyrsmfjJA2bM9JNuUQHs0KfHfdqcTY lBHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=P3trp4THKfLyNocMqM17tbB76f3WfC6Jda0LcAL37Fw=; b=HFiwkYzS5jEFVDLeqVyrQhJgh37Jl/rKNOkf0/WiZn/pKUoeZ0xRWb7bngphjWbqq7 0qgOjiJfYudLRHVCmqD3fHsgIlMaYjbrWGQEb0wL28lMNDDLQVAedSiPsHlx+6gELnr4 NRK+OAwUlrUoozaF/SgWdThRiqF6CACZmT+GGelkHT9OtfgoJNpd2cEWsubg0w0eI2Ay Qya1DTIV1c1Mxdnr4yLzOXJqzkOQive69L4VlJU0RfQrV8F+09r4QVeHbgFmgcGr4ORc kmXIhOc3QH7HL7evlmqwKcfc5FwqRrFkvXYKvreHMpYERCo37bYXbms9PqWsridL+DjJ tJ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hU6JX74a; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m2-20020a170902f64200b0015ea480f268si1325081plg.294.2022.05.17.21.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:20:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hU6JX74a; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25B4E21806; Tue, 17 May 2022 20:46:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347734AbiEQUnK (ORCPT + 99 others); Tue, 17 May 2022 16:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233909AbiEQUnC (ORCPT ); Tue, 17 May 2022 16:43:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0197452B07 for ; Tue, 17 May 2022 13:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652820180; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P3trp4THKfLyNocMqM17tbB76f3WfC6Jda0LcAL37Fw=; b=hU6JX74agI+e/rZMwauCYC6l4a2y5p8Xlnag8amN3sPbRIZ6x2KdPuVYbHoJ3EXTuh4pDW kLaoKdxoECBG3YMT17cCU9Wp89kJJ3kcx1noBOuRUuneL44qSSzEnxtcNPcq9dnQegZSa3 tQ29IhtXgeh1CzBl0jcsg7Gpxgt+cfg= Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-126-2bM31xgtMzKZUE29VtbHNQ-1; Tue, 17 May 2022 16:42:59 -0400 X-MC-Unique: 2bM31xgtMzKZUE29VtbHNQ-1 Received: by mail-il1-f199.google.com with SMTP id x1-20020a056e020f0100b002c98fce9c13so129915ilj.3 for ; Tue, 17 May 2022 13:42:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=P3trp4THKfLyNocMqM17tbB76f3WfC6Jda0LcAL37Fw=; b=lANfPBiuGb3pG8UDV85PfzqGdDrnkEZz3mfIHYQMTPKGvDXLxlzXgIyukQwnt2tEzU u81cSoXhwdwjTQLaCr49reeQXob+1VmtCMm65DvxP0tW70SuTWS5c2UBV0mZQrB+IJqs Z6G0Mc0vF0fwEPFLvSXbypAKhnzbS+ZPvRE0f95jJBx9qWSPYJqVmQu5go11DPll54qs gi4dLXb1ZZG2P8veuZ6SUvtbPxKlyd8knLPeY0Wd/QfiIVtGgc6KNLbJHF9j70Kfck6i zH/rI/2ShZzVA+MVIjH7ELQwD9ATiAtRfoimg8PNwfS8wiW0+ze+ID0IEjXbRwWJDsaf aDRw== X-Gm-Message-State: AOAM530QvMENYwfktVmEK7ezYKNrMEn2KsbPJkmguVM3YSgFUFaiNgjE l3dseg5JzaaYmBD2szp+FeDDX8+01E+/V0gK11UE6MBjGMRRo0LW+4jh96vXrFhhYIYKpLWlekW 5G8ru54qB5rjgM54TAmYMEsVh X-Received: by 2002:a05:6638:238d:b0:32b:7bda:c64f with SMTP id q13-20020a056638238d00b0032b7bdac64fmr12542379jat.83.1652820178178; Tue, 17 May 2022 13:42:58 -0700 (PDT) X-Received: by 2002:a05:6638:238d:b0:32b:7bda:c64f with SMTP id q13-20020a056638238d00b0032b7bdac64fmr12542372jat.83.1652820177995; Tue, 17 May 2022 13:42:57 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id d12-20020a0566380d4c00b0032e40f3e40dsm25502jak.124.2022.05.17.13.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 13:42:57 -0700 (PDT) Date: Tue, 17 May 2022 14:42:56 -0600 From: Alex Williamson To: Abhishek Sahu Cc: Cornelia Huck , Yishai Hadas , Jason Gunthorpe , Shameer Kolothum , Kevin Tian , "Rafael J . Wysocki" , Max Gurtovoy , Bjorn Helgaas , , , , Subject: Re: [PATCH v4 4/4] vfio/pci: Move the unused device into low power state with runtime PM Message-ID: <20220517144256.15991375.alex.williamson@redhat.com> In-Reply-To: <20220517100219.15146-5-abhsahu@nvidia.com> References: <20220517100219.15146-1-abhsahu@nvidia.com> <20220517100219.15146-5-abhsahu@nvidia.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, 17 May 2022 15:32:19 +0530 Abhishek Sahu wrote: > 5. Since the runtime PM framework will provide the same functionality, > so directly writing into PCI PM config register can be replaced with > the use of runtime PM routines. Also, the use of runtime PM can help > us in more power saving. > > In the systems which do not support D3cold, > > With the existing implementation: > > // PCI device > # cat /sys/bus/pci/devices/0000\:01\:00.0/power_state > D3hot > // upstream bridge > # cat /sys/bus/pci/devices/0000\:00\:01.0/power_state > D0 > > With runtime PM: > > // PCI device > # cat /sys/bus/pci/devices/0000\:01\:00.0/power_state > D3hot > // upstream bridge > # cat /sys/bus/pci/devices/0000\:00\:01.0/power_state > D3hot I'm not able to reproduce these results. Output below abridged: # lspci -t -[0000:00]-+-00.0 +-01.0-[01]--+-00.0 | \-00.1 # grep . /sys/bus/pci/devices/*/power_state /sys/bus/pci/devices/0000:00:01.0/power_state:D0 /sys/bus/pci/devices/0000:01:00.0/power_state:D3hot /sys/bus/pci/devices/0000:01:00.1/power_state:D3hot # lspci -ks $DEV 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) Kernel driver in use: pcieport 01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750] (rev a2) Subsystem: eVga.com. Corp. Device 2753 Kernel driver in use: vfio-pci 01:00.1 Audio device: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] (rev a1) Subsystem: eVga.com. Corp. Device 2753 Kernel driver in use: vfio-pci Kernel modules: snd_hda_intel Any debugging suggestions? Thanks, Alex