lpsp platform agnostic support
v5 cover lpsp platform agnostic support
This series adds lpsp igt val platform agnostic support. This has been a big gap on igt validation side in order to validate low power single pipe use cases.
v5 has the incorporated the changes for debugfs entry i915_lpsp_capability and i915_lpsp_status.
This should be test with i915 lpsp support, which adds i915_lpsp_{capability,status} debugfs.
Anshuman Gupta (5):
tests/i915_pm_lpsp: Nuke the panel-fitter test lib/igt_pm: Add lib func to get lpsp capability tests/i915_pm_lpsp: lpsp platform agnostic support tests/i915_pm_lpsp: screens-disabled subtest use igt_wait tests/i915_pm_rpm: lpsp/non-lpsp screen mode_set_data
lib/igt_pm.c | 37 +++++ lib/igt_pm.h | 1 + tests/i915/i915_pm_lpsp.c | 288 +++++++++++++++----------------------- tests/i915/i915_pm_rpm.c | 53 ++++--- 4 files changed, 183 insertions(+), 196 deletions(-)
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 1/5 tests/i915_pm_lpsp: Nuke the panel-fitter test
panel-fitter subtest is only applicable to HASWELL/BROADWELL. It just tests non-lpsp(lpsp disabled) when panel fitter is enforced by std 1024x768 mode.
There is no ROI to test non-lpsp kind of thing,
If HSW_GLOBAL power well is not enabled we would see other display issues in other display tests.
Gen9+ platform has display scaling feature in built per pipe, as lpsp is all about low power single pipe (PIPE A) usage, gen9+ platforms also don't require panel-fitter subtest. This should save some CI cycles.
--- tests/i915/i915_pm_lpsp.c | 2 -- 1 file changed, 2 deletions(-)
tests/i915/i915_pm_lpsp.c +0 -2
@@ -219,8 +219,6 @@ igt_mainscreens_disabled_subtest (drm_fd, drm_res); igt_subtest("edp-native")edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("edp-panel-fitter") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, true); igt_subtest("non-edp")non_edp_subtest (drm_fd, drm_res, drm_connectors);
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 2/5 lib/igt_pm: Add lib func to get lpsp capability
In reply to Anshuman GuptaThis lib function evaluate the lpsp capability from the connector specific debugfs attribute i915_lpsp_info.
v2:
- changed the lib function prefix igt_output_is_lpsp_capable to i915_output_is_lpsp_capable. [Martin]
v3:
- early return for the connector which doesn't support lpsp on any platform.
v4:
- debugfs entry changed from i915_lpsp_info to i915_lpsp_capability.
--- lib/igt_pm.c | 37 +++++++++++++++++++++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 38 insertions(+)
lib/igt_pm.c +37 -0
@@ -37,6 +37,7 @@#include <dirent.h> #include "drmtest.h" +#include "igt_kms.h" #include "igt_pm.h" #include "igt_aux.h" #include "igt_sysfs.h"
@@ -827,3 +828,39 @@ bool igt_pm_pc8_plus_residencies_enabled(int msr_fd)return true; } + +/** +* i915_output_is_lpsp_capable: +* @drm_fd: fd to drm device +* @output: igt output for which lpsp capability need to be evaluated +* Check lpsp capability for a given output. +* +* Returns: +* True if given output is lpsp capable otherwise false. +*/ +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output) +{ +drmModeConnectorPtr c = output->config.connector; +char buf[256 ]; +int fd, len; + +/* only eDP/DP/DSI/HDMI can support LPSP */ +if (c->connector_type != DRM_MODE_CONNECTOR_eDP && + c->connector_type !=DRM_MODE_CONNECTOR_DSI && + c->connector_type != DRM_MODE_CONNECTOR_DisplayPort && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIA && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIB ) +return false; + + fd =igt_debugfs_connector_dir (drm_fd, output->name,O_RDONLY ); +igt_require (fd >=0 ); + len =igt_debugfs_simple_read (fd,"i915_lpsp_capability" , + buf,sizeof (buf)); + +if (len <0 ) +igt_assert_eq (len, -ENODEV ); + +close (fd); + +return strstr (buf,"LPSP: capable" ); +}
lib/igt_pm.h +1 -0
@@ -53,5 +53,6 @@ enum igt_runtime_pm_status igt_get_runtime_pm_status(void);bool igt_wait_for_pm_status (enum igt_runtime_pm_status status);bool igt_pm_dmc_loaded (int debugfs);bool igt_pm_pc8_plus_residencies_enabled (int msr_fd); +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output);#endif /* IGT_PM_H */
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 2/5] lib/igt_pm: Add lib func to get lpsp capability
Quoted 47 lines · Anshuman Gupta
This lib function evaluate the lpsp capability from the connector specific debugfs attribute
i915_lpsp_info.v2:
- changed the lib function prefixigt_output_is_lpsp_capabletoi915_output_is_lpsp_capable. [Martin]
v3:
- early return for the connector which doesn't support lpsp on any platform.
v4:
- debugfs entry changed fromi915_lpsp_infotoi915_lpsp_capability.Signed-off-by Anshuman Gupta <[email protected]>--- lib/igt_pm.c | 37 +++++++++++++++++++++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 38 insertions(+)lib/igt_pm.c +14
-0@@ -37,6 +37,7 @@#include <dirent.h> #include "drmtest.h" +#include "igt_kms.h" #include "igt_pm.h" #include "igt_aux.h" #include "igt_sysfs.h" @@ -827,3 +828,39 @@ bool igt_pm_pc8_plus_residencies_enabled(int msr_fd)return true; } + +/** +* i915_output_is_lpsp_capable: +* @drm_fd: fd to drm device +* @output: igt output for which lpsp capability need to be evaluated +* Check lpsp capability for a given output. +* +* Returns: +* True if given output is lpsp capable otherwise false. +*/ +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output) +{ +drmModeConnectorPtr c = output->config.connector;
lib/igt_pm.c bool igt_pm_pc8_plus_residencies_enabled(int msr_fd) · line 853
Quoted 10 lines
lib/igt_pm.c +10
-0+char buf[256 ]; +int fd, len; + +/* only eDP/DP/DSI/HDMI can support LPSP */ +if (c->connector_type != DRM_MODE_CONNECTOR_eDP && + c->connector_type !=DRM_MODE_CONNECTOR_DSI && + c->connector_type != DRM_MODE_CONNECTOR_DisplayPort && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIA && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIB ) +return false;
We can avoid check for Connector type as already taken care in kernel... rt?
Regards,
Animesh
Quoted 18 lines
lib/igt_pm.c +13
-0+ + fd =igt_debugfs_connector_dir (drm_fd, output->name,O_RDONLY ); +igt_require (fd >=0 ); + len =igt_debugfs_simple_read (fd,"i915_lpsp_capability" , + buf,sizeof (buf)); + +if (len <0 ) +igt_assert_eq (len, -ENODEV ); + +close (fd); + +return strstr (buf,"LPSP: capable" ); +}lib/igt_pm.h +0
-0
lib/igt_pm.h enum igt_runtime_pm_status igt_get_runtime_pm_status(void); · line 58
Quoted 6 lines
lib/igt_pm.h +1
-0@@ -53,5 +53,6 @@ enum igt_runtime_pm_status igt_get_runtime_pm_status(void);bool igt_wait_for_pm_status (enum igt_runtime_pm_status status);bool igt_pm_dmc_loaded (int debugfs);bool igt_pm_pc8_plus_residencies_enabled (int msr_fd); +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output);#endif /* IGT_PM_H */
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 2/5] lib/igt_pm: Add lib func to get lpsp capability
Quoted 51 lines · Animesh
Quoted 49 lines · Anshuman Gupta
This lib function evaluate the lpsp capability from the connector specific debugfs attribute
i915_lpsp_info.v2:
- changed the lib function prefixigt_output_is_lpsp_capabletoi915_output_is_lpsp_capable. [Martin]
v3:
- early return for the connector which doesn't support lpsp on any platform.
v4:
- debugfs entry changed fromi915_lpsp_infotoi915_lpsp_capability.Signed-off-by Anshuman Gupta <[email protected]>--- lib/igt_pm.c | 37 +++++++++++++++++++++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 38 insertions(+)lib/igt_pm.c +18
-0@@ -37,6 +37,7 @@#include <dirent.h> #include "drmtest.h" +#include "igt_kms.h" #include "igt_pm.h" #include "igt_aux.h" #include "igt_sysfs.h" @@ -827,3 +828,39 @@ bool igt_pm_pc8_plus_residencies_enabled(int msr_fd)return true; } + +/** +* i915_output_is_lpsp_capable: +* @drm_fd: fd to drm device +* @output: igt output for which lpsp capability need to be evaluated +* Check lpsp capability for a given output. +* +* Returns: +* True if given output is lpsp capable otherwise false. +*/ +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output) +{ +drmModeConnectorPtr c = output->config.connector; +char buf[256 ]; +int fd, len; + +/* only eDP/DP/DSI/HDMI can support LPSP */
Quoted 8 lines
lib/igt_pm.c bool igt_pm_pc8_plus_residencies_enabled(int msr_fd) · line 853
Quoted 6 lines
lib/igt_pm.c +6
-0+if (c->connector_type != DRM_MODE_CONNECTOR_eDP && + c->connector_type !=DRM_MODE_CONNECTOR_DSI && + c->connector_type != DRM_MODE_CONNECTOR_DisplayPort && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIA && + c->connector_type !=DRM_MODE_CONNECTOR_HDMIB ) +return false;We can avoid check for Connector type as already taken care in kernel... rt?
Thanks for review animesh.
kernel will not create the debugfs for legacy connector in that case there will not be any entry, as there will not be any entry later this function assert on the debugfs entry, which will fail the test.
That is why connector check is there to return the capability false, when there is no entry.
Thanks,
Anshuman Gupta.
Quoted 19 lines
Regards,
AnimeshQuoted 15 lines
lib/igt_pm.c +13
-0+ + fd =igt_debugfs_connector_dir (drm_fd, output->name,O_RDONLY ); +igt_require (fd >=0 ); + len =igt_debugfs_simple_read (fd,"i915_lpsp_capability" , + buf,sizeof (buf)); + +if (len <0 ) +igt_assert_eq (len, -ENODEV ); + +close (fd); + +return strstr (buf,"LPSP: capable" ); +}lib/igt_pm.h +0
-0
Quoted 8 lines
lib/igt_pm.h enum igt_runtime_pm_status igt_get_runtime_pm_status(void); · line 57
Quoted 8 lines
lib/igt_pm.h +1
-0@@ -53,5 +53,6 @@ enum igt_runtime_pm_status igt_get_runtime_pm_status(void);bool igt_wait_for_pm_status (enum igt_runtime_pm_status status);bool igt_pm_dmc_loaded (int debugfs);bool igt_pm_pc8_plus_residencies_enabled (int msr_fd); +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output);#endif /* IGT_PM_H */
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 2/5 lib/igt_pm: Add lib func to get lpsp capability
In reply to Anshuman GuptaThis lib function evaluate the lpsp capability from the connector specific debugfs attribute i915_lpsp_info.
v2:
- changed the lib function prefix igt_output_is_lpsp_capable to i915_output_is_lpsp_capable. [Martin]
v3:
- early return for the connector which doesn't support lpsp on any platform.
v4:
- debugfs entry changed from i915_lpsp_info to i915_lpsp_capability. v5:
- return lpsp capability false if i915_lpsp_capability debugfs is not present. [Animesh]
--- lib/igt_pm.c | 29 +++++++++++++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 30 insertions(+)
lib/igt_pm.c +29 -0
@@ -37,6 +37,7 @@#include <dirent.h> #include "drmtest.h" +#include "igt_kms.h" #include "igt_pm.h" #include "igt_aux.h" #include "igt_sysfs.h"
@@ -827,3 +828,31 @@ bool igt_pm_pc8_plus_residencies_enabled(int msr_fd)return true; } + +/** +* i915_output_is_lpsp_capable: +* @drm_fd: fd to drm device +* @output: igt output for which lpsp capability need to be evaluated +* Check lpsp capability for a given output. +* +* Returns: +* True if given output is lpsp capable otherwise false. +*/ +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output) +{ +char buf[256 ]; +int fd, len; + + fd =igt_debugfs_connector_dir (drm_fd, output->name,O_RDONLY ); +igt_require (fd >=0 ); + len =igt_debugfs_simple_read (fd,"i915_lpsp_capability" , + buf,sizeof (buf)); + +/* if i915_lpsp_capability not present return the capability as false */ +if (len <0 ) +return false; + +close (fd); + +return strstr (buf,"LPSP: capable" ); +}
lib/igt_pm.h +1 -0
@@ -53,5 +53,6 @@ enum igt_runtime_pm_status igt_get_runtime_pm_status(void);bool igt_wait_for_pm_status (enum igt_runtime_pm_status status);bool igt_pm_dmc_loaded (int debugfs);bool igt_pm_pc8_plus_residencies_enabled (int msr_fd); +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output);#endif /* IGT_PM_H */
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 2/5] lib/igt_pm: Add lib func to get lpsp capability
Quoted 15 lines · Anshuman Gupta
This lib function evaluate the lpsp capability from the connector specific debugfs attribute
i915_lpsp_info.v2:
- changed the lib function prefixigt_output_is_lpsp_capabletoi915_output_is_lpsp_capable. [Martin]
v3:
- early return for the connector which doesn't support lpsp on any platform.
v4:
- debugfs entry changed fromi915_lpsp_infotoi915_lpsp_capability. v5:
- return lpsp capability false ifi915_lpsp_capabilitydebugfs is not present. [Animesh]
Quoted 1 line
Signed-off-by Anshuman Gupta <[email protected]>
looks good to me.
Quoted 54 lines
--- lib/igt_pm.c | 29 +++++++++++++++++++++++++++++ lib/igt_pm.h | 1 + 2 files changed, 30 insertions(+)lib/igt_pm.c +29
-0@@ -37,6 +37,7 @@#include <dirent.h> #include "drmtest.h" +#include "igt_kms.h" #include "igt_pm.h" #include "igt_aux.h" #include "igt_sysfs.h" @@ -827,3 +828,31 @@ bool igt_pm_pc8_plus_residencies_enabled(int msr_fd)return true; } + +/** +* i915_output_is_lpsp_capable: +* @drm_fd: fd to drm device +* @output: igt output for which lpsp capability need to be evaluated +* Check lpsp capability for a given output. +* +* Returns: +* True if given output is lpsp capable otherwise false. +*/ +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output) +{ +char buf[256 ]; +int fd, len; + + fd =igt_debugfs_connector_dir (drm_fd, output->name,O_RDONLY ); +igt_require (fd >=0 ); + len =igt_debugfs_simple_read (fd,"i915_lpsp_capability" , + buf,sizeof (buf)); + +/* if i915_lpsp_capability not present return the capability as false */ +if (len <0 ) +return false; + +close (fd); + +return strstr (buf,"LPSP: capable" ); +}lib/igt_pm.h +0
-0
lib/igt_pm.h enum igt_runtime_pm_status igt_get_runtime_pm_status(void); · line 58
Quoted 6 lines
lib/igt_pm.h +1
-0@@ -53,5 +53,6 @@ enum igt_runtime_pm_status igt_get_runtime_pm_status(void);bool igt_wait_for_pm_status (enum igt_runtime_pm_status status);bool igt_pm_dmc_loaded (int debugfs);bool igt_pm_pc8_plus_residencies_enabled (int msr_fd); +bool i915_output_is_lpsp_capable (int drm_fd,igt_output_t *output);#endif /* IGT_PM_H */
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 3/5 tests/i915_pm_lpsp: lpsp platform agnostic support
In reply to Anshuman GuptaCurrent implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.
The new igt approach is relies on connector specific i915_lpsp_capability and i915_lpsp_status debugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.
Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading of snd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfs i915_lpsp_status changes.
--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)
tests/i915/i915_pm_lpsp.c +114 -171
@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); } -static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ +static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + } + } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 87 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +23
-13@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{
tests/i915/i915_pm_lpsp.c line 67
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +5
-3-kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); } -static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/
All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
tests/i915/i915_pm_lpsp.c line 76
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +8
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );
Passing PIPE_NONE and testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
Regards,
Animesh
Quoted 245 lines
tests/i915/i915_pm_lpsp.c +70
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } +
tests/i915/i915_pm_lpsp.c line 177
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +8
-0+test_cleanup (&data); + } + } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 87 lines · Animesh
Quoted 85 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +24
-15@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); }
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 67
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +4
-1-static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
Yes you are correct that is the same above comment has mentioned that "LPSP mode is all about an enabled pipe", but here test method checks for lpsp when all screens are disbaled i.e. all crtc are disabled, that is almost same as there is no display connected with respect to power consumption.
Quoted 5 lines
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +3
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ;
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 76
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +5
-0+enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );Passing
PIPE_NONEand testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
PIPE_NONE commit will disbale a crtc, when all crtc gets disbaled, all power well except PG1 will be disbaled, PG1 is controlled by DMC.
So testing lpsp is here is one of the test case, i.e we want to test power well associated to PIPE_B should be turned off. There may be a bug in driver that when all crtc are disbaled PIPE_B associated power is not turned off, that is what this test validated. Enabling a pipe for lpsp will get covered in kms-lpsp test.
Thanks,
Anshuman Gupta.
Quoted 242 lines
Regards,
Animesh
Quoted 237 lines
tests/i915/i915_pm_lpsp.c +72
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + }
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 177
Quoted 8 lines
tests/i915/i915_pm_lpsp.c +6
-0+ } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 111 lines · Anshuman Gupta
Quoted 86 lines · Animesh
Quoted 85 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +24
-15@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); }Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 67
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +4
-1-static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
Yes you are correct that is the same above comment has mentioned that "LPSP mode is all about an enabled pipe", but here test method checks for lpsp when all screens are disbaled i.e. all crtc are disabled, that is almost same as there is no display connected with respect to power consumption.
Quoted 4 lines
Quoted 4 lines
tests/i915/i915_pm_lpsp.c +2
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output;Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 76
Quoted 6 lines
tests/i915/i915_pm_lpsp.c +6
-0+int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );Passing
PIPE_NONEand testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
Quoted 2 lines
PIPE_NONEcommit will disbale a crtc, when all crtc gets disbaled, all power well except PG1 will be disbaled, PG1 is controlled by DMC.
I do not think DC9 is controlled by DMC, during all crtc disable driver will disable all power-well and enter into DC9, no role of DMC here ... am I missing anything?
Regards,
Animesh
Quoted 247 lines
So testing lpsp is here is one of the test case, i.e we want to test power well associated to
PIPE_Bshould be turned off. There may be a bug in driver that when all crtc are disbaledPIPE_Bassociated power is not turned off, that is what this test validated. Enabling a pipe for lpsp will get covered in kms-lpsp test.
Thanks,
Anshuman Gupta.Quoted 241 lines
Regards,
Animesh
Quoted 237 lines
tests/i915/i915_pm_lpsp.c +72
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + }
Quoted 8 lines
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 177
Quoted 8 lines
tests/i915/i915_pm_lpsp.c +6
-0+ } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 113 lines · Animesh
Quoted 111 lines · Anshuman Gupta
Quoted 86 lines · Animesh
Quoted 85 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +24
-15@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); }Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 67
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +4
-1-static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
Yes you are correct that is the same above comment has mentioned that "LPSP mode is all about an enabled pipe", but here test method checks for lpsp when all screens are disbaled i.e. all crtc are disabled, that is almost same as there is no display connected with respect to power consumption.
Quoted 12 lines
tests/i915/i915_pm_lpsp.c line 76
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +8
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );Passing
PIPE_NONEand testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
Quoted 4 lines
Quoted 2 lines
PIPE_NONEcommit will disbale a crtc, when all crtc gets disbaled, all power well except PG1 will be disbaled, PG1 is controlled by DMC.I do not think DC9 is controlled by DMC, during all crtc disable driver will disable all power-well and enter into DC9, no role of DMC here ... am I missing anything?
yes DC9 is not controlled by DMC, and i915 program DC9 in case of runtime suspend or system wide suspend, so DC9 a deeper state depends on i915 suspend, let's think about a use case when all CRTC are disabled but gem has valid run time usages count or let's say i915 device is always on i.e (/sys/bus/pci/devices/0000\:00\:02.0/power/control attribute in on), in those cases runtime status will be always active, so i think test method to validate PIPE_B associated power well is valid here when all crtc are disbaled i.e. all display are off. We want validate a intermediate power state here, which is a valid use case.
Please correct me if my thought process about test method is wrong.
Thanks ,
Anshuman Gupta.
Quoted 251 lines
Regards,
AnimeshQuoted 247 lines
So testing lpsp is here is one of the test case, i.e we want to test power well associated to
PIPE_Bshould be turned off. There may be a bug in driver that when all crtc are disbaledPIPE_Bassociated power is not turned off, that is what this test validated. Enabling a pipe for lpsp will get covered in kms-lpsp test.
Thanks,
Anshuman Gupta.Quoted 241 lines
Regards,
Animesh
Quoted 237 lines
tests/i915/i915_pm_lpsp.c +72
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + }
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 177
Quoted 8 lines
tests/i915/i915_pm_lpsp.c +6
-0+ } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 113 lines · Anshuman Gupta
Quoted 112 lines · Animesh
Quoted 111 lines · Anshuman Gupta
Quoted 86 lines · Animesh
Quoted 85 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +24
-15@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); }Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 67
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +4
-1-static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
Yes you are correct that is the same above comment has mentioned that "LPSP mode is all about an enabled pipe", but here test method checks for lpsp when all screens are disbaled i.e. all crtc are disabled, that is almost same as there is no display connected with respect to power consumption.
Quoted 12 lines
tests/i915/i915_pm_lpsp.c line 76
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +8
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );Passing
PIPE_NONEand testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
PIPE_NONEcommit will disbale a crtc, when all crtc gets disbaled, all power well except PG1 will be disbaled, PG1 is controlled by DMC.I do not think DC9 is controlled by DMC, during all crtc disable driver will disable all power-well and enter into DC9, no role of DMC here ... am I missing anything?
yes DC9 is not controlled by DMC, and i915 program DC9 in case of runtime suspend or system wide suspend, so DC9 a deeper state depends on i915 suspend, let's think about a use case when all CRTC are disabled but gem has valid run time usages count or let's say i915 device is always on i.e (/sys/bus/pci/devices/0000\:00\:02.0/power/control attribute in on), in those cases runtime status will be always active, so i think test method to validate
PIPE_Bassociated power well is valid here when all crtc are disbaled i.e. all display are off.
As per the above example though DC9 is not triggered but all power-well will be disabled by driver as it is display engine specific. This is not lpsp. Here valid testcase would be to check PG1 is enabled or not.
Regards,
Animesh
Quoted 254 lines
We want validate a intermediate power state here, which is a valid use case. Please correct me if my thought process about test method is wrong. Thanks ,
Anshuman Gupta.Quoted 250 lines
Regards,
AnimeshQuoted 247 lines
So testing lpsp is here is one of the test case, i.e we want to test power well associated to
PIPE_Bshould be turned off. There may be a bug in driver that when all crtc are disbaledPIPE_Bassociated power is not turned off, that is what this test validated. Enabling a pipe for lpsp will get covered in kms-lpsp test.
Thanks,
Anshuman Gupta.Quoted 241 lines
Regards,
Animesh
Quoted 237 lines
tests/i915/i915_pm_lpsp.c +72
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + }
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 177
Quoted 8 lines
tests/i915/i915_pm_lpsp.c +6
-0+ } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 3/5] tests/i915_pm_lpsp: lpsp platform agnostic support
Quoted 115 lines · Animesh
Quoted 113 lines · Anshuman Gupta
Quoted 112 lines · Animesh
Quoted 111 lines · Anshuman Gupta
Quoted 86 lines · Animesh
Quoted 85 lines · Anshuman Gupta
Current implementation of lpsp igt test, assumed that every non-edp panel isn't a lpsp panel but it is not true on TGL anymore, any HDMI/DP/DSI panel connected on pipe A and connected to PORT_{A,B,C} can drive LPSP.
Even on older Gen9 platform a DP panel can drive lpsp on Port A. This requires complete design change in current lpsp igt for a platform agnostic support.The new igt approach is relies on connector specific
i915_lpsp_capabilityandi915_lpsp_statusdebugfs attributes, these debugfs exposes whether an output is capable of driving lpsp and lpsp is enabled.Nuking edp-native and non-edp test, introducing a new dynamic igt subtest kms-lpsp, which validates lpsp on each connected output and skip the subtest if output is not lpsp capable.
v2:
- CI failures fixup.
v3:
- removed unloading ofsnd_modules. [Martin]
v4:
- Don't test non-lpsp(if lpsp disabled), no ROI to test that.
- nuke panel-fitter test.
v5:
- Added dynamic subtest and igt changes according to kernel debugfsi915_lpsp_statuschanges.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 285 +++++++++++++++----------------------- 1 file changed, 114 insertions(+), 171 deletions(-)tests/i915/i915_pm_lpsp.c +24
-15@@ -25,210 +25,153 @@*/ #include "igt.h" +#include "igt_kmod.h" +#include "igt_pm.h" +#include "igt_sysfs.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#define MAX_SINK_LPSP_INFO_BUF_LEN 4096 -static bool supports_lpsp (uint32_t devid) -{ -return IS_HASWELL (devid) ||IS_BROADWELL (devid); -} +#define PWR_DOMAIN_INFO "i915_power_domain_info" -static bool lpsp_is_enabled (int drm_fd) +typedef struct { +int drm_fd; +int debugfs_fd; +uint32_t devid; +char *pwr_dmn_info; +igt_display_t display; +struct igt_fb fb; +drmModeModeInfo *mode; +igt_output_t *output; +}data_t ; + +static bool lpsp_is_enabled (data_t *data) { -uint32_t val; +char buf[MAX_SINK_LPSP_INFO_BUF_LEN ]; +int len; - val =INREG (HSW_PWR_WELL_CTL2 ); -return !(val &HSW_PWR_WELL_STATE_ENABLED ); -} + len =igt_debugfs_simple_read (data->debugfs_fd,"i915_lpsp_status" , + buf,sizeof (buf)); +if (len <0 ) +igt_assert_eq (len, -ENODEV ); -/* The LPSP mode is all about an enabled pipe, but we expect to also be in the -* low power mode when no pipes are enabled, so do this check anyway. */ -static void screens_disabled_subtest (int drm_fd,drmModeResPtr drm_res) -{ -kmstest_unset_all_crtcs (drm_fd, drm_res); -igt_assert (lpsp_is_enabled (drm_fd)); +return strstr (buf,"LPSP: enabled" ); }Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 67
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +4
-1-static uint32_t create_fb (int drm_fd,int width,int height) +/* +* The LPSP mode is all about an enabled pipe, but we expect to also be in the +* low power mode when no pipes are enabled, so do this check anyway. +*/ All pipe disabled in not same as lpsp. I feel the idea behind lpsp is single pipe usage with least power consumption ... there maybe no display connected.
Yes you are correct that is the same above comment has mentioned that "LPSP mode is all about an enabled pipe", but here test method checks for lpsp when all screens are disbaled i.e. all crtc are disabled, that is almost same as there is no display connected with respect to power consumption.
Quoted 12 lines
tests/i915/i915_pm_lpsp.c line 76
Quoted 10 lines
tests/i915/i915_pm_lpsp.c +8
-1+static void screens_disabled_subtest (data_t *data) { -struct igt_fb fb; +igt_output_t *output; +int valid_output =0 ; +enum pipe pipe; + +for_each_pipe_with_single_output (&data->display, pipe, output) { + data->output = output; +igt_output_set_pipe (data->output,PIPE_NONE );Passing
PIPE_NONEand testing lpsp maybe not the right thing here. We may not have connector but need to enable a single pipe to test lpsp... rt?
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
PIPE_NONEcommit will disbale a crtc, when all crtc gets disbaled, all power well except PG1 will be disbaled, PG1 is controlled by DMC.I do not think DC9 is controlled by DMC, during all crtc disable driver will disable all power-well and enter into DC9, no role of DMC here ... am I missing anything?
yes DC9 is not controlled by DMC, and i915 program DC9 in case of runtime suspend or system wide suspend, so DC9 a deeper state depends on i915 suspend, let's think about a use case when all CRTC are disabled but gem has valid run time usages count or let's say i915 device is always on i.e (/sys/bus/pci/devices/0000\:00\:02.0/power/control attribute in on), in those cases runtime status will be always active, so i think test method to validate
PIPE_Bassociated power well is valid here when all crtc are disbaled i.e. all display are off.As per the above example though DC9 is not triggered but all power-well will be disabled by driver as it is display engine specific. This is not lpsp.
IMHO Code-comment here itself clears that LPSP is only about an enabled pipe so there shouldn't be any confusion.
Quoted 1 line
Here valid testcase would be to check PG1 is enabled or not.
I think it is not wrong if we validate PG2/PG3 i.e. LPSP associated power well in this test, PG1 is "Always On" on HSW/BDW and controlled by DMC gen9 onwards, validating PG1 is out of scope for LPSP test and not relevent for HSW/BDW.
AFAIU from ur comment, u might be in favour of nuke this test but HSW/BDW require this test.
I have not written this sub-test, this patch just modifies the test method, philosophy of sub-test is same as exisitng sub-test. Please suggest how to take forward this igt-subtest.
Thanks,
Anshuman Gupta.
Quoted 258 lines
Regards,
AnimeshQuoted 254 lines
We want validate a intermediate power state here, which is a valid use case. Please correct me if my thought process about test method is wrong. Thanks ,
Anshuman Gupta.Quoted 250 lines
Regards,
AnimeshQuoted 247 lines
So testing lpsp is here is one of the test case, i.e we want to test power well associated to
PIPE_Bshould be turned off. There may be a bug in driver that when all crtc are disbaledPIPE_Bassociated power is not turned off, that is what this test validated. Enabling a pipe for lpsp will get covered in kms-lpsp test.
Thanks,
Anshuman Gupta.Quoted 241 lines
Regards,
Animesh
Quoted 237 lines
tests/i915/i915_pm_lpsp.c +72
-154+igt_display_commit (&data->display); + valid_output++; + } -return igt_create_pattern_fb (drm_fd, width, height,DRM_FORMAT_XRGB8888 , -LOCAL_DRM_FORMAT_MOD_NONE , &fb); +igt_require_f (valid_output,"No connected output found\n" ); +igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); } -static void edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors,uint32_t devid, -bool use_panel_fitter) +static void setup_lpsp_output (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; -drmModeModeInfo std_1024_mode = { - .clock =65000 , - .hdisplay =1024 , - .hsync_start =1048 , - .hsync_end =1184 , - .htotal =1344 , - .hskew =0 , - .vdisplay =768 , - .vsync_start =771 , - .vsync_end =777 , - .vtotal =806 , - .vscan =0 , - .vrefresh =60 , - .flags =0xA , - .type =0x40 , - .name ="Custom 1024x768" , - }; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type != DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (!use_panel_fitter && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } -if (use_panel_fitter) { - connector = c; - -/* This is one of the modes Xorg creates for panels, so -* it should work just fine. Notice that Gens that -* 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 ); - mode = &std_1024_mode; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (connector); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -if (use_panel_fitter) { -if (IS_HASWELL (devid)) -igt_assert (!lpsp_is_enabled (drm_fd)); -else -igt_assert (lpsp_is_enabled (drm_fd)); - }else { -igt_assert (lpsp_is_enabled (drm_fd)); - } +igt_plane_t *primary; + +/* set output pipe = PIPE_A for LPSP */ +igt_output_set_pipe (data->output,PIPE_A ); + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_create_pattern_fb (data->drm_fd, + data->mode->hdisplay, data->mode->vdisplay, +DRM_FORMAT_XRGB8888 , +LOCAL_DRM_FORMAT_MOD_NONE , + &data->fb); +igt_plane_set_fb (primary, &data->fb); +igt_display_commit (&data->display); } -static void non_edp_subtest (int drm_fd,drmModeResPtr drm_res, -drmModeConnectorPtr *drm_connectors) +static void test_cleanup (data_t *data) { -int i, rc; -uint32_t crtc_id =0 , buffer_id =0 ; -drmModeConnectorPtr connector =NULL ; -drmModeModeInfoPtr mode =NULL ; - -kmstest_unset_all_crtcs (drm_fd, drm_res); - -for (i =0 ; i < drm_res->count_connectors; i++) { -drmModeConnectorPtr c = drm_connectors[i]; - -if (c->connector_type == DRM_MODE_CONNECTOR_eDP) -continue ; -if (c->connection !=DRM_MODE_CONNECTED ) -continue ; - -if (c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } - } -igt_require (connector); - - crtc_id =kmstest_find_crtc_for_connector (drm_fd, drm_res, connector, -0 ); - buffer_id =create_fb (drm_fd, mode->hdisplay, mode->vdisplay); - -igt_assert (buffer_id); -igt_assert (mode); - - rc =drmModeSetCrtc (drm_fd, crtc_id, buffer_id,0 ,0 , - &connector->connector_id,1 , mode); -igt_assert_eq (rc,0 ); - -igt_assert (!lpsp_is_enabled (drm_fd)); +igt_plane_t *primary; + +if (!data->output || data->output->pending_pipe ==PIPE_NONE ) +return ; + + primary =igt_output_get_plane_type (data->output, +DRM_PLANE_TYPE_PRIMARY ); +igt_plane_set_fb (primary,NULL ); +igt_output_set_pipe (data->output,PIPE_NONE ); +igt_display_commit (&data->display); +igt_remove_fb (data->drm_fd, &data->fb); + data->output =NULL ; } -#define MAX_CONNECTORS 32 +static void test_lpsp (data_t *data) +{ +/* LPSP is low power single pipe usages i.e. PIPE_A */ +igt_require (igt_pipe_connector_valid (PIPE_A , data->output)); +igt_require_f (i915_output_is_lpsp_capable (data->drm_fd, data->output), +"output is not lpsp capable\n" ); + + data->mode =igt_output_get_mode (data->output); +setup_lpsp_output (data); +igt_assert_f (lpsp_is_enabled (data),"%s: lpsp is not enabled\n%s:\n%s\n" , + data->output->name,PWR_DOMAIN_INFO , data->pwr_dmn_info = +igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); +} -int drm_fd; -uint32_t devid; -drmModeResPtr drm_res; -drmModeConnectorPtr drm_connectors[MAX_CONNECTORS ]; -struct intel_mmio_data mmio_data; +IGT_TEST_DESCRIPTION ("These tests validates display Low Power Single Pipe configurations" ); igt_main { - igt_fixture { -int i; - - drm_fd =drm_open_driver_master (DRIVER_INTEL ); -igt_require (drm_fd >=0 ); - - devid =intel_get_drm_devid (drm_fd); - - drm_res =drmModeGetResources (drm_fd); -igt_require (drm_res); -igt_assert (drm_res->count_connectors <=MAX_CONNECTORS ); +data_t data = {}; -for (i =0 ; i < drm_res->count_connectors; i++) - drm_connectors[i] =drmModeGetConnectorCurrent (drm_fd, - drm_res->connectors[i]); + igt_fixture { + data.drm_fd =drm_open_driver_master (DRIVER_INTEL ); +igt_require (data.drm_fd >=0 ); + data.debugfs_fd =igt_debugfs_dir (data.drm_fd); +igt_require (data.debugfs_fd >=0 );igt_pm_enable_audio_runtime_pm (); - -igt_require (supports_lpsp (devid)); - -intel_register_access_init (&mmio_data,intel_get_pci_device (),0 , drm_fd); -kmstest_set_vt_graphics_mode (); + data.devid =intel_get_drm_devid (data.drm_fd); +igt_display_require (&data.display, data.drm_fd); +igt_require (igt_pm_dmc_loaded (data.debugfs_fd)); } +igt_describe ("This test validates lpsp while all crtc are disabled" ); igt_subtest("screens-disabled") -screens_disabled_subtest (drm_fd, drm_res); - igt_subtest("edp-native") -edp_subtest (drm_fd, drm_res, drm_connectors, devid, false); - igt_subtest("non-edp") -non_edp_subtest (drm_fd, drm_res, drm_connectors); +screens_disabled_subtest (&data); - igt_fixture { -int i; +igt_describe ("This test validates lpsp on all connected outputs on low power PIPE_A" ); + igt_subtest_with_dynamic_f("kms-lpsp") { +igt_display_t *display = &data.display; +igt_output_t *output; -intel_register_access_fini (&mmio_data); -for (i =0 ; i < drm_res->count_connectors; i++) -drmModeFreeConnector (drm_connectors[i]); -drmModeFreeResources (drm_res); -close (drm_fd); +for_each_connected_output (display, output) { + igt_dynamic_f("kms-lpsp-%s", output->name) { + data.output = output; +test_lpsp (&data); + } + +test_cleanup (&data); + }
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tests/i915/i915_pm_lpsp.c line 177
Quoted 8 lines
tests/i915/i915_pm_lpsp.c +6
-0+ } + + igt_fixture { +free (data.pwr_dmn_info); +close (data.drm_fd); +igt_display_fini (&data.display); } }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 4/5 tests/i915_pm_lpsp: screens-disabled subtest use igt_wait
In reply to Anshuman GuptaWhen all screens are disabled, it takes some time to release eDP/DP AUX IO power domain ref count. Also, delayed audio codec disabling takes time to release AUDIO power domain ref-count, using igt_wait to check lpsp after disabling all screens.
--- tests/i915/i915_pm_lpsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/i915/i915_pm_lpsp.c +2 -1
@@ -79,7 +79,8 @@ static void screens_disabled_subtest(data_t *data) }igt_require_f (valid_output,"No connected output found\n" ); -igt_assert_f (lpsp_is_enabled (data),"lpsp is not enabled\n%s:\n%s\n" , +igt_assert_f (igt_wait (lpsp_is_enabled (data),1000 ,100 ), +"lpsp is not enabled\n%s:\n%s\n" ,PWR_DOMAIN_INFO , data->pwr_dmn_info =igt_sysfs_get (data->debugfs_fd,PWR_DOMAIN_INFO )); }
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 4/5] tests/i915_pm_lpsp: screens-disabled subtest use igt_wait
Quoted 15 lines · Anshuman Gupta
When all screens are disabled, it takes some time to release eDP/DP AUX IO power domain ref count. Also, delayed audio codec disabling takes time to release AUDIO power domain ref-count, using
igt_waitto check lpsp after disabling all screens.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/i915/i915_pm_lpsp.c +0
-0
tests/i915/i915_pm_lpsp.c static void screens_disabled_subtest(data_t *data) · line 82
Quoted 5 lines
tests/i915/i915_pm_lpsp.c +1
-1@@ -79,7 +79,8 @@ static void screens_disabled_subtest(data_t *data) }igt_require_f (valid_output,"No connected output found\n" ); - igt_assert_f(lpsp_is_enabled(data), "lpsp is not enabled\n%s:\n%s\n", + igt_assert_f(igt_wait(lpsp_is_enabled(data), 1000, 100),
Better to add code-comment here how the above time is calculated. Is it based on observation or captured anywhere?
Regards,
Animesh
tests/i915/i915_pm_lpsp.c static void screens_disabled_subtest(data_t *data) · line 86
Quoted 4 lines
tests/i915/i915_pm_lpsp.c +1
-0+"lpsp is not enabled\n%s:\n%s\n" ,PWR_DOMAIN_INFO , data->pwr_dmn_info = igt_sysfs_get(data->debugfs_fd, PWR_DOMAIN_INFO)); }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v5 4/5] tests/i915_pm_lpsp: screens-disabled subtest use igt_wait
Quoted 12 lines · Animesh
Quoted 10 lines · Anshuman Gupta
When all screens are disabled, it takes some time to release eDP/DP AUX IO power domain ref count. Also, delayed audio codec disabling takes time to release AUDIO power domain ref-count, using
igt_waitto check lpsp after disabling all screens.Signed-off-by Anshuman Gupta <[email protected]>--- tests/i915/i915_pm_lpsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 11 lines
tests/i915/i915_pm_lpsp.c static void screens_disabled_subtest(data_t *data) · line 81
Quoted 9 lines
tests/i915/i915_pm_lpsp.c +1
-1@@ -79,7 +79,8 @@ static void screens_disabled_subtest(data_t *data) }igt_require_f (valid_output,"No connected output found\n" ); - igt_assert_f(lpsp_is_enabled(data), "lpsp is not enabled\n%s:\n%s\n", + igt_assert_f(igt_wait(lpsp_is_enabled(data), 1000, 100),Better to add code-comment here how the above time is calculated. Is it based on observation or captured anywhere?
Thaks for review i will add a code comment here.
thanks,
Anshuman Gupta.
Quoted 8 lines
Regards,
Animeshtests/i915/i915_pm_lpsp.c static void screens_disabled_subtest(data_t *data) · line 86
Quoted 4 lines
tests/i915/i915_pm_lpsp.c +1
-0+"lpsp is not enabled\n%s:\n%s\n" ,PWR_DOMAIN_INFO , data->pwr_dmn_info = igt_sysfs_get(data->debugfs_fd, PWR_DOMAIN_INFO)); }
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v5 5/5 tests/i915_pm_rpm: lpsp/non-lpsp screen mode_set_data
In reply to Anshuman GuptaInitialize the mode set params for lpsp/non-lpsp screen based upon their output lpsp capability instead of edp/non-edp output type.
v2:
- CI failures fixup.
v3:
- changes according to lib function igt_output_is_lpsp_capable prefix chnaged to i915_output_is_lpsp_capable.
--- tests/i915/i915_pm_rpm.c | 53 +++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 23 deletions(-)
tests/i915/i915_pm_rpm.c +30 -23
@@ -94,6 +94,7 @@ struct mode_set_data {drmModeResPtr res;drmModeConnectorPtr connectors[MAX_CONNECTORS ];drmModePropertyBlobPtr edids[MAX_CONNECTORS ]; +igt_display_t display;uint32_t devid; };
@@ -254,29 +255,29 @@ static bool init_modeset_params_for_type(struct mode_set_data *data, {drmModeConnectorPtr connector =NULL ;drmModeModeInfoPtr mode =NULL ; +igt_output_t *output =NULL ; +igt_display_t *display = &data->display; -if (!data->res) +if (!data->res || !display)return false; -for (int i =0 ; i < data->res->count_connectors; i++) { -drmModeConnectorPtr c = data->connectors[i]; +for_each_connected_output (display, output) { +drmModeConnectorPtr c = output->config.connector;if (type ==SCREEN_TYPE_LPSP && - c->connector_type != DRM_MODE_CONNECTOR_eDP) + !i915_output_is_lpsp_capable (drm_fd, output))continue ;if (type ==SCREEN_TYPE_NON_LPSP && - c->connector_type == DRM_MODE_CONNECTOR_eDP) +i915_output_is_lpsp_capable (drm_fd, output))continue ; -if (c->connection ==DRM_MODE_CONNECTED && c->count_modes) { - connector = c; - mode = &c->modes[0 ]; -break ; - } + connector = c; + mode =igt_output_get_mode (output); +break ; } -if (!connector) +if (!connector || !mode)return false; igt_create_pattern_fb(drm_fd, mode->hdisplay, mode->vdisplay,
@@ -397,6 +398,7 @@ static void init_mode_set_data(struct mode_set_data *data)kmstest_set_vt_graphics_mode (); } +igt_display_require (&data->display, drm_fd); data->devid =intel_get_drm_devid (drm_fd);init_modeset_cached_params (&ms_data); }
@@ -410,6 +412,8 @@ static void fini_mode_set_data(struct mode_set_data *data) }drmModeFreeResources (data->res); } + +igt_display_fini (&data->display); }static void get_drm_info (struct compare_data *data)
@@ -760,7 +764,7 @@ static void dump_file(int dir, const char *filename)free (contents); } -static bool setup_environment (void ) +static bool setup_environment (bool display_disabled) {if (has_runtime_pm) goto out;
@@ -772,7 +776,8 @@ static bool setup_environment(void) debugfs =igt_debugfs_dir (drm_fd);igt_require (debugfs !=-1 ); -init_mode_set_data (&ms_data); +if (!display_disabled) +init_mode_set_data (&ms_data);igt_pm_enable_sata_link_power_management ();
@@ -785,13 +790,14 @@ static bool setup_environment(void)igt_require (igt_pm_dmc_loaded (debugfs)); out: -disable_all_screens (&ms_data); +if (!display_disabled) +disable_all_screens (&ms_data);dump_file (debugfs,"i915_runtime_pm_status" );return wait_for_suspended (); } -static void teardown_environment (void ) +static void teardown_environment (bool display_disabled) {close (msr_fd);if (has_pc8)
@@ -801,7 +807,8 @@ static void teardown_environment(void)igt_pm_restore_sata_link_power_management (); -fini_mode_set_data (&ms_data); +if (!display_disabled) +fini_mode_set_data (&ms_data);close (debugfs);close (drm_fd);
@@ -2008,7 +2015,7 @@ static struct option long_options[] = { igt_main_args("", long_options, help_str, opt_handler, NULL) { igt_subtest("basic-rte") { -igt_assert (setup_environment ()); +igt_assert (setup_environment (false));basic_subtest (); }
@@ -2016,7 +2023,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)* PC8+. We don't want bug reports from cases where the machine is just * not properly configured. */ igt_fixture -igt_require (setup_environment ()); +igt_require (setup_environment (false ));if (stay)igt_subtest ("stay" )
@@ -2146,7 +2153,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) }igt_fixture -teardown_environment (); +teardown_environment (false ); igt_subtest("module-reload") {igt_debug ("Reload w/o display\n" );
@@ -2155,9 +2162,9 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)igt_kmsg (KMSG_INFO "Reloading i915 w/o display\n" );igt_assert_eq (igt_i915_driver_load ("disable_display=1 mmio_debug=-1" ),0 ); -igt_assert (setup_environment ()); +igt_assert (setup_environment (true));igt_assert (igt_wait (device_in_pci_d3 (),2000 ,100 )); -teardown_environment (); +teardown_environment (true);igt_debug ("Reload as normal\n" );igt_i915_driver_unload ();
@@ -2165,11 +2172,11 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)igt_kmsg (KMSG_INFO "Reloading i915 as normal\n" );igt_assert_eq (igt_i915_driver_load ("mmio_debug=-1" ),0 ); -igt_assert (setup_environment ()); +igt_assert (setup_environment (false));igt_assert (igt_wait (device_in_pci_d3 (),2000 ,100 ));if (enable_one_screen_with_type (&ms_data,SCREEN_TYPE_ANY ))drm_resources_equal_subtest (); -teardown_environment (); +teardown_environment (false);/* Remove our mmio_debugging module */ igt_i915_driver_unload ();
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for lpsp platform agnostic support (rev7)
In reply to Anshuman Gupta== Series Details ==
== Series Details ==
Series: lpsp platform agnostic support (rev7)
URL : https://patchwork.freedesktop.org/series/74647/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5582 -> IGTPW_4438
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4438 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4438, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4438:
### IGT changes ###
#### Possible regressions ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-glk-dsi: [PASS][1] -> [FAIL][2] +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-glk-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-glk-dsi/igt@[email protected]
- fi-hsw-peppy: [PASS][3] -> [FAIL][4] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-hsw-peppy/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-hsw-peppy/igt@[email protected]
- fi-icl-u2: [PASS][5] -> [FAIL][6] +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-icl-u2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-icl-u2/igt@[email protected]
- fi-kbl-r: [PASS][7] -> [FAIL][8] +2 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-r/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-r/igt@[email protected]
- fi-byt-n2820: [PASS][9] -> [FAIL][10] +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-byt-n2820/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-byt-n2820/igt@[email protected]
- fi-icl-guc: [PASS][11] -> [FAIL][12] +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-icl-guc/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-icl-guc/igt@[email protected]
- fi-bdw-5557u: [PASS][13] -> [FAIL][14] +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-bdw-5557u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-bdw-5557u/igt@[email protected]
- fi-kbl-soraka: [PASS][15] -> [FAIL][16] +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-soraka/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-soraka/igt@[email protected]
* igt@i915_pm_rpm@basic-rte:
- fi-kbl-7500u: [PASS][17] -> [FAIL][18] +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-7500u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-7500u/igt@[email protected]
- fi-skl-lmem: [PASS][19] -> [FAIL][20] +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-skl-lmem/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-skl-lmem/igt@[email protected]
- fi-cml-u2: [PASS][21] -> [FAIL][22] +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cml-u2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cml-u2/igt@[email protected]
- fi-bxt-dsi: [PASS][23] -> [FAIL][24] +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-bxt-dsi/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-bxt-dsi/igt@[email protected]
- fi-byt-j1900: [PASS][25] -> [FAIL][26] +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-byt-j1900/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-byt-j1900/igt@[email protected]
- fi-whl-u: [PASS][27] -> [FAIL][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-whl-u/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-whl-u/igt@[email protected]
- fi-kbl-x1275: [PASS][29] -> [FAIL][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-x1275/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-x1275/igt@[email protected]
- fi-apl-guc: [PASS][31] -> [FAIL][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-apl-guc/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-apl-guc/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [PASS][33] -> [FAIL][34] +2 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cfl-8109u/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cfl-8109u/igt@[email protected]
- fi-skl-6600u: [PASS][35] -> [FAIL][36] +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-skl-6600u/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-skl-6600u/igt@[email protected]
- fi-tgl-y: [PASS][37] -> [FAIL][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-tgl-y/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-tgl-y/igt@[email protected]
- fi-cfl-8700k: [PASS][39] -> [FAIL][40] +2 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cfl-8700k/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cfl-8700k/igt@[email protected]
- fi-bsw-kefka: [PASS][41] -> [FAIL][42] +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-bsw-kefka/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-bsw-kefka/igt@[email protected]
- fi-icl-dsi: [PASS][43] -> [FAIL][44] +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-icl-dsi/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-icl-dsi/igt@[email protected]
- fi-skl-guc: [PASS][45] -> [FAIL][46] +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-skl-guc/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-skl-guc/igt@[email protected]
- fi-bsw-n3050: [PASS][47] -> [FAIL][48] +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-bsw-n3050/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-bsw-n3050/igt@[email protected]
- fi-skl-6700k2: [PASS][49] -> [FAIL][50] +2 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-skl-6700k2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-skl-6700k2/igt@[email protected]
- fi-cfl-guc: [PASS][51] -> [FAIL][52] +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cfl-guc/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cfl-guc/igt@[email protected]
- fi-icl-y: [PASS][53] -> [FAIL][54] +2 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-icl-y/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-icl-y/igt@[email protected]
- fi-cml-s: [PASS][55] -> [FAIL][56] +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cml-s/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cml-s/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-snb-2600: [SKIP][57] ([fdo#109271]) -> [FAIL][58] +2 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-snb-2600/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-snb-2600/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-ilk-650: [SKIP][59] ([fdo#109271]) -> [FAIL][60] +2 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-ilk-650/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-ilk-650/igt@[email protected]
- fi-elk-e7500: [SKIP][61] ([fdo#109271]) -> [FAIL][62] +2 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-elk-e7500/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-elk-e7500/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_pm_rpm@basic-rte:
- {fi-ehl-1}: [PASS][63] -> [FAIL][64] +2 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-ehl-1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-ehl-1/igt@[email protected]
- {fi-tgl-u}: [PASS][65] -> [FAIL][66] +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-tgl-u/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-tgl-u/igt@[email protected]
- {fi-tgl-dsi}: [PASS][67] -> [FAIL][68] +2 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-tgl-dsi/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-tgl-dsi/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_4438 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-whl-u: [PASS][69] -> [FAIL][70] ([i915#95])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-whl-u/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-whl-u/igt@[email protected]
- fi-kbl-x1275: [PASS][71] -> [FAIL][72] ([i915#62] / [i915#95])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-x1275/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-x1275/igt@[email protected]
#### Possible fixes ####
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-cml-u2: [DMESG-WARN][73] ([IGT#4]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-cml-u2/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-cml-u2/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@module-reload:
- fi-kbl-x1275: [SKIP][75] ([fdo#109271]) -> [FAIL][76] ([i915#62])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5582/fi-kbl-x1275/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#4]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/4
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (53 -> 45)
------------------------------
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-skl-6770hq fi-byt-squawks fi-bsw-cyan fi-kbl-8809g fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5582 -> IGTPW_4438
CI-20190529: 20190529
CI_DRM_8281: 4d6c69198d6840226f92f2c4645e2c8260ca3e83 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4438: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/index.html
IGT_5582: 66a7b20f4a1f95320c0d7c8c9704749001487783 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@i915_pm_lpsp@kms-lpsp
-igt@i915_pm_lpsp@edp-native
-igt@i915_pm_lpsp@edp-panel-fitter
-igt@i915_pm_lpsp@non-edp
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4438/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for lpsp platform agnostic support (rev8)
In reply to Anshuman Gupta== Series Details ==
== Series Details ==
Series: lpsp platform agnostic support (rev8)
URL : https://patchwork.freedesktop.org/series/74647/
State : warning
== Summary ==
Did not get list of undocumented tests for this run, something is wrong!
Other than that, pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/132484 for the overview.
containers:igt has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/2289958):
4a509257e8f228975e8d3a6dfc8662956aaa0621998b4a66e7670c2b2a996b57
STEP 5: ENV LD_LIBRARY_PATH="/opt/igt/lib:/opt/igt/lib64:${LD_LIBRARY_PATH}"
84516d96e31c8a35ae8211ab2ad9ba61fd77bf53e2e8d8c6c654f74049f30c89
STEP 6: ENV IGT_TEST_ROOT="/opt/igt/libexec/igt-gpu-tools"
c62a4309e9c2caafa4c80a1404cc5f87d4e1981418075642a6cbe5b984fd6c4c
STEP 7: CMD docker-help.sh
STEP 8: COMMIT registry.freedesktop.org/gfx-ci/igt-ci-tags/igt:commit-91cd832c8024bc4e03537095ea2ad473a8575675
d1856d9fda721b5993623699fcf2a37aa6901d9b6a2374b2311f2fa156d2c412
Getting image source signatures
Copying blob sha256:2f6357b310fc9944464328923ebb6c912fccc71897166789e96d2894c07c6f44
Copying blob sha256:3504a8337d3b7eaabfd338d6a971d02441d28ebef8bd81f730d87f936ed58079
Copying blob sha256:12ed85123637d650138fcc3efcf9f20b41d76447302ffd104b28a3b2165dfedb
Error: Error copying image to the remote destination: Error writing blob: Patch https://registry.freedesktop.org/v2/gfx-ci/igt-ci-tags/igt/blobs/uploads/f99ed8da-e6f7-49c6-853e-0b4dba4ddddb?_state=wUh9d9EcLzjRR7q2-qwhPEENFSUCXmhWs2iH4LYG98R7Ik5hbWUiOiJnZngtY2kvaWd0LWNpLXRhZ3MvaWd0IiwiVVVJRCI6ImY5OWVkOGRhLWU2ZjctNDljNi04NTNlLTBiNGRiYTRkZGRkYiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyMC0wNC0xNVQxMzo1MToyNS41MzA5ODkwMjdaIn0%3D: EOF section_end:1586958701:build_script
section_start:1586958701:after_script
section_end:1586958703:after_script
section_start:1586958703:upload_artifacts_on_failure
section_end:1586958704:upload_artifacts_on_failure
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/132484
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for lpsp platform agnostic support (rev8)
In reply to Anshuman Gupta== Series Details ==
== Series Details ==
Series: lpsp platform agnostic support (rev8)
URL : https://patchwork.freedesktop.org/series/74647/
State : success
== Summary ==
CI Bug Log - changes from IGT_5591 -> IGTPW_4467
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
Known issues
------------
Here are the changes found in IGTPW_4467 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@basic-rte:
- fi-icl-dsi: [PASS][1] -> [INCOMPLETE][2] ([i915#189])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/fi-icl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/fi-icl-dsi/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-kbl-8809g: [PASS][3] -> [SKIP][4] ([fdo#109271])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/fi-kbl-8809g/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/fi-kbl-8809g/igt@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#189]: https://gitlab.freedesktop.org/drm/intel/issues/189
Participating hosts (52 -> 44)
------------------------------
Missing (8): fi-bdw-samus fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-kbl-7560u fi-byt-clapper fi-skl-6600u
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5591 -> IGTPW_4467
CI-20190529: 20190529
CI_DRM_8301: 7d2bdd2df0d18945bb274de8bc7560e14779e346 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4467: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
IGT_5591: f57b7fdbe8d04ce3edf0433a03c7d9d5c3d96680 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@i915_pm_lpsp@kms-lpsp
-igt@i915_pm_lpsp@edp-native
-igt@i915_pm_lpsp@edp-panel-fitter
-igt@i915_pm_lpsp@non-edp
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for lpsp platform agnostic support (rev8)
In reply to Anshuman Gupta== Series Details ==
== Series Details ==
Series: lpsp platform agnostic support (rev8)
URL : https://patchwork.freedesktop.org/series/74647/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5591_full -> IGTPW_4467_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4467_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4467_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4467_full:
### IGT changes ###
#### Possible regressions ####
* {igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-edp-1} (NEW):
- shard-tglb: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb2/igt@i915_pm_lpsp@[email protected]
- shard-iclb: NOTRUN -> [SKIP][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb6/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_lpsp@screens-disabled:
- shard-hsw: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-hsw4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-hsw1/igt@[email protected]
* igt@i915_pm_rpm@dpms-lpsp:
- shard-iclb: [PASS][5] -> [SKIP][6] +4 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb6/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb7/igt@[email protected]
#### Warnings ####
* igt@i915_pm_lpsp@screens-disabled:
- shard-tglb: [SKIP][7] ([fdo#109301]) -> [FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb1/igt@[email protected]
- shard-snb: [SKIP][9] ([fdo#109271]) -> [FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-snb5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-snb2/igt@[email protected]
- shard-glk: [SKIP][11] ([fdo#109271]) -> [FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk9/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk4/igt@[email protected]
- shard-iclb: [SKIP][13] ([fdo#109301]) -> [FAIL][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb4/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2}:
- shard-glk: [PASS][15] -> [FAIL][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk9/igt@kms_flip@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk5/igt@kms_flip@[email protected]
New tests
---------
New tests have been introduced between IGT_5591_full and IGTPW_4467_full:
### New IGT tests (20) ###
* igt@i915_pm_lpsp@kms-lpsp:
- Statuses :
- Exec time: [None] s
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp-1:
- Statuses : 2 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-edp-1:
- Statuses : 2 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a-1:
- Statuses : 2 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a-2:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-vga-1:
- Statuses : 2 skip(s)
- Exec time: [0.0] s
* igt@kms_flip@2x-flip-vs-panning-interruptible@ab-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [10.56] s
* igt@kms_flip@2x-flip-vs-panning-interruptible@ac-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [10.52] s
* igt@kms_flip@2x-flip-vs-panning-interruptible@bc-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [10.46] s
* igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible@ab-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [1.47] s
* igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible@ac-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [1.19] s
* igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible@bc-hdmi-a1-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [1.15] s
* igt@kms_flip@dpms-off-confusion-interruptible@a-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [5.28] s
* igt@kms_flip@dpms-off-confusion-interruptible@b-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [5.26] s
* igt@kms_flip@dpms-off-confusion-interruptible@c-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [5.27] s
* igt@kms_flip@dpms-off-confusion-interruptible@d-edp1:
- Statuses : 1 pass(s)
- Exec time: [8.70] s
* igt@kms_flip@dpms-vs-vblank-race-interruptible@a-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [2.10] s
* igt@kms_flip@dpms-vs-vblank-race-interruptible@b-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [2.27] s
* igt@kms_flip@dpms-vs-vblank-race-interruptible@c-hdmi-a2:
- Statuses : 1 pass(s)
- Exec time: [2.20] s
* igt@kms_flip@dpms-vs-vblank-race-interruptible@d-edp1:
- Statuses : 1 pass(s)
- Exec time: [3.65] s
Known issues
------------
Here are the changes found in IGTPW_4467_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_params@invalid-bsd-ring:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109276])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb4/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb6/igt@[email protected]
* igt@i915_pm_rpm@gem-idle:
- shard-iclb: [PASS][19] -> [SKIP][20] ([i915#579])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb3/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb4/igt@[email protected]
- shard-glk: [PASS][21] -> [SKIP][22] ([fdo#109271])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk6/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk4/igt@[email protected]
- shard-tglb: [PASS][23] -> [SKIP][24] ([i915#579])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb8/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb1/igt@[email protected]
- shard-hsw: [PASS][25] -> [SKIP][26] ([fdo#109271])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-hsw1/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-hsw1/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-tglb: [PASS][27] -> [SKIP][28] ([i915#1397]) +4 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb7/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb6/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-apl: [PASS][29] -> [DMESG-WARN][30] ([i915#180]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-offscreen:
- shard-kbl: [PASS][31] -> [FAIL][32] ([i915#54] / [i915#93] / [i915#95]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-random:
- shard-apl: [PASS][33] -> [FAIL][34] ([i915#54] / [i915#95]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][35] -> [DMESG-WARN][36] ([i915#180]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl3/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-64x21-sliding:
- shard-glk: [PASS][37] -> [FAIL][38] ([i915#54])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk5/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk8/igt@[email protected]
- shard-apl: [PASS][39] -> [FAIL][40] ([i915#54])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl8/igt@[email protected]
- shard-kbl: [PASS][41] -> [FAIL][42] ([i915#54])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl6/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-pwrite-xtiled:
- shard-glk: [PASS][43] -> [FAIL][44] ([i915#52] / [i915#54])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-move:
- shard-apl: [PASS][45] -> [FAIL][46] ([i915#49])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl3/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl7/igt@[email protected]
- shard-kbl: [PASS][47] -> [FAIL][48] ([i915#49])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl2/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [PASS][49] -> [FAIL][50] ([i915#53] / [i915#93] / [i915#95])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl7/igt@[email protected]
- shard-apl: [PASS][51] -> [FAIL][52] ([i915#53] / [i915#95])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl4/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-apl: [PASS][53] -> [FAIL][54] ([fdo#108145] / [i915#265] / [i915#95])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl3/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl1/igt@[email protected]
* igt@kms_prime@basic-crc:
- shard-apl: [PASS][55] -> [FAIL][56] ([i915#1031] / [i915#95])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl4/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl6/igt@[email protected]
- shard-kbl: [PASS][57] -> [FAIL][58] ([i915#1031] / [i915#93] / [i915#95])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl7/igt@[email protected]
* igt@perf@gen12-mi-rpc:
- shard-tglb: [PASS][59] -> [FAIL][60] ([i915#1085])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb7/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb7/igt@[email protected]
#### Possible fixes ####
* igt@gen9_exec_parse@allowed-all:
- shard-kbl: [DMESG-WARN][61] ([i915#716]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl3/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl7/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][63] ([i915#454]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb3/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb2/igt@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglb: [SKIP][65] ([fdo#111644] / [i915#1397]) -> [PASS][66] +4 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb7/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb5/igt@[email protected]
* igt@i915_pm_rpm@modeset-non-lpsp:
- shard-iclb: [SKIP][67] ([fdo#110892]) -> [PASS][68] +4 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb3/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb1/igt@[email protected]
* igt@kms_big_fb@linear-32bpp-rotate-180:
- shard-apl: [FAIL][69] ([i915#1119] / [i915#95]) -> [PASS][70] +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl2/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl7/igt@[email protected]
- shard-kbl: [FAIL][71] ([i915#1119] / [i915#93] / [i915#95]) -> [PASS][72] +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl3/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x21-onscreen:
- shard-kbl: [FAIL][73] ([i915#54] / [i915#93] / [i915#95]) -> [PASS][74] +2 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl6/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-apl: [DMESG-WARN][75] ([i915#180]) -> [PASS][76] +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl4/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl7/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [FAIL][77] ([i915#72]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk6/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk7/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-render-untiled:
- shard-glk: [FAIL][79] ([i915#52] / [i915#54]) -> [PASS][80] +6 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk5/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk7/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-untiled:
- shard-apl: [FAIL][81] ([i915#52] / [i915#54] / [i915#95]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl7/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl8/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-tglb: [INCOMPLETE][83] ([i915#456] / [i915#460]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-tglb8/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-tglb8/igt@[email protected]
* {igt@kms_flip@flip-vs-expired-vblank@a-hdmi-a1}:
- shard-glk: [FAIL][85] -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk5/igt@kms_flip@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk4/igt@kms_flip@[email protected]
* {igt@kms_flip@flip-vs-suspend-interruptible@a-dp1}:
- shard-kbl: [DMESG-WARN][87] ([i915#180]) -> [PASS][88] +7 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl7/igt@kms_flip@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl1/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-cpu:
- shard-glk: [FAIL][89] ([i915#49]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-glk4/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-cpu.html
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-glk5/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-mmap-cpu.html
* igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
- shard-kbl: [FAIL][91] ([i915#53] / [i915#93] / [i915#95]) -> [PASS][92]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl1/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl2/igt@[email protected]
- shard-apl: [FAIL][93] ([i915#53] / [i915#95]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-kbl: [FAIL][95] ([fdo#108145] / [i915#265] / [i915#93] / [i915#95]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl6/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl4/igt@[email protected]
- shard-apl: [FAIL][97] ([fdo#108145] / [i915#265] / [i915#95]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl8/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl4/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [SKIP][99] ([fdo#109441]) -> [PASS][100] +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-iclb3/igt@kms_psr@psr2_sprite_mmap_gtt.html
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
#### Warnings ####
* igt@i915_pm_dc@dc6-psr:
- shard-snb: [INCOMPLETE][101] ([i915#82]) -> [SKIP][102] ([fdo#109271])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-snb5/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-snb6/igt@[email protected]
* igt@kms_fbcon_fbt@fbc:
- shard-apl: [FAIL][103] ([i915#95]) -> [FAIL][104] ([i915#1525] / [i915#95])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl2/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl2/igt@[email protected]
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [FAIL][105] ([i915#95]) -> [DMESG-FAIL][106] ([i915#180] / [i915#95])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-apl1/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-apl8/igt@[email protected]
- shard-kbl: [FAIL][107] ([i915#93] / [i915#95]) -> [DMESG-FAIL][108] ([i915#180] / [i915#95])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl4/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl7/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][109], [FAIL][110]) ([i915#1423] / [i915#716] / [i915#92]) -> [FAIL][111] ([i915#1423] / [i915#92])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl4/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5591/shard-kbl3/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/shard-kbl4/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109301]: https://bugs.freedesktop.org/show_bug.cgi?id=109301
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110892]: https://bugs.freedesktop.org/show_bug.cgi?id=110892
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[i915#1031]: https://gitlab.freedesktop.org/drm/intel/issues/1031
[i915#1085]: https://gitlab.freedesktop.org/drm/intel/issues/1085
[i915#1119]: https://gitlab.freedesktop.org/drm/intel/issues/1119
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1423]: https://gitlab.freedesktop.org/drm/intel/issues/1423
[i915#1525]: https://gitlab.freedesktop.org/drm/intel/issues/1525
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#456]: https://gitlab.freedesktop.org/drm/intel/issues/456
[i915#460]: https://gitlab.freedesktop.org/drm/intel/issues/460
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#53]: https://gitlab.freedesktop.org/drm/intel/issues/53
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#72]: https://gitlab.freedesktop.org/drm/intel/issues/72
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (8 -> 8)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5591 -> IGTPW_4467
CI-20190529: 20190529
CI_DRM_8301: 7d2bdd2df0d18945bb274de8bc7560e14779e346 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4467: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
IGT_5591: f57b7fdbe8d04ce3edf0433a03c7d9d5c3d96680 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4467/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev