Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik B S <karthik.b.s@intel.com>
To: Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t 17/18] tests/kms_async_flips: Add XE support
Date: Wed, 19 Jul 2023 08:31:52 +0530	[thread overview]
Message-ID: <99ee8343-5f46-7e35-38d0-6dc6d3cf077b@intel.com> (raw)
In-Reply-To: <20230619115858.2013195-18-bhanuprakash.modem@intel.com>


On 6/19/2023 5:28 PM, Bhanuprakash Modem wrote:
> Add XE driver support for kms tests.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Karthik B S <karthik.b.s@intel.com>
> ---
>   tests/kms_async_flips.c | 12 +++---------
>   1 file changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
> index 5cb797dec..9bea54027 100644
> --- a/tests/kms_async_flips.c
> +++ b/tests/kms_async_flips.c
> @@ -229,7 +229,7 @@ static void test_async_flip(data_t *data)
>   			 * in order to change the watermark levels as per the optimization. Hence the
>   			 * subsequent async flips will actually do the asynchronous flips.
>   			 */
> -			if (is_i915_device(data->drm_fd)) {
> +			if (is_intel_device(data->drm_fd)) {
>   				uint32_t devid = intel_get_drm_devid(data->drm_fd);
>   
>   				if (IS_GEN9(devid) || IS_GEN10(devid) || AT_LEAST_GEN(devid, 12)) {
> @@ -600,13 +600,7 @@ igt_main
>   	int i;
>   
>   	igt_fixture {
> -		/*
> -		 * FIXME: As of now, Async flips won't work with linear buffers
> -		 * on Intel hardware, hence don't run tests on XE device as XE
> -		 * won't support tiling.
> -		 * Once Kernel changes got landed, please update this logic.
> -		 */
> -		data.drm_fd = drm_open_driver_master(DRIVER_ANY & ~DRIVER_XE);
> +		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
>   		kmstest_set_vt_graphics_mode();
>   		igt_display_require(&data.display, data.drm_fd);
>   		igt_display_require_output(&data.display);
> @@ -654,7 +648,7 @@ igt_main
>   	igt_describe("Negative case to verify if changes in fb are rejected from kernel as expected");
>   	igt_subtest_with_dynamic("invalid-async-flip") {
>   		/* TODO: support more vendors */
> -		igt_require(is_i915_device(data.drm_fd));
> +		igt_require(is_intel_device(data.drm_fd));
>   		igt_require(igt_display_has_format_mod(&data.display, DRM_FORMAT_XRGB8888,
>   						       I915_FORMAT_MOD_Y_TILED));
>   

  reply	other threads:[~2023-07-19  3:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 11:58 [igt-dev] [i-g-t 00/18] Add XE suppor for display tests Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 01/18] lib: Add tiling support for XE Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 02/18] lib/igt_fb: Intel bops & ibb is mandatory " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 03/18] tests/kms_cursor_edge_walk: Fix intel specific checks Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 04/18] tests/kms_getfb: Extended ccs tests to support XE Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 05/18] tests/kms_addfb_basic: Add tiling support for XE Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 06/18] tests/kms_plane: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 07/18] tests/kms_plane_lowres: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 08/18] tests/kms_plane_scaling: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 09/18] tests/kms_rotation_crc: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 10/18] tests/i915/kms_big_fb: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 11/18] tests/i915/kms_draw_crc: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 12/18] tests/i915/kms_flip_scaled_crc: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 13/18] tests/i915/kms_flip_tiling: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 14/18] tests/i915/kms_ccs: Add XE support Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 15/18] tests/i915/kms_fb_coherancy: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 16/18] tests/i915/kms_fbcon_fbt: " Bhanuprakash Modem
2023-06-19 11:58 ` [igt-dev] [i-g-t 17/18] tests/kms_async_flips: " Bhanuprakash Modem
2023-07-19  3:01   ` Karthik B S [this message]
2023-06-19 11:58 ` [igt-dev] [i-g-t 18/18] tests/kms_prime: " Bhanuprakash Modem
2023-06-19 18:54 ` [igt-dev] ✗ Fi.CI.BAT: failure for Add XE suppor for display tests 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=99ee8343-5f46-7e35-38d0-6dc6d3cf077b@intel.com \
    --to=karthik.b.s@intel.com \
    --cc=bhanuprakash.modem@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