Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp672586rdh; Wed, 14 Feb 2024 08:09:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8+k/0WNVL9VOXlyEI+FJkoZqq/I0cDBFQeCmqdoDzknCGQ6SRJjJDQjR3pDEeH9yF/pFrlBXgGpiSM4vIYmGmtFxKLxXj32ia4UHBAg== X-Google-Smtp-Source: AGHT+IGyj5SSf26JpAnavjR8VKjUojJdv4d33+2CXIKzn98M2P08YGnpBDXJs+4moHBe7iIcwup7 X-Received: by 2002:aa7:d590:0:b0:55f:f2ae:20ed with SMTP id r16-20020aa7d590000000b0055ff2ae20edmr2288915edq.16.1707926945457; Wed, 14 Feb 2024 08:09:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707926945; cv=pass; d=google.com; s=arc-20160816; b=ra9A3qq1QAwk/3R+/hV1Ubcc3geUAsEVagEABMLC+kxx0/rnK7wfeC3lbfUp8K8XGQ Bs3rRoddTnr5yZwbVIfSIhcA1Gt/CiKsqRnm1W+vkZR9zHAOjYwHKKURl924VESDR2MI kAXicQwEYIT7VBUfXqd6q2CYJ6BKQ8uG5W1hOIJQXk+LXJpenduQuSBFOriCwvvq9en8 AtyuUkecfH0agSyPHB2VLDmgHBe9ptswT0kDC0QU8kwYBEYP0qp9Bwygy0DtFp8Ge7PK 5jSd6DkHaCr4e/Z7L4xzyvz7OHX7LRfb5wI6SH/wbhluCN2CMkDL+EKIpwnXsaPVkrmQ czIQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=aUZgIhAlSZCO03bcSubZ38galt6RmdOBctoVCe6Ulpc=; fh=HZFHpETtIEo+4zbmZz2tG7PeEY8kWtPqD7jXtHVNJE4=; b=ozx8/sbmMNDzPeN/ofm1oAfH5T2Kv5ibIGCsrq6/WumR+RBbvePB+u/52F0MNcXJCi 3eRNDOsGPHNeN1v4PXiQ7VdQkHtjYGy3cHWmSY66U3fjVi3jnhNy+YzsFKgB4uJ+DTVt Z6FcTSFGQp3JJRnKvMK2M1TXrST9oDFqDJKF1argP00W6iO5onhaVEO2zTLX7pHqZp6N smfuKaTV1ceCd6ZSv+2xDcLOSu6s7JfGmmQOEgus3/RuTsmnm51IfzX4wh+fOXTLwUa7 iV06kY+zjgFPd8/ApF5fPpycin6/G91gl2c33C8ulbqytZljwBerT0dBbQQoBPujvc/1 1Y1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9tgLLbz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVky37kC9ffXN43dwXCQ+I3ook3AdAHQTM4eMeydMtsErMmtbMCSEYRqsz5vPHsRZwwAQ1S+7w84Seo6ZeH0pFmCxBzNq80hy8qg3fPCg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n20-20020aa7c694000000b0055f9b95bd23si4876290edq.309.2024.02.14.08.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9tgLLbz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F35861F25B4D for ; Wed, 14 Feb 2024 16:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EBE65FDD9; Wed, 14 Feb 2024 16:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U9tgLLbz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71D875F871; Wed, 14 Feb 2024 16:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707926815; cv=none; b=ncEXcs6w7frit687tDZZkmA5DFuqzultu/thLRa9SfXtUWfLXPNYYBSscbz2aY61FiAgdpjiDGJmv1Jtt21Of6TjFDcIiHd8/opbtWcTq1EDBNdfekd/Bj3No33D5P0wWqTDXrucwrRdTbbWb/rm3iamdXz5meAUYRrXjwUSLmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707926815; c=relaxed/simple; bh=7qfrnwneSTETdWc/MSsQJm5c32O3g3e00oMGNngWvdA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=bd9/ZoVBs25oQxI4KFuXoF6IarmZVgFRA9pzQyrTp+jc0mbdtm8mSiroXJUPHc3nv+kOWXRtk2z7JcCLE8TQaTiw3zIwCheqe9CHInfgXa2isgsuXfMCy07vjpmr9toRgQdPR86OYdkYit5JAiINTgKoOVbBI2lviqhNeXuJrR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U9tgLLbz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF8A5C433F1; Wed, 14 Feb 2024 16:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707926815; bh=7qfrnwneSTETdWc/MSsQJm5c32O3g3e00oMGNngWvdA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=U9tgLLbzW1pYyi63ZIZJXqnQMdQ7wpz/W6lsEZg0Vj2Aiw25wTfuXXhU27ljokdqG Y9ZKkeN9rcDJTudtdXqjl/yNA4hXi1HNVEAQzx5PUMaNPkaSeI78Ym1La6TriopzGJ kEXTbA68dpMJmlr8smYAcoG+YGXrzsMo/I8dut7g3gGm9Ejs3WI2McNKY6o8TCAYC+ ffGE6h8GpLgpjv62GNDvgA5BSDP5gjj74dLGRotkxhiER3hMFkpqZMKKk14mnVihD9 BD6ecs/6mIGfo7m8XF7E1qk2bxg+EBTpHNf3ouJC1NLyCKk0TTfXnsBs9C6psV/G+v x3Qb+7cpL/ykw== Date: Wed, 14 Feb 2024 10:06:52 -0600 From: Bjorn Helgaas To: Raag Jadav Cc: Andy Shevchenko , bhelgaas@google.com, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, stanislaw.gruszka@linux.intel.com, lukas@wunner.de, rafael@kernel.org, ilpo.jarvinen@linux.intel.com, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org Subject: Re: [PATCH v1] PCI / PM: Really allow runtime PM without callback functions Message-ID: <20240214160652.GA1254564@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Feb 14, 2024 at 03:20:35PM +0200, Raag Jadav wrote: > On Wed, Feb 14, 2024 at 03:01:29PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 14, 2024 at 12:43:35PM +0200, Raag Jadav wrote: > > > On Tue, Feb 13, 2024 at 02:06:48PM -0600, Bjorn Helgaas wrote: > > > > On Mon, Feb 12, 2024 at 12:02:33PM +0530, Raag Jadav wrote: > > > > ... > > > > > > > 0) | pm_runtime_work() { > > > > > 0) | rpm_idle() { > > > > > 0) | rpm_check_suspend_allowed() { > > > > > 0) 1.500 us | __dev_pm_qos_resume_latency(); /* = 0x7fffffff */ > > > > > 0) 4.840 us | } /* rpm_check_suspend_allowed = 0x0 */ > > > > > 0) 1.550 us | __rpm_get_callback(); /* = 0xffffffffb4bc84f0 */ > > > > > 0) 1.800 us | pci_pm_runtime_idle(); /* = -38 */ > > > > > 0) + 17.070 us | } /* rpm_idle = -38 */ > > > > > 0) + 22.450 us | } /* pm_runtime_work = -38 */ > > > > > > > > What is this timing information telling me? > > > > > > It's a raw ftrace dump. > > > > (Told ya that people would be surprised with this without seeing how you get > > this and what fields mean) > > I can add stat headers in v2 which I think will be more helpful. That's not what I was asking. *Why* is the ftrace dump here? Is the point that we're calling a function we shouldn't? That this patch improves performance? Without some interpretation of what the dump shows, it's just noise. Bjorn