From: Anshuman Gupta <anshuman.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v6 3/4] igt/i915/i915_pm_lpsp: panel-fitter subtest modifications.
Date: Thu, 30 May 2019 17:51:30 +0530 [thread overview]
Message-ID: <20190530122131.7634-4-anshuman.gupta@intel.com> (raw)
In-Reply-To: <20190530122131.7634-1-anshuman.gupta@intel.com>
It makes sense to skip the test if edp-panel native resoultion
is limted to 1024x768 rather than failing the test.
Dumping i915_runtime_pm_status and i915_power_domain_info if
test fails.
Small improvment in panel-fitter condition which check
lpsp_enabled().
Cc: imre.deak@intel.com
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
tests/i915/i915_pm_lpsp.c | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index 53cb7843..028124c6 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -197,10 +197,10 @@ static void edp_subtest(int drm_fd, drmModeResPtr drm_res,
* support LPSP are too new for panels with native
* 1024x768 resolution, so this should force the panel
* fitter. */
- igt_assert(c->count_modes &&
- c->modes[0].hdisplay > 1024);
- igt_assert(c->count_modes &&
- c->modes[0].vdisplay > 768);
+ igt_require(c->count_modes &&
+ c->modes[0].hdisplay > 1024);
+ igt_require(c->count_modes &&
+ c->modes[0].vdisplay > 768);
mode = &std_1024_mode;
break;
}
@@ -219,16 +219,14 @@ static void edp_subtest(int drm_fd, drmModeResPtr drm_res,
&connector->connector_id, 1, mode);
igt_assert_eq(rc, 0);
- if (use_panel_fitter) {
- if (IS_HASWELL(devid))
- igt_assert(!lpsp_is_enabled(devid));
- else
- igt_assert(lpsp_is_enabled(devid));
- } else {
+ if (use_panel_fitter && IS_HASWELL(devid))
+ igt_assert_f(!lpsp_is_enabled(devid),
+ DUMP_DBGFS("i915_runtime_pm_status",
+ "i915_power_domain_info", fd));
+ else
igt_assert_f(lpsp_is_enabled(devid),
DUMP_DBGFS("i915_runtime_pm_status",
"i915_power_domain_info", fd));
- }
}
static void non_edp_subtest(int drm_fd, drmModeResPtr drm_res, uint32_t devid,
--
2.21.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-05-30 12:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 12:21 [igt-dev] [PATCH i-g-t v6 0/4] enable pm_lpsp for platforms till Gen11 v6 Anshuman Gupta
2019-05-30 12:21 ` [igt-dev] [PATCH i-g-t v6 1/4] igt/i915/i915_pm_lpsp enable pm_lpsp for platforms till Gen11 Anshuman Gupta
2019-05-30 12:21 ` [igt-dev] [PATCH i-g-t v6 2/4] igt/i915/i915_pm_lpsp check lpsp relevance on non edp panel Anshuman Gupta
2019-05-30 12:21 ` Anshuman Gupta [this message]
2019-05-30 12:21 ` [igt-dev] [PATCH i-g-t v6 4/4] DO_NOT_MERGE add i915_pm_lpsp subtests to CI fast feedback list Anshuman Gupta
2019-05-31 10:26 ` [igt-dev] ✗ Fi.CI.BAT: failure for enable pm_lpsp for platforms till Gen11 v6 Patchwork
2019-07-04 17:09 ` [igt-dev] ✗ Fi.CI.BAT: failure for enable pm_lpsp for platforms till Gen11 v6 (rev2) Patchwork
2019-08-14 11:49 ` [igt-dev] ✗ Fi.CI.BAT: failure for enable pm_lpsp for platforms till Gen11 v6 (rev3) Patchwork
2019-08-18 12:58 ` Gupta, Anshuman
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=20190530122131.7634-4-anshuman.gupta@intel.com \
--to=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