Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Roper <matthew.d.roper@intel.com>
To: Clint Taylor <clinton.a.taylor@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v4 8/8] XE3: tests/intel/kms_frontbuffer_tracking: platform based handling of x-tile cases
Date: Fri, 6 Dec 2024 16:28:49 -0800	[thread overview]
Message-ID: <20241207002849.GP3224633@mdroper-desk1.amr.corp.intel.com> (raw)
In-Reply-To: <20241206212748.2101217-9-clinton.a.taylor@intel.com>

On Fri, Dec 06, 2024 at 01:27:48PM -0800, Clint Taylor wrote:
> From: Vinod Govindapillai <vinod.govindapillai@intel.com>
> 
> x-tile is not supported from xe3 onwards. Handle this conclusively
> in all the kms_frontbuffer_tracking subtest options.

This patch is undoing a bunch of the changes from the previous patch.
These need to be combined.

> 
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
> Signed-off-by: Clint Taylor <Clinton.A.Taylor@intel.com>
> ---
>  tests/intel/kms_frontbuffer_tracking.c | 29 +++++++++++---------------
>  1 file changed, 12 insertions(+), 17 deletions(-)
> 
> diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
> index c5b3fd46f..ba564fafa 100644
> --- a/tests/intel/kms_frontbuffer_tracking.c
> +++ b/tests/intel/kms_frontbuffer_tracking.c
> @@ -1031,7 +1031,7 @@ struct test_mode {
>  		TILING_Y,
>  		TILING_4,
>  		TILING_COUNT,
> -		TILING_DEFAULT = TILING_X,
> +		TILING_AUTOSELECT,
>  	} tiling;
>  
>  	enum igt_draw_method method;
> @@ -1154,7 +1154,7 @@ struct {
>  	.only_pipes = PIPE_COUNT,
>  	.shared_fb_x_offset = 248,
>  	.shared_fb_y_offset = 500,
> -	.tiling = TILING_DEFAULT,
> +	.tiling = TILING_AUTOSELECT,
>  };
>  
>  struct modeset_params {
> @@ -2182,11 +2182,7 @@ static void setup_modeset(void)
>  	offscreen_fb.w = 1024;
>  	offscreen_fb.h = 1024;
>  
> -	/* Xe3 remove x-tile from display + */
> -	if (drm.display_ver < 30)
> -		create_fbs(FORMAT_DEFAULT, opt.tiling);
> -	else
> -		create_fbs(FORMAT_DEFAULT, TILING_4);
> +	create_fbs(FORMAT_DEFAULT, opt.tiling);
>  }
>  
>  static void teardown_modeset(void)
> @@ -4234,6 +4230,14 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  		setup_drm();
>  		drm.devid = intel_get_drm_devid(drm.fd);
>  		drm.display_ver = intel_display_ver(drm.devid);
> +
> +		/* TILING_X is not supported from Xe3 onwards. If the tiling
> +		 * is not set explicitly using the commandline parameter,
> +		 * handle the default tiling based on the platform.
> +		 */
> +		if (opt.tiling == TILING_AUTOSELECT)
> +			opt.tiling = drm.display_ver >= 30 ? TILING_4 : TILING_X;

As noted on the previous patch, I think we should try to avoid looking
at display_ver (since this isn't proper userspace behavior).  Instead we
should have a list of tiling formats (x-tile, 4-tile, y-tile, linear,
etc.) and we should just walk down that list and test each one with
igt_display_has_format_mod() until we find one the device supports; that
first match can be the 'autoselect' value.


Matt

> +
>  		setup_environment();
>  	}
>  
> @@ -4543,10 +4547,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  					if (t.tiling == TILING_4)
>  						igt_require(intel_get_device_info(drm.devid)->has_4tile);
>  
> -					/* Xe3 remove x-tile from display + */
> -					if (t.tiling == TILING_X) {
> -						igt_require(drm.display_ver < 30);
> -					}
>  
>  					if (tiling_is_valid(t.feature, t.tiling))
>  						draw_subtest(&t);
> @@ -4579,12 +4579,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
>  	t.format = FORMAT_DEFAULT;
>  	t.flip = FLIP_PAGEFLIP;
>  	t.method = IGT_DRAW_BLT;
> -
> -	/* Xe3 remove x-tile from display + */
> -	if (drm.display_ver < 30)
> -		t.tiling = opt.tiling;
> -	else
> -		t.tiling = TILING_4;
> +	t.tiling = opt.tiling;
>  
>  	igt_subtest("basic") {
>  		if (!is_xe_device(drm.fd))
> -- 
> 2.25.1
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation

  reply	other threads:[~2024-12-07  0:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-06 21:27 [PATCH i-g-t v4 0/8] Initial PTL support Clint Taylor
2024-12-06 21:27 ` [PATCH i-g-t v4 1/8] PTL: lib/intel_chipset: add pantherlake definition and support Clint Taylor
2024-12-06 23:30   ` Matt Roper
2024-12-06 21:27 ` [PATCH i-g-t v4 2/8] XE3: lib/intel_pat: extend for xe3 Clint Taylor
2024-12-06 21:27 ` [PATCH i-g-t v4 3/8] XE3: tests/intel/xe_pat: " Clint Taylor
2024-12-06 21:27 ` [PATCH i-g-t v4 4/8] XE3: tests/kms_addfb_basic: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-12-06 23:46   ` Matt Roper
2024-12-06 21:27 ` [PATCH i-g-t v4 5/8] XE3: tests/intel/kms_draw_crc: " Clint Taylor
2024-12-07  0:01   ` Matt Roper
2024-12-06 21:27 ` [PATCH i-g-t v4 6/8] XE3: tests/kms_cursor_legacy: flip_vs_cursor_busy_crc was requiring any driver but used intel x-tile Clint Taylor
2024-12-07  0:10   ` Matt Roper
2024-12-06 21:27 ` [PATCH i-g-t v4 7/8] XE3: tests/intel/kms_frontbuffer_tracking: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-12-07  0:21   ` Matt Roper
2024-12-06 21:27 ` [PATCH i-g-t v4 8/8] XE3: tests/intel/kms_frontbuffer_tracking: platform based handling of x-tile cases Clint Taylor
2024-12-07  0:28   ` Matt Roper [this message]
2024-12-06 22:30 ` ✓ Xe.CI.BAT: success for Initial PTL support (rev4) Patchwork
2024-12-06 22:30 ` ✓ i915.CI.BAT: " Patchwork
2024-12-06 23:21 ` [PATCH i-g-t v4 0/8] Initial PTL support Matt Roper
2024-12-06 23:44 ` ✗ i915.CI.Full: failure for Initial PTL support (rev4) Patchwork
2024-12-07  3:05 ` ✗ Xe.CI.Full: " 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=20241207002849.GP3224633@mdroper-desk1.amr.corp.intel.com \
    --to=matthew.d.roper@intel.com \
    --cc=clinton.a.taylor@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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