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 v2] perf_pmu: Dump i915_runtime_pm_status
Date: Fri, 03 Mar 2023 17:55:20 -0800 [thread overview]
Message-ID: <871qm5xotz.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20230303154941.490669-1-anshuman.gupta@intel.com>
On Fri, 03 Mar 2023 07:49:41 -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.
>
> v2:
> - Use wait_for_suspended(). [Ashutosh]
>
> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
> tests/i915/perf_pmu.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
> index c1779fc9d..df194c8ad 100644
> --- a/tests/i915/perf_pmu.c
> +++ b/tests/i915/perf_pmu.c
> @@ -1703,6 +1703,16 @@ static bool wait_for_rc6(int fd, int timeout)
> return false;
> }
>
> +static bool wait_for_suspended(int gem_fd)
> +{
> + bool 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);
> +
> + return suspended;
> +}
> +
> static void
> test_rc6(int gem_fd, unsigned int flags)
> {
> @@ -1727,7 +1737,7 @@ 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));
> + igt_require(wait_for_suspended(gem_fd));
Hmm I didn't realize wait_for_suspended() instances were static so the
function will have to be duplicated. In any case the R-b stands. Thanks.
>
> /*
> * Sleep for a bit to see if once woken up estimated RC6 hasn't
> --
> 2.25.1
>
next prev parent reply other threads:[~2023-03-04 1:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 15:49 [igt-dev] [PATCH i-g-t v2] perf_pmu: Dump i915_runtime_pm_status Anshuman Gupta
2023-03-03 16:40 ` [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Dump i915_runtime_pm_status (rev3) Patchwork
2023-03-04 1:55 ` Dixit, Ashutosh [this message]
2023-03-06 21:34 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=871qm5xotz.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox