* [igt-dev] [PATCH i-g-t 2/8] lib/psr: Share the code check if sink supports PSR
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 3/8] tests/fbcon_fbt: Use psr_wait_entry() to wait PSR be enabled José Roberto de Souza
` (8 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi
The same code checking if sink supports PSR was spread into 3 tests,
better move it to lib and reuse.
v2: splitted previous patch into this one and the next one(Dhinakaran)
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
lib/igt_psr.c | 10 ++++++++++
lib/igt_psr.h | 1 +
tests/kms_fbcon_fbt.c | 15 +--------------
tests/kms_frontbuffer_tracking.c | 13 +------------
tests/kms_psr.c | 8 +-------
5 files changed, 14 insertions(+), 33 deletions(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index c105bb6e..82012e6d 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -129,3 +129,13 @@ bool psr_disable(int debugfs_fd)
{
return psr_set(debugfs_fd, false);
}
+
+bool psr_sink_support(int debugfs_fd)
+{
+ char buf[PSR_STATUS_MAX_LEN];
+ int ret;
+
+ ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
+ sizeof(buf));
+ return ret > 0 && strstr(buf, "Sink_Support: yes\n");
+}
diff --git a/lib/igt_psr.h b/lib/igt_psr.h
index 96f7bedf..d3336c2d 100644
--- a/lib/igt_psr.h
+++ b/lib/igt_psr.h
@@ -34,5 +34,6 @@ bool psr_wait_entry(int debugfs_fd);
bool psr_wait_exit(int debugfs_fd);
bool psr_enable(int debugfs_fd);
bool psr_disable(int debugfs_fd);
+bool psr_sink_support(int debugfs_fd);
#endif
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 0ad53266..2823b47a 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -168,19 +168,6 @@ static void set_mode_for_one_screen(struct drm_info *drm, struct igt_fb *fb,
igt_assert_eq(rc, 0);
}
-static bool psr_supported_on_chipset(int debugfs_fd)
-{
- char buf[PSR_STATUS_MAX_LEN];
- int ret;
-
- ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status",
- buf, sizeof(buf));
- if (ret < 0)
- return false;
-
- return strstr(buf, "Sink_Support: yes\n");
-}
-
static bool connector_can_psr(drmModeConnectorPtr connector)
{
return (connector->connector_type == DRM_MODE_CONNECTOR_eDP);
@@ -239,7 +226,7 @@ struct feature {
.connector_possible_fn = connector_can_fbc,
.enable = fbc_modparam_enable,
}, psr = {
- .supported_on_chipset = psr_supported_on_chipset,
+ .supported_on_chipset = psr_sink_support,
.wait_until_enabled = psr_wait_until_enabled,
.connector_possible_fn = connector_can_psr,
.enable = psr_debugfs_enable,
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index c366fecf..42f4c289 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1417,17 +1417,6 @@ static void teardown_fbc(void)
{
}
-static bool psr_sink_has_support(void)
-{
- char buf[PSR_STATUS_MAX_LEN];
-
- debugfs_read("i915_edp_psr_status", buf);
- if (*buf == '\0') /* !HAS_PSR -> -ENODEV*/
- return false;
-
- return strstr(buf, "Sink_Support: yes\n");
-}
-
static void setup_psr(void)
{
if (prim_mode_params.output->config.connector->connector_type !=
@@ -1436,7 +1425,7 @@ static void setup_psr(void)
return;
}
- if (!psr_sink_has_support()) {
+ if (!psr_sink_support(drm.debugfs)) {
igt_info("Can't test PSR: not supported by sink.\n");
return;
}
diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index 20b69892..855679b0 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -191,13 +191,7 @@ static void fill_render(data_t *data, uint32_t handle, unsigned char color)
static bool sink_support(data_t *data)
{
- char buf[PSR_STATUS_MAX_LEN];
-
- igt_debugfs_simple_read(data->debugfs_fd, "i915_edp_psr_status",
- buf, sizeof(buf));
-
- return data->with_psr_disabled ||
- strstr(buf, "Sink_Support: yes\n");
+ return data->with_psr_disabled || psr_sink_support(data->debugfs_fd);
}
static bool psr_wait_entry_if_enabled(data_t *data)
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] [PATCH i-g-t 3/8] tests/fbcon_fbt: Use psr_wait_entry() to wait PSR be enabled
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 2/8] lib/psr: Share the code check if sink supports PSR José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 4/8] tests/fbcon_fbt: Allow fbcon to bind when running this test José Roberto de Souza
` (7 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan
kms_fbcon_fbt was doing its own handling to wait for PSR to get
enabled while it is already available in lib.
v2: splitted previous patch into this one and the previous one(Dhinakaran)
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_fbcon_fbt.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 2823b47a..3db60c0d 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -182,18 +182,9 @@ static void psr_print_status(int debugfs_fd)
igt_debug("PSR status: %s\n", buf);
}
-static bool psr_is_enabled(int debugfs_fd)
-{
- char buf[PSR_STATUS_MAX_LEN];
-
- igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
- sizeof(buf));
- return strstr(buf, "\nHW Enabled & Active bit: yes\n");
-}
-
static bool psr_wait_until_enabled(int debugfs_fd)
{
- bool r = igt_wait(psr_is_enabled(debugfs_fd), 5000, 1);
+ bool r = psr_wait_entry(debugfs_fd);
psr_print_status(debugfs_fd);
return r;
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] [PATCH i-g-t 4/8] tests/fbcon_fbt: Allow fbcon to bind when running this test
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 2/8] lib/psr: Share the code check if sink supports PSR José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 3/8] tests/fbcon_fbt: Use psr_wait_entry() to wait PSR be enabled José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 5/8] tests/fbcon_fbt: Add wait_until_update() callback to features José Roberto de Souza
` (6 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Rodrigo Vivi, Dhinakaran Pandiyan
9c4114ec5d87 (lib: Always unbind the fbcon around igt) broke
fbcon_fbt test as fbcon is not allowd to bind when executing any IGT
test, so lets allow it again just for this test.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_fbcon_fbt.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 3db60c0d..ffc44519 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -26,6 +26,7 @@
#include "igt.h"
#include "igt_psr.h"
+#include "igt_sysfs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -274,6 +275,12 @@ static void setup_environment(void)
drm_fd = drm_open_driver_master(DRIVER_INTEL);
igt_require(drm_fd >= 0);
igt_assert(close(drm_fd) == 0);
+
+ /*
+ * igt_subtest_init_parse_opts() disable the fbcon bind, so to test it
+ * is necessary enable it again
+ */
+ bind_fbcon(true);
}
static void teardown_environment(void)
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] [PATCH i-g-t 5/8] tests/fbcon_fbt: Add wait_until_update() callback to features
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (2 preceding siblings ...)
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 4/8] tests/fbcon_fbt: Allow fbcon to bind when running this test José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 6/8] tests/fbcon_fbt: Use psr_wait_exit() to test updates in PSR José Roberto de Souza
` (5 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi
Lets be more explicit and add and implement a callback to check if
feature had a state update, that is what some points of the test want
to test.
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_fbcon_fbt.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index ffc44519..c0d1752e 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -130,6 +130,11 @@ static bool fbc_wait_until_enabled(int debugfs_fd)
return r;
}
+static bool fbc_wait_until_update(int debugfs)
+{
+ return !fbc_wait_until_enabled(debugfs);
+}
+
typedef bool (*connector_possible_fn)(drmModeConnectorPtr connector);
static void set_mode_for_one_screen(struct drm_info *drm, struct igt_fb *fb,
@@ -191,6 +196,11 @@ static bool psr_wait_until_enabled(int debugfs_fd)
return r;
}
+static bool psr_wait_until_update(int debugfs_fd)
+{
+ return !psr_wait_until_enabled(debugfs_fd);
+}
+
static void disable_features(int debugfs_fd)
{
igt_set_module_param_int("enable_fbc", 0);
@@ -210,16 +220,19 @@ static inline void psr_debugfs_enable(int debugfs_fd)
struct feature {
bool (*supported_on_chipset)(int debugfs_fd);
bool (*wait_until_enabled)(int debugfs_fd);
+ bool (*wait_until_update)(int debugfs_fd);
bool (*connector_possible_fn)(drmModeConnectorPtr connector);
void (*enable)(int debugfs_fd);
} fbc = {
.supported_on_chipset = fbc_supported_on_chipset,
.wait_until_enabled = fbc_wait_until_enabled,
+ .wait_until_update = fbc_wait_until_update,
.connector_possible_fn = connector_can_fbc,
.enable = fbc_modparam_enable,
}, psr = {
.supported_on_chipset = psr_sink_support,
.wait_until_enabled = psr_wait_until_enabled,
+ .wait_until_update = psr_wait_until_update,
.connector_possible_fn = connector_can_psr,
.enable = psr_debugfs_enable,
};
@@ -258,13 +271,13 @@ static void subtest(struct feature *feature, bool suspend)
sleep(3);
wait_user("Back to fbcon.");
- igt_assert(!feature->wait_until_enabled(drm.debugfs_fd));
+ igt_assert(feature->wait_until_update(drm.debugfs_fd));
if (suspend) {
igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
SUSPEND_TEST_NONE);
sleep(5);
- igt_assert(!feature->wait_until_enabled(drm.debugfs_fd));
+ igt_assert(feature->wait_until_update(drm.debugfs_fd));
}
}
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] [PATCH i-g-t 6/8] tests/fbcon_fbt: Use psr_wait_exit() to test updates in PSR
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (3 preceding siblings ...)
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 5/8] tests/fbcon_fbt: Add wait_until_update() callback to features José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() " José Roberto de Souza
` (4 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi
It will test was is intented and faster as in the first occurence of
PSR exit it will return instead of wait the timeout of
psr_wait_entry().
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_fbcon_fbt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index c0d1752e..3e218dc8 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -198,7 +198,7 @@ static bool psr_wait_until_enabled(int debugfs_fd)
static bool psr_wait_until_update(int debugfs_fd)
{
- return !psr_wait_until_enabled(debugfs_fd);
+ return psr_wait_exit(debugfs_fd);
}
static void disable_features(int debugfs_fd)
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() to test updates in PSR
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (4 preceding siblings ...)
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 6/8] tests/fbcon_fbt: Use psr_wait_exit() to test updates in PSR José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 20:41 ` Chris Wilson
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 8/8] tests/fbcon_fbt: Do not print debugfs of features José Roberto de Souza
` (3 subsequent siblings)
9 siblings, 1 reply; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi
After getting back to fbcon it tests if PSR had a update but since
fbcon can take a while it have some big sleep in place, so what it
is actualy testing is if fbcon is updating the screen.
In this test the update of the screen comes from the fbcon cursor
blinking, the problem is that 40ms is a small interval to detect
cursor blinking and the test can fail some times, so a bigger timeout
to wait for exit is need.
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
lib/igt_psr.c | 5 +++++
lib/igt_psr.h | 1 +
tests/kms_fbcon_fbt.c | 2 +-
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 82012e6d..28e7e99c 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -47,6 +47,11 @@ bool psr_wait_exit(int debugfs_fd)
return igt_wait(psr_active(debugfs_fd, false), 40, 10);
}
+bool psr_long_wait_exit(int debugfs_fd)
+{
+ return igt_wait(psr_active(debugfs_fd, false), 500, 10);
+}
+
static ssize_t psr_write(int debugfs_fd, const char *buf)
{
return igt_sysfs_write(debugfs_fd, "i915_edp_psr_debug", buf,
diff --git a/lib/igt_psr.h b/lib/igt_psr.h
index d3336c2d..d52a7e08 100644
--- a/lib/igt_psr.h
+++ b/lib/igt_psr.h
@@ -32,6 +32,7 @@
bool psr_wait_entry(int debugfs_fd);
bool psr_wait_exit(int debugfs_fd);
+bool psr_long_wait_exit(int debugfs_fd);
bool psr_enable(int debugfs_fd);
bool psr_disable(int debugfs_fd);
bool psr_sink_support(int debugfs_fd);
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index 3e218dc8..cdba1c6e 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -198,7 +198,7 @@ static bool psr_wait_until_enabled(int debugfs_fd)
static bool psr_wait_until_update(int debugfs_fd)
{
- return psr_wait_exit(debugfs_fd);
+ return psr_long_wait_exit(debugfs_fd);
}
static void disable_features(int debugfs_fd)
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() to test updates in PSR
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() " José Roberto de Souza
@ 2019-01-07 20:41 ` Chris Wilson
2019-01-08 14:01 ` Souza, Jose
0 siblings, 1 reply; 15+ messages in thread
From: Chris Wilson @ 2019-01-07 20:41 UTC (permalink / raw)
To: José Roberto de Souza, igt-dev; +Cc: Dhinakaran Pandiyan, Rodrigo Vivi
Quoting José Roberto de Souza (2019-01-07 19:10:55)
> After getting back to fbcon it tests if PSR had a update but since
> fbcon can take a while it have some big sleep in place, so what it
> is actualy testing is if fbcon is updating the screen.
> In this test the update of the screen comes from the fbcon cursor
> blinking, the problem is that 40ms is a small interval to detect
> cursor blinking and the test can fail some times, so a bigger timeout
> to wait for exit is need.
So what happens if you disable the cursor blink? Do you actually need to
open the fbdev and draw something to ensure the path you want exercised
is?
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() to test updates in PSR
2019-01-07 20:41 ` Chris Wilson
@ 2019-01-08 14:01 ` Souza, Jose
0 siblings, 0 replies; 15+ messages in thread
From: Souza, Jose @ 2019-01-08 14:01 UTC (permalink / raw)
To: igt-dev@lists.freedesktop.org, chris@chris-wilson.co.uk,
Zanoni, Paulo R
Cc: Pandiyan, Dhinakaran, Vivi, Rodrigo
[-- Attachment #1.1: Type: text/plain, Size: 1045 bytes --]
On Mon, 2019-01-07 at 20:41 +0000, Chris Wilson wrote:
> Quoting José Roberto de Souza (2019-01-07 19:10:55)
> > After getting back to fbcon it tests if PSR had a update but since
> > fbcon can take a while it have some big sleep in place, so what it
> > is actualy testing is if fbcon is updating the screen.
> > In this test the update of the screen comes from the fbcon cursor
> > blinking, the problem is that 40ms is a small interval to detect
> > cursor blinking and the test can fail some times, so a bigger
> > timeout
> > to wait for exit is need.
>
> So what happens if you disable the cursor blink?
It would fail, I can add a patch on top saving the previous state of
/sys/class/graphics/fbcon/cursor_blink enabling it and then restoring.
> Do you actually need to
> open the fbdev and draw something to ensure the path you want
> exercised
> is?
Paulo was the one that wrote the test he can answer better but I guess
he wanted to test if fbcon would show up after draw to fbdev and
teardown.
> -Chris
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t 8/8] tests/fbcon_fbt: Do not print debugfs of features
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (5 preceding siblings ...)
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 7/8] tests/fbcon_fbt: Add and use psr_long_wait_exit() " José Roberto de Souza
@ 2019-01-07 19:10 ` José Roberto de Souza
2019-01-07 20:44 ` Chris Wilson
2019-01-07 19:52 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it Patchwork
` (2 subsequent siblings)
9 siblings, 1 reply; 15+ messages in thread
From: José Roberto de Souza @ 2019-01-07 19:10 UTC (permalink / raw)
To: igt-dev; +Cc: Dhinakaran Pandiyan
Print the debugfs of the features is only helpful for debug not for
the automated runs, so lets remove it and if needed for debug the one
debugging it can add it back in his/her machine.
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
tests/kms_fbcon_fbt.c | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index cdba1c6e..7d1cdd0e 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -105,15 +105,6 @@ static bool connector_can_fbc(drmModeConnectorPtr connector)
return true;
}
-static void fbc_print_status(int debugfs_fd)
-{
- static char buf[128];
-
- igt_debugfs_simple_read(debugfs_fd, "i915_fbc_status", buf,
- sizeof(buf));
- igt_debug("FBC status: %s\n", buf);
-}
-
static bool fbc_is_enabled(int debugfs_fd)
{
char buf[128];
@@ -125,9 +116,7 @@ static bool fbc_is_enabled(int debugfs_fd)
static bool fbc_wait_until_enabled(int debugfs_fd)
{
- bool r = igt_wait(fbc_is_enabled(debugfs_fd), 5000, 1);
- fbc_print_status(debugfs_fd);
- return r;
+ return igt_wait(fbc_is_enabled(debugfs_fd), 5000, 1);
}
static bool fbc_wait_until_update(int debugfs)
@@ -179,21 +168,9 @@ static bool connector_can_psr(drmModeConnectorPtr connector)
return (connector->connector_type == DRM_MODE_CONNECTOR_eDP);
}
-static void psr_print_status(int debugfs_fd)
-{
- static char buf[PSR_STATUS_MAX_LEN];
-
- igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf,
- sizeof(buf));
- igt_debug("PSR status: %s\n", buf);
-}
-
static bool psr_wait_until_enabled(int debugfs_fd)
{
- bool r = psr_wait_entry(debugfs_fd);
-
- psr_print_status(debugfs_fd);
- return r;
+ return psr_wait_entry(debugfs_fd);
}
static bool psr_wait_until_update(int debugfs_fd)
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (6 preceding siblings ...)
2019-01-07 19:10 ` [igt-dev] [PATCH i-g-t 8/8] tests/fbcon_fbt: Do not print debugfs of features José Roberto de Souza
@ 2019-01-07 19:52 ` Patchwork
2019-01-07 20:38 ` [igt-dev] [PATCH i-g-t 1/8] " Chris Wilson
2019-01-07 22:52 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/8] " Patchwork
9 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-01-07 19:52 UTC (permalink / raw)
To: José Roberto de Souza; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
URL : https://patchwork.freedesktop.org/series/54837/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5369 -> IGTPW_2193
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/54837/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_2193 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_busy@basic-flip-b:
- fi-gdg-551: PASS -> FAIL [fdo#103182]
* igt@kms_pipe_crc_basic@read-crc-pipe-a:
- fi-byt-clapper: PASS -> FAIL [fdo#107362]
#### Possible fixes ####
* igt@gem_mmap_gtt@basic-small-copy:
- fi-glk-dsi: INCOMPLETE [fdo#103359] / [k.org#198133] -> PASS
* igt@i915_selftest@live_coherency:
- fi-gdg-551: DMESG-FAIL [fdo#107164] -> PASS
* igt@i915_selftest@live_hangcheck:
- fi-bwr-2160: DMESG-FAIL [fdo#108735] -> PASS
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- fi-blb-e6850: INCOMPLETE [fdo#107718] -> PASS
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- fi-cfl-8109u: INCOMPLETE [fdo#106070] / [fdo#108126] -> PASS
[fdo#103182]: https://bugs.freedesktop.org/show_bug.cgi?id=103182
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#106070]: https://bugs.freedesktop.org/show_bug.cgi?id=106070
[fdo#107164]: https://bugs.freedesktop.org/show_bug.cgi?id=107164
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108126]: https://bugs.freedesktop.org/show_bug.cgi?id=108126
[fdo#108735]: https://bugs.freedesktop.org/show_bug.cgi?id=108735
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (49 -> 45)
------------------------------
Missing (4): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan
Build changes
-------------
* IGT: IGT_4756 -> IGTPW_2193
CI_DRM_5369: 4d637a8d160356f01d22695ec1a76858bfb55758 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2193: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2193/
IGT_4756: 75081c6bfb9998bd7cbf35a7ac0578c683fe55a8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2193/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (7 preceding siblings ...)
2019-01-07 19:52 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it Patchwork
@ 2019-01-07 20:38 ` Chris Wilson
2019-01-08 13:52 ` Souza, Jose
2019-01-07 22:52 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/8] " Patchwork
9 siblings, 1 reply; 15+ messages in thread
From: Chris Wilson @ 2019-01-07 20:38 UTC (permalink / raw)
To: José Roberto de Souza, igt-dev; +Cc: Dhinakaran Pandiyan
Quoting José Roberto de Souza (2019-01-07 19:10:49)
> So every function reading i915_edp_psr_status can allocate a buffer
> long enough.
Or just use
char *buf = igt_sysfs_get(debugfs_fd, "i915_edp_psr_status");
...
free(buf);
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
2019-01-07 20:38 ` [igt-dev] [PATCH i-g-t 1/8] " Chris Wilson
@ 2019-01-08 13:52 ` Souza, Jose
0 siblings, 0 replies; 15+ messages in thread
From: Souza, Jose @ 2019-01-08 13:52 UTC (permalink / raw)
To: igt-dev@lists.freedesktop.org, chris@chris-wilson.co.uk
Cc: Pandiyan, Dhinakaran
[-- Attachment #1.1: Type: text/plain, Size: 442 bytes --]
On Mon, 2019-01-07 at 20:38 +0000, Chris Wilson wrote:
> Quoting José Roberto de Souza (2019-01-07 19:10:49)
> > So every function reading i915_edp_psr_status can allocate a buffer
> > long enough.
>
> Or just use
>
> char *buf = igt_sysfs_get(debugfs_fd, "i915_edp_psr_status");
> ...
> free(buf);
In some places we read the this debugfs several times per second, so
not a good a idea to do dynamic allocation.
> -Chris
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
2019-01-07 19:10 [igt-dev] [PATCH i-g-t 1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it José Roberto de Souza
` (8 preceding siblings ...)
2019-01-07 20:38 ` [igt-dev] [PATCH i-g-t 1/8] " Chris Wilson
@ 2019-01-07 22:52 ` Patchwork
9 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-01-07 22:52 UTC (permalink / raw)
To: José Roberto de Souza; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/8] lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
URL : https://patchwork.freedesktop.org/series/54837/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5369_full -> IGTPW_2193_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/54837/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_2193_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_available_modes_crc@available_mode_test_crc:
- shard-snb: NOTRUN -> FAIL [fdo#106641]
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:
- shard-snb: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_color@pipe-a-ctm-max:
- shard-apl: PASS -> FAIL [fdo#108147]
* igt@kms_color@pipe-b-degamma:
- shard-apl: PASS -> FAIL [fdo#104782]
* igt@kms_cursor_crc@cursor-128x42-sliding:
- shard-kbl: PASS -> FAIL [fdo#103232]
- shard-apl: PASS -> FAIL [fdo#103232] +1
* igt@kms_cursor_crc@cursor-64x64-random:
- shard-glk: PASS -> FAIL [fdo#103232]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-blt:
- shard-glk: PASS -> FAIL [fdo#103167] +7
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-move:
- shard-apl: PASS -> FAIL [fdo#103167]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-onoff:
- shard-snb: NOTRUN -> INCOMPLETE [fdo#105411] / [fdo#107469]
* igt@kms_plane@pixel-format-pipe-a-planes-source-clamping:
- shard-apl: PASS -> FAIL [fdo#108948]
* igt@kms_plane@plane-position-covered-pipe-a-planes:
- shard-glk: PASS -> FAIL [fdo#103166] +2
* igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
- shard-kbl: PASS -> FAIL [fdo#103166]
- shard-apl: PASS -> FAIL [fdo#103166] +1
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: PASS -> DMESG-FAIL [fdo#108950]
* igt@kms_setmode@basic:
- shard-hsw: PASS -> FAIL [fdo#99912]
- shard-snb: NOTRUN -> FAIL [fdo#99912]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s4-devices:
- shard-kbl: DMESG-WARN [fdo#103558] / [fdo#105602] / [fdo#107139] -> PASS
* igt@kms_cursor_crc@cursor-128x42-onscreen:
- shard-glk: FAIL [fdo#103232] -> PASS +2
* igt@kms_cursor_crc@cursor-256x85-onscreen:
- shard-apl: FAIL [fdo#103232] -> PASS +2
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
- shard-apl: FAIL [fdo#103167] -> PASS
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-glk: FAIL [fdo#103167] -> PASS +1
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: FAIL [fdo#108145] -> PASS
- shard-kbl: FAIL [fdo#108145] -> PASS
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-glk: FAIL [fdo#108145] -> PASS +1
* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- shard-glk: FAIL [fdo#103166] -> PASS +4
* igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
- shard-apl: FAIL [fdo#103166] -> PASS +4
- shard-kbl: FAIL [fdo#103166] -> PASS +1
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-glk: DMESG-FAIL [fdo#105763] / [fdo#106538] -> PASS
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS
* igt@kms_vblank@pipe-c-ts-continuation-modeset-rpm:
- shard-kbl: DMESG-WARN [fdo#103558] / [fdo#105602] -> PASS +2
* igt@perf@rc6-disable:
- shard-kbl: FAIL [fdo#103179] -> PASS
* igt@pm_rps@min-max-config-loaded:
- shard-glk: FAIL [fdo#102250] -> PASS
* igt@prime_vgem@basic-fence-flip:
- shard-apl: FAIL [fdo#104008] -> PASS
[fdo#102250]: https://bugs.freedesktop.org/show_bug.cgi?id=102250
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103179]: https://bugs.freedesktop.org/show_bug.cgi?id=103179
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#104008]: https://bugs.freedesktop.org/show_bug.cgi?id=104008
[fdo#104782]: https://bugs.freedesktop.org/show_bug.cgi?id=104782
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#106538]: https://bugs.freedesktop.org/show_bug.cgi?id=106538
[fdo#106641]: https://bugs.freedesktop.org/show_bug.cgi?id=106641
[fdo#107139]: https://bugs.freedesktop.org/show_bug.cgi?id=107139
[fdo#107469]: https://bugs.freedesktop.org/show_bug.cgi?id=107469
[fdo#107956]: https://bugs.freedesktop.org/show_bug.cgi?id=107956
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108147]: https://bugs.freedesktop.org/show_bug.cgi?id=108147
[fdo#108948]: https://bugs.freedesktop.org/show_bug.cgi?id=108948
[fdo#108950]: https://bugs.freedesktop.org/show_bug.cgi?id=108950
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (7 -> 5)
------------------------------
Missing (2): shard-skl shard-iclb
Build changes
-------------
* IGT: IGT_4756 -> IGTPW_2193
* Piglit: piglit_4509 -> None
CI_DRM_5369: 4d637a8d160356f01d22695ec1a76858bfb55758 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2193: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2193/
IGT_4756: 75081c6bfb9998bd7cbf35a7ac0578c683fe55a8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2193/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread