Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Ch, Sai Gowtham" <sai.gowtham.ch@intel.com>
Subject: Re: [igt-dev] [i-g-t 1/2] tests/kms_cursor_legacy: Add Spin support for XE
Date: Thu, 22 Jun 2023 10:16:03 +0530	[thread overview]
Message-ID: <4aaddf58-b364-65c7-2917-06fd68657dca@intel.com> (raw)
In-Reply-To: <20230619085800.1994271-2-bhanuprakash.modem@intel.com>


On Mon-19-06-2023 02:27 pm, Bhanuprakash Modem wrote:
> To support the SPIN tests for XE, just need to fix the allocator
> handle, since the same spin apis works for both i915 & XE.
> 
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>

Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com>

> ---
>   tests/kms_cursor_legacy.c | 9 +++++++--
>   1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
> index f7a6202cf..1f0f3b7e6 100644
> --- a/tests/kms_cursor_legacy.c
> +++ b/tests/kms_cursor_legacy.c
> @@ -595,7 +595,10 @@ static void basic_flip_cursor(igt_display_t *display,
>   	if (flags & BASIC_BUSY)
>   	{
>   		igt_require_intel(display->drm_fd);
> -		ahnd = get_reloc_ahnd(display->drm_fd, 0);
> +
> +		ahnd = is_i915_device(display->drm_fd) ?
> +			get_reloc_ahnd(display->drm_fd, 0) :
> +			intel_allocator_open(display->drm_fd, 0, INTEL_ALLOCATOR_RELOC);
>   	}
>   
>   	if (mode >= flip_test_atomic)
> @@ -1505,7 +1508,9 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
>   	igt_output_t *output;
>   	igt_plane_t *cursor;
>   
> -	ahnd = get_reloc_ahnd(display->drm_fd, 0);
> +	ahnd = is_i915_device(display->drm_fd) ?
> +		get_reloc_ahnd(display->drm_fd, 0) :
> +		intel_allocator_open(display->drm_fd, 0, INTEL_ALLOCATOR_RELOC);
>   
>   	if (atomic)
>   		igt_require(display->is_atomic);

  reply	other threads:[~2023-06-22  4:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19  8:57 [igt-dev] [i-g-t 0/2] Add Spin support for XE Bhanuprakash Modem
2023-06-19  8:57 ` [igt-dev] [i-g-t 1/2] tests/kms_cursor_legacy: " Bhanuprakash Modem
2023-06-22  4:46   ` Modem, Bhanuprakash [this message]
2023-06-22  6:14     ` Ch, Sai Gowtham
2023-06-26 10:41   ` [igt-dev] [i-g-t, " Joshi, Kunal1
2023-06-19  8:58 ` [igt-dev] [i-g-t 2/2] tests/kms_cursor_legacy: Allow busy tests to run on XE Bhanuprakash Modem
2023-06-22  4:45   ` Modem, Bhanuprakash
2023-06-22  6:13     ` Ch, Sai Gowtham
2023-06-26 10:42   ` [igt-dev] [i-g-t, " Joshi, Kunal1
2023-06-19 17:56 ` [igt-dev] ✓ Fi.CI.BAT: success for Add Spin support for XE Patchwork
2023-06-20  3:46 ` [igt-dev] ✓ Fi.CI.IGT: " 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=4aaddf58-b364-65c7-2917-06fd68657dca@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sai.gowtham.ch@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