From: Antonio Argenziano <antonio.argenziano@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] igt/pm_rpm: Show the contents of i915_runtime_pm_status on setup
Date: Wed, 5 Dec 2018 10:00:57 -0800 [thread overview]
Message-ID: <0f25ddda-79a7-f3eb-14fa-8f8ca9034f8f@intel.com> (raw)
In-Reply-To: <20181205104818.5203-1-chris@chris-wilson.co.uk>
On 05/12/18 02:48, Chris Wilson wrote:
> To try and help debug situations where the driver has leaked a runtime
> reference before executing the pm_rpm tests, show the contents of
> i915_runtime_pm_status at startup, which will include all currently held
> wakerefs.
LGTM.
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> tests/pm_rpm.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
> index f0d6db525..7427958dc 100644
> --- a/tests/pm_rpm.c
> +++ b/tests/pm_rpm.c
> @@ -725,6 +725,18 @@ static bool dmc_loaded(void)
> return strstr(buf, "fw loaded: yes");
> }
>
> +static void dump_file(int dir, const char *filename)
> +{
> + char *contents;
> +
> + contents = igt_sysfs_get(dir, filename);
> + if (!contents)
> + return;
> +
> + igt_debug("%s:\n%s\n", filename, contents);
> + free(contents);
> +}
> +
> static bool setup_environment(void)
> {
> if (has_runtime_pm)
> @@ -744,6 +756,8 @@ static bool setup_environment(void)
> has_runtime_pm = igt_setup_runtime_pm();
> setup_pc8();
>
> + dump_file(debugfs, "i915_runtime_pm_status");
> +
> igt_info("Runtime PM support: %d\n", has_runtime_pm);
> igt_info("PC8 residency support: %d\n", has_pc8);
> igt_require(has_runtime_pm);
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
prev parent reply other threads:[~2018-12-05 18:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 10:48 [igt-dev] [PATCH i-g-t] igt/pm_rpm: Show the contents of i915_runtime_pm_status on setup Chris Wilson
2018-12-05 13:39 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-12-05 17:50 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-12-05 18:00 ` Antonio Argenziano [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=0f25ddda-79a7-f3eb-14fa-8f8ca9034f8f@intel.com \
--to=antonio.argenziano@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-gfx@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