diff mbox

[2/2] tests/pm_rc6_residency: Add media_rc6_residency_counter subtest

Message ID 1424965229-16691-3-git-send-email-deepak.s@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

deepak.s@linux.intel.com Feb. 26, 2015, 3:40 p.m. UTC
From: Deepak S <deepak.s@linux.intel.com>

Added new media_rc6_residency_subtest for  chv & vlv.

Signed-off-by: Deepak S <deepak.s@linux.intel.com>
---
 tests/pm_rc6_residency.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Daniel Vetter Feb. 26, 2015, 4:52 p.m. UTC | #1
On Thu, Feb 26, 2015 at 09:10:29PM +0530, deepak.s@linux.intel.com wrote:
> From: Deepak S <deepak.s@linux.intel.com>
> 
> Added new media_rc6_residency_subtest for  chv & vlv.
> 
> Signed-off-by: Deepak S <deepak.s@linux.intel.com>

Both igt patches merged, thanks.
-Daniel

> ---
>  tests/pm_rc6_residency.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/pm_rc6_residency.c b/tests/pm_rc6_residency.c
> index 1600ac3..f6152da 100644
> --- a/tests/pm_rc6_residency.c
> +++ b/tests/pm_rc6_residency.c
> @@ -135,7 +135,7 @@ igt_main
>  {
>  	int fd;
>  	int devid = 0;
> -	int rc6[2], rc6p[2], rc6pp[2];
> +	int rc6[2], rc6p[2], rc6pp[2], media[2];
>  
>  	igt_skip_on_simulation();
>  
> @@ -146,6 +146,9 @@ igt_main
>  		close(fd);
>  
>  		read_rc6_residency(rc6, "rc6");
> +		if (IS_VALLEYVIEW(devid) || IS_CHERRYVIEW(devid))
> +			read_rc6_residency(media, "media_rc6");
> +
>  		if (IS_GEN6(devid) || IS_IVYBRIDGE(devid)) {
>  			read_rc6_residency(rc6p, "rc6p");
>  			read_rc6_residency(rc6pp, "rc6pp");
> @@ -154,6 +157,9 @@ igt_main
>  
>  	igt_subtest("rc6-accuracy")
>  		residency_accuracy(rc6, "rc6");
> +	igt_subtest("media-rc6-accuracy")
> +		if (IS_VALLEYVIEW(devid) || IS_CHERRYVIEW(devid))
> +			residency_accuracy(media, "media_rc6");
>  	igt_subtest("rc6p-accuracy") {
>  		if (!IS_GEN6(devid) && !IS_IVYBRIDGE(devid))
>  			igt_skip("This platform doesn't support RC6p\n");
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/tests/pm_rc6_residency.c b/tests/pm_rc6_residency.c
index 1600ac3..f6152da 100644
--- a/tests/pm_rc6_residency.c
+++ b/tests/pm_rc6_residency.c
@@ -135,7 +135,7 @@  igt_main
 {
 	int fd;
 	int devid = 0;
-	int rc6[2], rc6p[2], rc6pp[2];
+	int rc6[2], rc6p[2], rc6pp[2], media[2];
 
 	igt_skip_on_simulation();
 
@@ -146,6 +146,9 @@  igt_main
 		close(fd);
 
 		read_rc6_residency(rc6, "rc6");
+		if (IS_VALLEYVIEW(devid) || IS_CHERRYVIEW(devid))
+			read_rc6_residency(media, "media_rc6");
+
 		if (IS_GEN6(devid) || IS_IVYBRIDGE(devid)) {
 			read_rc6_residency(rc6p, "rc6p");
 			read_rc6_residency(rc6pp, "rc6pp");
@@ -154,6 +157,9 @@  igt_main
 
 	igt_subtest("rc6-accuracy")
 		residency_accuracy(rc6, "rc6");
+	igt_subtest("media-rc6-accuracy")
+		if (IS_VALLEYVIEW(devid) || IS_CHERRYVIEW(devid))
+			residency_accuracy(media, "media_rc6");
 	igt_subtest("rc6p-accuracy") {
 		if (!IS_GEN6(devid) && !IS_IVYBRIDGE(devid))
 			igt_skip("This platform doesn't support RC6p\n");