Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
@ 2019-12-09  3:51 Karthik B S
  2019-12-09  4:23 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Karthik B S @ 2019-12-09  3:51 UTC (permalink / raw)
  To: igt-dev

Loop through the connector's modes for both the tiled connectors and 
find a mode that matches the tile h size and tile v size.
Request a modeset on this mode for both tiled connectors.

Signed-off-by: Karthik B S <karthik.b.s@intel.com>
---
 tests/kms_dp_tiled_display.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_dp_tiled_display.c
index 175ff12f..c86a055e 100644
--- a/tests/kms_dp_tiled_display.c
+++ b/tests/kms_dp_tiled_display.c
@@ -207,9 +207,10 @@ static void test_cleanup(data_t *data)
 
 static void setup_mode(data_t *data)
 {
-	int count = 0, prev = 0;
-	bool pipe_in_use = false;
+	int count = 0, prev = 0, i = 0;
+	bool pipe_in_use = false, found = false;
 	enum pipe pipe;
+	drmModeModeInfo *mode;
 	igt_output_t *output;
 	data_connector_t *conns = data->conns;
 
@@ -226,6 +227,8 @@ static void setup_mode(data_t *data)
 
 		for_each_pipe(data->display, pipe) {
 			pipe_in_use = false;
+			found = false;
+
 			if (count > 0) {
 				for (prev = count - 1; prev >= 0; prev--) {
 					if (pipe == conns[prev].pipe) {
@@ -247,6 +250,17 @@ static void setup_mode(data_t *data)
 			}
 		}
 		igt_require(conns[count].pipe != PIPE_NONE);
+
+		for (i = 0; i < conns[count].connector->count_modes; i++) {
+			mode = &conns[count].connector->modes[i];
+			if (mode->vdisplay == conns[count].tile.tile_v_size &&
+			    mode->hdisplay == conns[count].tile.tile_h_size) {
+				found = true;
+				break;
+			}
+		}
+		igt_require(found);
+		igt_output_override_mode(output, mode);
 	}
 	igt_display_commit_atomic(data->display, DRM_MODE_ATOMIC_ALLOW_MODESET,
 				  NULL);
-- 
2.22.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
  2019-12-09  3:51 [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size Karthik B S
@ 2019-12-09  4:23 ` Patchwork
  2019-12-13  1:54   ` Manasi Navare
  2019-12-10 23:25 ` [igt-dev] [PATCH i-g-t] " Manasi Navare
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Patchwork @ 2019-12-09  4:23 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

== Series Details ==

Series: tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
URL   : https://patchwork.freedesktop.org/series/70606/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_7511 -> IGTPW_3827
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with IGTPW_3827 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_3827, 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_3827/index.html

Known issues
------------

  Here are the changes found in IGTPW_3827 that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@gem_basic@bad-close:
    - fi-bxt-dsi:         [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-bxt-dsi/igt@gem_basic@bad-close.html
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-bxt-dsi/igt@gem_basic@bad-close.html

  
#### Possible fixes ####

  * igt@i915_selftest@live_gem_contexts:
    - fi-byt-n2820:       [INCOMPLETE][3] ([i915#45]) -> [PASS][4]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html

  
  [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
  [i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45


Participating hosts (26 -> 9)
------------------------------

  ERROR: It appears as if the changes made in IGTPW_3827 prevented too many machines from booting.

  Missing    (17): fi-kbl-soraka fi-ilk-m540 fi-bdw-5557u fi-bdw-gvtdvm fi-glk-dsi fi-byt-squawks fi-bwr-2160 fi-apl-guc fi-bsw-cyan fi-ctg-p8600 fi-kbl-guc fi-ivb-3770 fi-pnv-d510 fi-bsw-kefka fi-byt-clapper fi-bdw-samus fi-snb-2600 


Build changes
-------------

  * CI: CI-20190529 -> None
  * IGT: IGT_5339 -> IGTPW_3827

  CI-20190529: 20190529
  CI_DRM_7511: 04ca2c0fb47c3d394a364f5f71943ca9f440dda7 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_3827: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
  IGT_5339: d45e11f8e10a4c5775372002ec89974ce3d97b27 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
  2019-12-09  3:51 [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size Karthik B S
  2019-12-09  4:23 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
@ 2019-12-10 23:25 ` Manasi Navare
  2019-12-13  3:08 ` Manasi Navare
  2019-12-13  8:26 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  3 siblings, 0 replies; 6+ messages in thread
From: Manasi Navare @ 2019-12-10 23:25 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

On Mon, Dec 09, 2019 at 09:21:18AM +0530, Karthik B S wrote:
> Loop through the connector's modes for both the tiled connectors and 
> find a mode that matches the tile h size and tile v size.
> Request a modeset on this mode for both tiled connectors.
> 
> Signed-off-by: Karthik B S <karthik.b.s@intel.com>

Looks good to me,
Could you test if the kernel taints go away with my new patch series:
https://patchwork.freedesktop.org/series/70722/

Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>

Manasi


> ---
>  tests/kms_dp_tiled_display.c | 18 ++++++++++++++++--
>  1 file changed, 16 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_dp_tiled_display.c
> index 175ff12f..c86a055e 100644
> --- a/tests/kms_dp_tiled_display.c
> +++ b/tests/kms_dp_tiled_display.c
> @@ -207,9 +207,10 @@ static void test_cleanup(data_t *data)
>  
>  static void setup_mode(data_t *data)
>  {
> -	int count = 0, prev = 0;
> -	bool pipe_in_use = false;
> +	int count = 0, prev = 0, i = 0;
> +	bool pipe_in_use = false, found = false;
>  	enum pipe pipe;
> +	drmModeModeInfo *mode;
>  	igt_output_t *output;
>  	data_connector_t *conns = data->conns;
>  
> @@ -226,6 +227,8 @@ static void setup_mode(data_t *data)
>  
>  		for_each_pipe(data->display, pipe) {
>  			pipe_in_use = false;
> +			found = false;
> +
>  			if (count > 0) {
>  				for (prev = count - 1; prev >= 0; prev--) {
>  					if (pipe == conns[prev].pipe) {
> @@ -247,6 +250,17 @@ static void setup_mode(data_t *data)
>  			}
>  		}
>  		igt_require(conns[count].pipe != PIPE_NONE);
> +
> +		for (i = 0; i < conns[count].connector->count_modes; i++) {
> +			mode = &conns[count].connector->modes[i];
> +			if (mode->vdisplay == conns[count].tile.tile_v_size &&
> +			    mode->hdisplay == conns[count].tile.tile_h_size) {
> +				found = true;
> +				break;
> +			}
> +		}
> +		igt_require(found);
> +		igt_output_override_mode(output, mode);
>  	}
>  	igt_display_commit_atomic(data->display, DRM_MODE_ATOMIC_ALLOW_MODESET,
>  				  NULL);
> -- 
> 2.22.0
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
  2019-12-09  4:23 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
@ 2019-12-13  1:54   ` Manasi Navare
  0 siblings, 0 replies; 6+ messages in thread
From: Manasi Navare @ 2019-12-13  1:54 UTC (permalink / raw)
  To: igt-dev

This looks like an unrelated failure and a false positive

Manasi

On Mon, Dec 09, 2019 at 04:23:42AM +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
> URL   : https://patchwork.freedesktop.org/series/70606/
> State : failure
> 
> == Summary ==
> 
> CI Bug Log - changes from CI_DRM_7511 -> IGTPW_3827
> ====================================================
> 
> Summary
> -------
> 
>   **FAILURE**
> 
>   Serious unknown changes coming with IGTPW_3827 absolutely need to be
>   verified manually.
>   
>   If you think the reported changes have nothing to do with the changes
>   introduced in IGTPW_3827, 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_3827/index.html
> 
> Known issues
> ------------
> 
>   Here are the changes found in IGTPW_3827 that come from known issues:
> 
> ### IGT changes ###
> 
> #### Issues hit ####
> 
>   * igt@gem_basic@bad-close:
>     - fi-bxt-dsi:         [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
>    [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-bxt-dsi/igt@gem_basic@bad-close.html
>    [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-bxt-dsi/igt@gem_basic@bad-close.html
> 
>   
> #### Possible fixes ####
> 
>   * igt@i915_selftest@live_gem_contexts:
>     - fi-byt-n2820:       [INCOMPLETE][3] ([i915#45]) -> [PASS][4]
>    [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
>    [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
> 
>   
>   [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
>   [i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45
> 
> 
> Participating hosts (26 -> 9)
> ------------------------------
> 
>   ERROR: It appears as if the changes made in IGTPW_3827 prevented too many machines from booting.
> 
>   Missing    (17): fi-kbl-soraka fi-ilk-m540 fi-bdw-5557u fi-bdw-gvtdvm fi-glk-dsi fi-byt-squawks fi-bwr-2160 fi-apl-guc fi-bsw-cyan fi-ctg-p8600 fi-kbl-guc fi-ivb-3770 fi-pnv-d510 fi-bsw-kefka fi-byt-clapper fi-bdw-samus fi-snb-2600 
> 
> 
> Build changes
> -------------
> 
>   * CI: CI-20190529 -> None
>   * IGT: IGT_5339 -> IGTPW_3827
> 
>   CI-20190529: 20190529
>   CI_DRM_7511: 04ca2c0fb47c3d394a364f5f71943ca9f440dda7 @ git://anongit.freedesktop.org/gfx-ci/linux
>   IGTPW_3827: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
>   IGT_5339: d45e11f8e10a4c5775372002ec89974ce3d97b27 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
> 
> == Logs ==
> 
> For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
  2019-12-09  3:51 [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size Karthik B S
  2019-12-09  4:23 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2019-12-10 23:25 ` [igt-dev] [PATCH i-g-t] " Manasi Navare
@ 2019-12-13  3:08 ` Manasi Navare
  2019-12-13  8:26 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  3 siblings, 0 replies; 6+ messages in thread
From: Manasi Navare @ 2019-12-13  3:08 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

Thank you for the patch, pushed to igt

On Mon, Dec 09, 2019 at 09:21:18AM +0530, Karthik B S wrote:
> Loop through the connector's modes for both the tiled connectors and 
> find a mode that matches the tile h size and tile v size.
> Request a modeset on this mode for both tiled connectors.
> 
> Signed-off-by: Karthik B S <karthik.b.s@intel.com>
> ---
>  tests/kms_dp_tiled_display.c | 18 ++++++++++++++++--
>  1 file changed, 16 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_dp_tiled_display.c
> index 175ff12f..c86a055e 100644
> --- a/tests/kms_dp_tiled_display.c
> +++ b/tests/kms_dp_tiled_display.c
> @@ -207,9 +207,10 @@ static void test_cleanup(data_t *data)
>  
>  static void setup_mode(data_t *data)
>  {
> -	int count = 0, prev = 0;
> -	bool pipe_in_use = false;
> +	int count = 0, prev = 0, i = 0;
> +	bool pipe_in_use = false, found = false;
>  	enum pipe pipe;
> +	drmModeModeInfo *mode;
>  	igt_output_t *output;
>  	data_connector_t *conns = data->conns;
>  
> @@ -226,6 +227,8 @@ static void setup_mode(data_t *data)
>  
>  		for_each_pipe(data->display, pipe) {
>  			pipe_in_use = false;
> +			found = false;
> +
>  			if (count > 0) {
>  				for (prev = count - 1; prev >= 0; prev--) {
>  					if (pipe == conns[prev].pipe) {
> @@ -247,6 +250,17 @@ static void setup_mode(data_t *data)
>  			}
>  		}
>  		igt_require(conns[count].pipe != PIPE_NONE);
> +
> +		for (i = 0; i < conns[count].connector->count_modes; i++) {
> +			mode = &conns[count].connector->modes[i];
> +			if (mode->vdisplay == conns[count].tile.tile_v_size &&
> +			    mode->hdisplay == conns[count].tile.tile_h_size) {
> +				found = true;
> +				break;
> +			}
> +		}
> +		igt_require(found);
> +		igt_output_override_mode(output, mode);
>  	}
>  	igt_display_commit_atomic(data->display, DRM_MODE_ATOMIC_ALLOW_MODESET,
>  				  NULL);
> -- 
> 2.22.0
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
  2019-12-09  3:51 [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size Karthik B S
                   ` (2 preceding siblings ...)
  2019-12-13  3:08 ` Manasi Navare
@ 2019-12-13  8:26 ` Patchwork
  3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2019-12-13  8:26 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

== Series Details ==

Series: tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size
URL   : https://patchwork.freedesktop.org/series/70606/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_7511 -> IGTPW_3827
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with IGTPW_3827 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_3827, 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_3827/index.html

Known issues
------------

  Here are the changes found in IGTPW_3827 that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@gem_basic@bad-close:
    - fi-bxt-dsi:         [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-bxt-dsi/igt@gem_basic@bad-close.html
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-bxt-dsi/igt@gem_basic@bad-close.html

  
#### Possible fixes ####

  * igt@i915_selftest@live_gem_contexts:
    - fi-byt-n2820:       [INCOMPLETE][3] ([i915#45]) -> [PASS][4]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7511/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html

  
  [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
  [i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45


Participating hosts (26 -> 9)
------------------------------

  ERROR: It appears as if the changes made in IGTPW_3827 prevented too many machines from booting.

  Missing    (17): fi-kbl-soraka fi-ilk-m540 fi-bdw-5557u fi-bdw-gvtdvm fi-glk-dsi fi-byt-squawks fi-bwr-2160 fi-apl-guc fi-bsw-cyan fi-ctg-p8600 fi-kbl-guc fi-ivb-3770 fi-pnv-d510 fi-bsw-kefka fi-byt-clapper fi-bdw-samus fi-snb-2600 


Build changes
-------------

  * CI: CI-20190529 -> None
  * IGT: IGT_5339 -> IGTPW_3827

  CI-20190529: 20190529
  CI_DRM_7511: 04ca2c0fb47c3d394a364f5f71943ca9f440dda7 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_3827: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
  IGT_5339: d45e11f8e10a4c5775372002ec89974ce3d97b27 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3827/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-13  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09  3:51 [igt-dev] [PATCH i-g-t] tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size Karthik B S
2019-12-09  4:23 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2019-12-13  1:54   ` Manasi Navare
2019-12-10 23:25 ` [igt-dev] [PATCH i-g-t] " Manasi Navare
2019-12-13  3:08 ` Manasi Navare
2019-12-13  8:26 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox