public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Manasi Navare <manasi.d.navare@intel.com>
Cc: igt-dev@lists.freedesktop.org,
	Madhumitha Tolakanahalli Pradeep
	<madhumitha.tolakanahalli.pradeep@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] tests/kms_tiled_display: Get rid of DP stuff
Date: Mon, 14 Oct 2019 23:21:22 +0300	[thread overview]
Message-ID: <20191014202122.GY1208@intel.com> (raw)
In-Reply-To: <20191014195733.GC30388@intel.com>

On Mon, Oct 14, 2019 at 12:57:33PM -0700, Manasi Navare wrote:
> On Mon, Oct 14, 2019 at 09:13:15PM +0300, Ville Syrjala wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > 
> > There is nothing DP specific about the tile property. So
> > remove any mention of DP (and port sync which is an i915
> > hardware feature). Let's just talk about genlocked CRTCs
> > and tiled connectors, which is pretty generic.
> 
> But we currently dont support the trans port sync feature for other
> connectorrs other than DP so the test will fail so IMO, 
> currently it should only run for DP tiled connectors

That's an i915 specific limitation and if you want to check for that
then the check should be written as 'if (is_i915 && whatever)'.

> 
> even DP MST trans port sync might fail havent added this to MST yet

Right, so the check isn't correct even on i915 -> better to just nuke it.

> 
> Manasi
> 
> > 
> > Cc: Madhumitha Tolakanahalli Pradeep <madhumitha.tolakanahalli.pradeep@intel.com>
> > Cc: Manasi Navare <manasi.d.navare@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> >  tests/Makefile.sources                              |  2 +-
> >  .../{kms_dp_tiled_display.c => kms_tiled_display.c} | 13 +++----------
> >  tests/meson.build                                   |  2 +-
> >  3 files changed, 5 insertions(+), 12 deletions(-)
> >  rename tests/{kms_dp_tiled_display.c => kms_tiled_display.c} (96%)
> > 
> > diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> > index 343be050068c..3667393ab830 100644
> > --- a/tests/Makefile.sources
> > +++ b/tests/Makefile.sources
> > @@ -41,7 +41,6 @@ TESTS_progs = \
> >  	kms_cursor_edge_walk \
> >  	kms_cursor_legacy \
> >  	kms_dp_dsc \
> > -	kms_dp_tiled_display \
> >  	kms_draw_crc \
> >  	kms_fbcon_fbt \
> >  	kms_fence_pin_leak \
> > @@ -77,6 +76,7 @@ TESTS_progs = \
> >  	kms_sequence \
> >  	kms_setmode \
> >  	kms_sysfs_edid_timing \
> > +	kms_tiled_display \
> >  	kms_tv_load_detect \
> >  	kms_universal_plane \
> >  	kms_vblank \
> > diff --git a/tests/kms_dp_tiled_display.c b/tests/kms_tiled_display.c
> > similarity index 96%
> > rename from tests/kms_dp_tiled_display.c
> > rename to tests/kms_tiled_display.c
> > index 175ff12f453b..cc65c07483c2 100644
> > --- a/tests/kms_dp_tiled_display.c
> > +++ b/tests/kms_tiled_display.c
> > @@ -25,7 +25,7 @@
> >   *      <madhumitha.tolakanahalli.pradeep@intel.com>
> >   *  Manasi Navare <manasi.d.navare@intel.com>
> >   *
> > - * Display Port Tiled Display Test
> > + * Tiled display genlocked CRTC test
> >   * This test parses the tile information of the connectors that have TILE
> >   * property set, sets up the framebuffer with correct offsets corresponding to
> >   * the tile offsets and does an atomic modeset with two CRTCs for two
> > @@ -41,7 +41,7 @@
> >  #include "drm_mode.h"
> >  #include "drm_fourcc.h"
> >  
> > -IGT_TEST_DESCRIPTION("Test for Transcoder Port Sync for Display Port Tiled Displays");
> > +IGT_TEST_DESCRIPTION("Test for genlocked CRTCs with tiled displays");
> >  
> >  typedef struct {
> >  	igt_output_t *output;
> > @@ -113,8 +113,7 @@ static void get_number_of_h_tiles(data_t *data)
> >  						       res->connectors[i]);
> >  		igt_assert(connector);
> >  
> > -		if (connector->connection == DRM_MODE_CONNECTED &&
> > -		    connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) {
> > +		if (connector->connection == DRM_MODE_CONNECTED) {
> >  			get_connector_tile_props(data, connector, &tile);
> >  
> >  			data->num_h_tiles = tile.num_h_tile;
> > @@ -138,12 +137,6 @@ static void get_connectors(data_t *data)
> >  
> >  		igt_assert(conns[count].connector);
> >  
> > -		if (conns[count].connector->connector_type !=
> > -		    DRM_MODE_CONNECTOR_DisplayPort) {
> > -			drmModeFreeConnector(conns[count].connector);
> > -			continue;
> > -		}
> > -
> >  		get_connector_tile_props(data, conns[count].connector,
> >  					 &conns[count].tile);
> >  
> > diff --git a/tests/meson.build b/tests/meson.build
> > index 7e3f9e0a48e3..780a38ccf436 100644
> > --- a/tests/meson.build
> > +++ b/tests/meson.build
> > @@ -26,7 +26,6 @@ test_progs = [
> >  	'kms_cursor_edge_walk',
> >  	'kms_cursor_legacy',
> >  	'kms_dp_dsc',
> > -	'kms_dp_tiled_display',
> >  	'kms_draw_crc',
> >  	'kms_fbcon_fbt',
> >  	'kms_fence_pin_leak',
> > @@ -62,6 +61,7 @@ test_progs = [
> >  	'kms_sequence',
> >  	'kms_setmode',
> >  	'kms_sysfs_edid_timing',
> > +	'kms_tiled_display',
> >  	'kms_tv_load_detect',
> >  	'kms_universal_plane',
> >  	'kms_vblank',
> > -- 
> > 2.21.0
> > 

-- 
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-10-14 20:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 18:13 [igt-dev] [PATCH i-g-t 1/3] tests/kms_dp_tiled_display: Fix bogus abs() Ville Syrjala
2019-10-14 18:13 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_dp_tiled_display: Flatten the page flip handler Ville Syrjala
2019-10-14 19:55   ` Manasi Navare
2019-10-14 18:13 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_tiled_display: Get rid of DP stuff Ville Syrjala
2019-10-14 19:57   ` Manasi Navare
2019-10-14 20:21     ` Ville Syrjälä [this message]
2019-10-14 20:58       ` Manasi Navare
2019-10-15 12:27         ` Ville Syrjälä
2019-10-16 19:32           ` Manasi Navare
2019-10-14 19:11 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_dp_tiled_display: Fix bogus abs() Patchwork
2019-10-14 19:50 ` [igt-dev] [PATCH i-g-t 1/3] " Manasi Navare
2019-10-15  5:06 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/3] " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191014202122.GY1208@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=madhumitha.tolakanahalli.pradeep@intel.com \
    --cc=manasi.d.navare@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox