From: "José Roberto de Souza" <jose.souza@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Jeevan B <jeevan.b@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915_pm_dc: Wait for PSR2 entry
Date: Wed, 27 Nov 2019 16:49:02 -0800 [thread overview]
Message-ID: <20191128004902.157126-2-jose.souza@intel.com> (raw)
In-Reply-To: <20191128004902.157126-1-jose.souza@intel.com>
After enable PSR2 we can not check right away if PSR2 is enabled, we
need let some time to PSR2 to be enabled.
For that we have psr_wait_entry(), that is why the previous patch was
reverted as psr_enabled() is not much useful.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112411
Cc: Jeevan B <jeevan.b@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/i915/i915_pm_dc.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c
index 02b08189..cd2828b8 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_pm_dc.c
@@ -84,16 +84,6 @@ static void display_fini(data_t *data)
igt_display_fini(&data->display);
}
-static bool edp_psr2_enabled(data_t *data)
-{
- char buf[512];
-
- igt_debugfs_simple_read(data->debugfs_fd, "i915_edp_psr_status",
- buf, sizeof(buf));
-
- return strstr(buf, "PSR mode: PSR2 enabled") != NULL;
-}
-
static void cleanup_dc_psr(data_t *data)
{
igt_plane_t *primary;
@@ -298,7 +288,7 @@ static void setup_dc3co(data_t *data)
{
data->op_psr_mode = PSR_MODE_2;
psr_enable(data->debugfs_fd, data->op_psr_mode);
- igt_require_f(edp_psr2_enabled(data),
+ igt_require_f(psr_wait_entry(data->debugfs_fd, data->op_psr_mode),
"PSR2 is not enabled\n");
}
--
2.24.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-11-28 0:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-28 0:49 [igt-dev] [PATCH i-g-t 1/2] Revert "lib/igt_psr: Move "is enabled" implementation to lib" José Roberto de Souza
2019-11-28 0:49 ` José Roberto de Souza [this message]
2019-11-28 1:31 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] " Patchwork
2019-11-29 8:20 ` Arkadiusz Hiler
2019-11-28 2:21 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] Revert "lib/igt_psr: Move "is enabled" implementation to lib" (rev2) Patchwork
2019-11-29 7:16 ` [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=20191128004902.157126-2-jose.souza@intel.com \
--to=jose.souza@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@intel.com \
/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