Skip to contentSkip to conversation

tests/pm_rpm: Use the quick mode by default

PATCH In review Daniel Vetter 3 participants 4 messages Aug 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/pm_rpm: Use the quick mode by default

pm_rpm is one of the main offenders for long runtime in our full igt run. And hey, there's a quick option already, so make it the default.

This means there's yet another way to enable stress tests, we really need to standardize this somehow. Or shred the stress-tests we really don't want/need anymore.

Cc Paulo Zanoni <[email protected]>
Cc Arkadiusz Hiler <[email protected]>
---
 tests/pm_rpm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/pm_rpm.c +4 -4
index 1873c9017b6e..8962bc3e56d8 100644
@@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms)
 	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
 }
 
-int rounds = 40;
+int rounds = 10;
 bool stay = false;
 
 static int opt_handler(int opt, int opt_index, void *data)
 {
 	switch (opt) {
 	case 'q':
-		rounds = 10;
+		rounds = 50;
 		break;
 	case 's':
 		stay = true;
@@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data)
 int main(int argc, char *argv[])
 {
 	const char *help_str =
-	       "  --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n"
+	       "  --stress\t\tMake the stress-tests more stressful, for quick regression testing.\n"
 	       "  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
 	static struct option long_options[] = {
-		{"quick", 0, 0, 'q'},
+		{"stress", 0, 0, 'q'},
 		{"stay", 0, 0, 's'},
 		{ 0, 0, 0, 0 }
 	};
Signature · 6 lines
2.13.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 36 lines · Daniel Vetter

pm_rpm is one of the main offenders for long runtime in our full igt run. And hey, there's a quick option already, so make it the default.

This means there's yet another way to enable stress tests, we really need to standardize this somehow. Or shred the stress-tests we really don't want/need anymore.

Cc Paulo Zanoni <[email protected]>
Cc Arkadiusz Hiler <[email protected]>
---
 tests/pm_rpm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/pm_rpm.c +2 -2
index 1873c9017b6e..8962bc3e56d8 100644
@@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms)
 	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
 }
 
-int rounds = 40;
+int rounds = 10;
 bool stay = false;
 
 static int opt_handler(int opt, int opt_index, void *data)
 {
 	switch (opt) {
 	case 'q':
-		rounds = 10;
+		rounds = 50;
 		break;
 	case 's':
 		stay = true;

tests/pm_rpm.c static int opt_handler(int opt, int opt_index, void *data) · line 1877

Quoted 5 lines
tests/pm_rpm.c +1 -1
@@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data)
 int main(int argc, char *argv[])
 {
 	const char *help_str =
-	       "  --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n"
+	       "  --stress\t\tMake the stress-tests more stressful, for quick regression testing.\n"

wouldn't adding more rounds make it *less* quick?

Quoted 14 lines
tests/pm_rpm.c +1 -1
 	       "  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
 	static struct option long_options[] = {
-		{"quick", 0, 0, 'q'},
+		{"stress", 0, 0, 'q'},
 		{"stay", 0, 0, 's'},
 		{ 0, 0, 0, 0 }
 	};
Signature · 6 lines
2.13.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

PATCH 1/1 tests/pm_rpm: Use the quick mode by default

In reply to Daniel Vetter

pm_rpm is one of the main offenders for long runtime in our full igt run. And hey, there's a quick option already, so make it the default.

This means there's yet another way to enable stress tests, we really need to standardize this somehow. Or shred the stress-tests we really don't want/need anymore.

v2: Fixup the entire help text (David).

Cc David Weinehall <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Arkadiusz Hiler <[email protected]>
---
 tests/pm_rpm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/pm_rpm.c +4 -4
index 1873c9017b6e..aaf610321edd 100644
@@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms)
 	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
 }
 
-int rounds = 40;
+int rounds = 10;
 bool stay = false;
 
 static int opt_handler(int opt, int opt_index, void *data)
 {
 	switch (opt) {
 	case 'q':
-		rounds = 10;
+		rounds = 50;
 		break;
 	case 's':
 		stay = true;
@@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data)
 int main(int argc, char *argv[])
 {
 	const char *help_str =
-	       "  --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n"
+	       "  --stress\t\tMake the stress-tests more stressful.\n"
 	       "  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
 	static struct option long_options[] = {
-		{"quick", 0, 0, 'q'},
+		{"stress", 0, 0, 'q'},
 		{"stay", 0, 0, 's'},
 		{ 0, 0, 0, 0 }
 	};
Signature · 6 lines
2.13.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#3 lore raw
Quoted 6 lines · Daniel Vetter

pm_rpm is one of the main offenders for long runtime in our full igt run. And hey, there's a quick option already, so make it the default.

This means there's yet another way to enable stress tests, we really need to standardize this somehow. Or shred the stress-tests we really don't want/need anymore.

Having a standarized way would be a good thing.
We should look into that.

Quoted 32 lines

v2: Fixup the entire help text (David).

Cc David Weinehall <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Arkadiusz Hiler <[email protected]>
---
 tests/pm_rpm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/pm_rpm.c +2 -2
index 1873c9017b6e..aaf610321edd 100644
@@ -1852,14 +1852,14 @@ static void fences_subtest(bool dpms)
 	igt_assert(munmap(buf_ptr, params.fb.size) == 0);
 }
 
-int rounds = 40;
+int rounds = 10;
 bool stay = false;
 
 static int opt_handler(int opt, int opt_index, void *data)
 {
 	switch (opt) {
 	case 'q':
-		rounds = 10;
+		rounds = 50;
 		break;
 	case 's':
 		stay = true;

tests/pm_rpm.c static int opt_handler(int opt, int opt_index, void *data) · line 1881

Quoted 10 lines
tests/pm_rpm.c +2 -2
@@ -1874,10 +1874,10 @@ static int opt_handler(int opt, int opt_index, void *data)
 int main(int argc, char *argv[])
 {
 	const char *help_str =
-	       "  --quick\t\tMake the stress-tests not stressful, for quick regression testing.\n"
+	       "  --stress\t\tMake the stress-tests more stressful.\n"
 	       "  --stay\t\tDisable all screen and try to go into runtime pm. Useful for debugging.";
 	static struct option long_options[] = {
-		{"quick", 0, 0, 'q'},
+		{"stress", 0, 0, 'q'},
 		{"stay", 0, 0, 's'},

I don't like that we repurpose 'q' here, as it is confusing in context of this patch.

I get that we don't have short options so it's not affecting the outside world.

I would be more happy with other letter, but 's', which would be best is already taken, then maybe 'l' for "long"?

Anyway, either with 'q' or 'l':

Signature · 6 lines
Cheers,
Arek
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx