* [igt-dev] [PATCH i-g-t 0/2] Enabling PC8+ residency for ICL and GEN9. @ 2019-02-21 17:07 Anshuman Gupta 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test " Anshuman Gupta 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress " Anshuman Gupta 0 siblings, 2 replies; 4+ messages in thread From: Anshuman Gupta @ 2019-02-21 17:07 UTC (permalink / raw) To: intel-gfx, igt-dev; +Cc: anshuman.gupta This patch series enable PC8+ residency test, earlier these tests were only enabled for Haswell and Broadwell. Anshuman Gupta (2): tests/pm_rpm: Enable PC8+ residency test for ICL and GEN9. tests/pm_rpm: Enable modeset-pc8-residency-stress for ICL and GEN9. tests/pm_rpm.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) -- 2.7.4 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test for ICL and GEN9. 2019-02-21 17:07 [igt-dev] [PATCH i-g-t 0/2] Enabling PC8+ residency for ICL and GEN9 Anshuman Gupta @ 2019-02-21 17:07 ` Anshuman Gupta 2019-02-25 15:16 ` Imre Deak 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress " Anshuman Gupta 1 sibling, 1 reply; 4+ messages in thread From: Anshuman Gupta @ 2019-02-21 17:07 UTC (permalink / raw) To: intel-gfx, igt-dev; +Cc: anshuman.gupta Enabled has_pc8 global for ICL and Gen9. Added PC8+ residency test for display enabled case as well. Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> --- tests/pm_rpm.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index be296f5..c84f199 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -686,7 +686,8 @@ static void setup_pc8(void) has_pc8 = false; /* Only Haswell supports the PC8 feature. */ - if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid)) + if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid) + && !IS_GEN9(ms_data.devid) && !IS_ICELAKE(ms_data.devid)) return; /* Make sure our Kernel supports MSR and the module is loaded. */ @@ -806,11 +807,15 @@ static void pc8_residency_subtest(void) igt_assert_f(pc8_plus_residency_changed(30), "Machine is not reaching PC8+ states, please check its " "configuration.\n"); - - /* Make sure PC8+ residencies stop! */ enable_one_screen(&ms_data); - igt_assert_f(!pc8_plus_residency_changed(10), + if (IS_HASWELL(ms_data.devid) && IS_BROADWELL(ms_data.devid)) { + /* Make sure PC8+ residencies stop! */ + igt_assert_f(!pc8_plus_residency_changed(10), + "PC8+ residency didn't stop with screen enabled.\n"); + } else { + igt_assert_f(pc8_plus_residency_changed(10), "PC8+ residency didn't stop with screen enabled.\n"); + } } static void modeset_subtest(enum screen_type type, int rounds, int wait_flags) -- 2.7.4 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test for ICL and GEN9. 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test " Anshuman Gupta @ 2019-02-25 15:16 ` Imre Deak 0 siblings, 0 replies; 4+ messages in thread From: Imre Deak @ 2019-02-25 15:16 UTC (permalink / raw) To: Anshuman Gupta; +Cc: igt-dev, intel-gfx On Thu, Feb 21, 2019 at 10:37:57PM +0530, Anshuman Gupta wrote: > Enabled has_pc8 global for ICL and Gen9. > Added PC8+ residency test for display enabled case as well. > > Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> > --- > tests/pm_rpm.c | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c > index be296f5..c84f199 100644 > --- a/tests/pm_rpm.c > +++ b/tests/pm_rpm.c > @@ -686,7 +686,8 @@ static void setup_pc8(void) > has_pc8 = false; > > /* Only Haswell supports the PC8 feature. */ > - if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid)) > + if (!IS_HASWELL(ms_data.devid) && !IS_BROADWELL(ms_data.devid) > + && !IS_GEN9(ms_data.devid) && !IS_ICELAKE(ms_data.devid)) Could be made future proof by if (!HSW && !BDW && GEN<9) return; > return; > > /* Make sure our Kernel supports MSR and the module is loaded. */ > @@ -806,11 +807,15 @@ static void pc8_residency_subtest(void) > igt_assert_f(pc8_plus_residency_changed(30), > "Machine is not reaching PC8+ states, please check its " > "configuration.\n"); > - > - /* Make sure PC8+ residencies stop! */ > enable_one_screen(&ms_data); > - igt_assert_f(!pc8_plus_residency_changed(10), > + if (IS_HASWELL(ms_data.devid) && IS_BROADWELL(ms_data.devid)) { Perhaps add a pc8_needs_screen_off flag? As it's also needed in the next patch. Since PC8 doesn't require the screen to be off on GEN9+ we may also need a subtest for that case, but I'm not sure what's the exact requirement to get into PC8 in that case (how many displays can be enabled, in what resolution). > + /* Make sure PC8+ residencies stop! */ > + igt_assert_f(!pc8_plus_residency_changed(10), > + "PC8+ residency didn't stop with screen enabled.\n"); > + } else { > + igt_assert_f(pc8_plus_residency_changed(10), > "PC8+ residency didn't stop with screen enabled.\n"); > + } > } > > static void modeset_subtest(enum screen_type type, int rounds, int wait_flags) > -- > 2.7.4 > _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] [PATCH i-g-t 2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress for ICL and GEN9. 2019-02-21 17:07 [igt-dev] [PATCH i-g-t 0/2] Enabling PC8+ residency for ICL and GEN9 Anshuman Gupta 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test " Anshuman Gupta @ 2019-02-21 17:07 ` Anshuman Gupta 1 sibling, 0 replies; 4+ messages in thread From: Anshuman Gupta @ 2019-02-21 17:07 UTC (permalink / raw) To: intel-gfx, igt-dev; +Cc: anshuman.gupta Do not assert failure if PC8 state achieved with display enabled. Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> --- tests/pm_rpm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index c84f199..878b63b 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -846,8 +846,13 @@ static void modeset_subtest(enum screen_type type, int rounds, int wait_flags) igt_require(enable_one_screen_with_type(&ms_data, type)); if (wait_flags & WAIT_STATUS) igt_assert(wait_for_active()); - if (wait_flags & WAIT_PC8_RES) - igt_assert(!pc8_plus_residency_changed(5)); + if (wait_flags & WAIT_PC8_RES) { + if (IS_HASWELL(ms_data.devid) && + IS_BROADWELL(ms_data.devid)) + igt_assert(!pc8_plus_residency_changed(5)); + else + igt_assert(pc8_plus_residency_changed(5)); + } if (wait_flags & WAIT_EXTRA) sleep(5); } -- 2.7.4 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-25 15:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-02-21 17:07 [igt-dev] [PATCH i-g-t 0/2] Enabling PC8+ residency for ICL and GEN9 Anshuman Gupta 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 1/2] tests/pm_rpm: Enable PC8+ residency test " Anshuman Gupta 2019-02-25 15:16 ` Imre Deak 2019-02-21 17:07 ` [igt-dev] [PATCH i-g-t 2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress " Anshuman Gupta
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox