From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] perf_pmu: Dump i915_runtime_pm_status
Date: Thu, 02 Mar 2023 15:09:48 -0800 [thread overview]
Message-ID: <87edq6yclf.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20230301121207.169588-1-anshuman.gupta@intel.com>
On Wed, 01 Mar 2023 04:12:07 -0800, Anshuman Gupta wrote:
>
> Dump i915_pm_runtime_status in case of i915 device failed to runtime
> suspend, it will dump the rpm wakeref tracking information which
> will useful to debug the runtime pm issues.
>
> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
> ---
> tests/i915/perf_pmu.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
> index c1779fc9d0..567b2fa5cf 100644
> --- a/tests/i915/perf_pmu.c
> +++ b/tests/i915/perf_pmu.c
> @@ -1709,6 +1709,7 @@ test_rc6(int gem_fd, unsigned int flags)
> int64_t duration_ns = 2e9;
> uint64_t idle, busy, prev, ts[2];
> unsigned long slept;
> + bool suspended;
> int fd, fw;
>
> gem_quiescent_gpu(gem_fd);
> @@ -1727,7 +1728,12 @@ test_rc6(int gem_fd, unsigned int flags)
> drmModeFreeResources(res);
>
> igt_require(igt_setup_runtime_pm(gem_fd));
> - igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED));
> + suspended = igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED);
> +
> + if (!suspended)
> + __igt_debugfs_dump(gem_fd, "i915_runtime_pm_status", IGT_LOG_INFO);
> +
> + igt_require(suspended);
Can we use wait_for_suspended() here instead? OK otherwise too:
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
>
> /*
> * Sleep for a bit to see if once woken up estimated RC6 hasn't
> --
> 2.25.1
>
prev parent reply other threads:[~2023-03-02 23:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-01 12:12 [igt-dev] [PATCH i-g-t] perf_pmu: Dump i915_runtime_pm_status Anshuman Gupta
2023-03-01 14:27 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-03-01 15:21 ` [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Dump i915_runtime_pm_status (rev2) Patchwork
2023-03-02 19:03 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-03-02 23:09 ` Dixit, Ashutosh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edq6yclf.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.