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 4/8] XE3: tests/kms_addfb_basic: fix x-tiled tests for case when there is no x-tile
Date: Fri, 6 Dec 2024 15:46:36 -0800	[thread overview]
Message-ID: <20241206234636.GL3224633@mdroper-desk1.amr.corp.intel.com> (raw)
In-Reply-To: <20241206212748.2101217-5-clinton.a.taylor@intel.com>

On Fri, Dec 06, 2024 at 01:27:44PM -0800, Clint Taylor wrote:
> From: "Heikkila, Juha-pekka" <juha-pekka.heikkila@intel.com>
> 
> On Xe3 display no more support x-tile and will disable such framebuffers
> 
> Signed-off-by: Heikkila, Juha-pekka <juha-pekka.heikkila@intel.com>

I think you were going to fixup the name ordering here since JP gave an
okay for that on the last series, right?  "Last, First" causes problems
for git-send-email and such.


> Signed-off-by: Clint Taylor <Clinton.A.Taylor@intel.com>
> Signed-off-by: Juha-pekka Heikkila <juha-pekka.heikkila@intel.com>
> ---
>  tests/kms_addfb_basic.c | 22 ++++++++++++----------
>  1 file changed, 12 insertions(+), 10 deletions(-)
> 
> diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c
> index b22818592..3ba87117b 100644
> --- a/tests/kms_addfb_basic.c
> +++ b/tests/kms_addfb_basic.c
> @@ -217,6 +217,12 @@ static int legacy_addfb(int fd, struct drm_mode_fb_cmd *arg)
>  	return err;
>  }
>  
> +static int addfb_expected_ret(igt_display_t *disp, struct drm_mode_fb_cmd2 *f)
> +{
> +	return igt_display_has_format_mod(disp, f->pixel_format,
> +					  f->modifier[0]) ? 0 : -1;
> +}
> +
>  static void invalid_tests(int fd)
>  {
>  	struct drm_mode_fb_cmd2 f = {};
> @@ -735,8 +741,10 @@ static void addfb25_tests(int fd)
>  		igt_describe("Check if addfb2 call works for x-tiling");
>  		igt_subtest("addfb25-x-tiled-legacy") {
>  			f.modifier[0] = I915_FORMAT_MOD_X_TILED;
> -			do_ioctl(fd, DRM_IOCTL_MODE_ADDFB2, &f);
> -			do_ioctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id);
> +			igt_assert_eq(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f),
> +				      addfb_expected_ret(&display, &f));
> +			if (!addfb_expected_ret(&display, &f))
> +				do_ioctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id);
>  			f.fb_id = 0;
>  		}
>  
> @@ -756,12 +764,6 @@ static void addfb25_tests(int fd)
>  		gem_close(fd, gem_bo);
>  }
>  
> -static int addfb_expected_ret(igt_display_t *disp, struct drm_mode_fb_cmd2 *f)
> -{
> -	return igt_display_has_format_mod(disp, f->pixel_format,
> -					  f->modifier[0]) ? 0 : -1;
> -}
> -
>  static void addfb25_ytile(int fd)
>  {
>  	struct drm_mode_fb_cmd2 f = {};
> @@ -1012,8 +1014,6 @@ igt_main
>  
>  	master_tests(fd);
>  
> -	addfb25_tests(fd);
> -
>  	tiling_tests(fd);
>  
>  	igt_subtest_group {
> @@ -1025,6 +1025,8 @@ igt_main
>  		igt_fixture
>  			igt_require_intel(fd);
>  
> +		addfb25_tests(fd);
> +

Doesn't moving this here prevent this whole batch of tests from running
on non-Intel devices?  Some of the tests here shouldn't be
Intel-specific as far as I know.  Should we rather just be adding
igt_require_intel(fd) to the specific subtest you're modifying?


Matt

>  		addfb25_ytile(fd);
>  
>  		addfb25_4tile(fd);
> -- 
> 2.25.1
> 

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

  reply	other threads:[~2024-12-06 23:46 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 [this message]
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
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=20241206234636.GL3224633@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