From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Nemesa Garg <nemesa.garg@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t v3] tests/kms_universal_plane: Fix fb count mismatch
Date: Wed, 9 Apr 2025 09:36:43 +0200 [thread overview]
Message-ID: <6b84d245-5626-4e89-9585-2e4eb25ee8db@linux.intel.com> (raw)
In-Reply-To: <20250408125327.1054433-1-nemesa.garg@intel.com>
Hey,
On 2025-04-08 14:53, Nemesa Garg wrote:
> There is a mismatch in the count of fb before
> start and end of the test. This is because cursor
> fbs still not removed and we are counting the fbs.
> Add a 2 vblank wait before counting the fbs so that
> all cursors fbs gets removed.
> Since unpinning of cursor fb occurs during vblank in xe,
> we need to wait atleast 1 vblank for driver to remove
> cursor fb. We need 1 additional vblank because vblank
> event is scheduled before unpinning.
>
> v2: Use is_xe_device[Chaitanya]
> v3: Add closes tag[Swati]
>
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4415
> Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
> ---
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> tests/kms_universal_plane.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c
> index 8e0b4dda0..2d9716575 100644
> --- a/tests/kms_universal_plane.c
> +++ b/tests/kms_universal_plane.c
> @@ -703,6 +703,16 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
> COMMIT_ATOMIC : COMMIT_LEGACY);
> cursor_leak_test_fini(data, output, &background_fb, cursor_fb);
>
> + /* Since unpinning of cursor fb occurs during vblank in xe, we need
> + * to wait atleast 1 vblank for driver to remove cursor fb. We need
> + * 1 additional vblank because vblank event is scheduled before
> + * unpinning. Therefore add 2 vblank wait to ensure that all
> + * cursor-related framebuffers can be removed before counting the
> + * framebuffer.
> + */
> + if (is_xe_device(data->drm_fd))
> + igt_wait_for_vblank_count(data->drm_fd, data->display.pipes[pipe].crtc_offset, 2);
> +
> /* We should be back to the same framebuffer count as when we started */
> count2 = intel_gem_fb_count(data);
>
next prev parent reply other threads:[~2025-04-09 7:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 12:53 [PATCH i-g-t v3] tests/kms_universal_plane: Fix fb count mismatch Nemesa Garg
2025-04-08 15:31 ` ✓ Xe.CI.BAT: success for tests/kms_universal_plane: Fix fb count mismatch (rev3) Patchwork
2025-04-08 15:50 ` ✗ i915.CI.BAT: failure " Patchwork
2025-04-08 16:48 ` ✗ Xe.CI.Full: " Patchwork
2025-04-09 7:36 ` Maarten Lankhorst [this message]
2025-04-10 8:40 ` ✓ i915.CI.BAT: success " Patchwork
2025-04-11 7:26 ` ✗ i915.CI.Full: failure " 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=6b84d245-5626-4e89-9585-2e4eb25ee8db@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=nemesa.garg@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