All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Aurabindo Pillai <aurabindo.pillai@amd.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_cursor: Wait for an extra vblank on AMD hw
Date: Fri, 21 Oct 2022 10:17:03 +0300	[thread overview]
Message-ID: <6c2a3faf-6c06-4eea-8ae7-a4b98654d0c6@gmail.com> (raw)
In-Reply-To: <20221020210859.446086-1-aurabindo.pillai@amd.com>

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>

On 21.10.2022 0.08, Aurabindo Pillai wrote:
> On AMD hardware, atomic cursor updates are not synchronized with the
> same frame in the atomic code path, resulting in cursor programming
> getting deferred to the next frame. Add a device specific quirk to
> account for this delay.
> 
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> ---
>   tests/kms_plane_cursor.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c
> index e9abfd78..5af390e0 100644
> --- a/tests/kms_plane_cursor.c
> +++ b/tests/kms_plane_cursor.c
> @@ -169,6 +169,11 @@ static void test_cursor_pos(data_t *data, int x, int y, unsigned int flags)
>   	igt_plane_set_position(data->cursor, x, y);
>   	igt_display_commit_atomic(&data->display, 0, NULL);
>   
> +	/* Wait for one more vblank since cursor updates are not
> +	 * synchronized to the same frame on AMD hw */
> +	if(is_amdgpu_device(data->drm_fd))
> +		igt_wait_for_vblank_count(data->drm_fd, data->display.pipes[data->pipe_id].crtc_offset, 1);
> +
>   	igt_pipe_crc_get_current(data->drm_fd, data->pipe_crc, &test_crc);
>   	igt_pipe_crc_stop(data->pipe_crc);
>   

      parent reply	other threads:[~2022-10-21  7:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 21:08 [igt-dev] [PATCH i-g-t] tests/kms_plane_cursor: Wait for an extra vblank on AMD hw Aurabindo Pillai
2022-10-20 23:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-10-21  3:55 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-10-21  7:17 ` Juha-Pekka Heikkila [this message]

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=6c2a3faf-6c06-4eea-8ae7-a4b98654d0c6@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=aurabindo.pillai@amd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.