From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Arun R Murthy <arun.r.murthy@intel.com>, igt-dev@lists.freedesktop.org
Cc: petri.latvala@intel.com
Subject: Re: [igt-dev] [PATCHv2 i-g-t] tests/kms_async_flips: Enable async flip on linear buffer
Date: Thu, 1 Sep 2022 11:13:21 +0300 [thread overview]
Message-ID: <44cd0c35-ede2-3a14-02ce-7e33c73816ec@gmail.com> (raw)
In-Reply-To: <20220901022038.3920384-1-arun.r.murthy@intel.com>
Hi Arun,
On 1.9.2022 5.20, Arun R Murthy wrote:
> On Intel Gen platforms >= GEN12, Async on linear buffer is supported,
> hence enabling test for the same.
>
> v2: Added new line character for igt_skip_on_f (Petri)
>
> Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
> ---
> tests/kms_async_flips.c | 18 +++++++++++++++++-
> 1 file changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
> index 695aea74..214f2195 100644
> --- a/tests/kms_async_flips.c
> +++ b/tests/kms_async_flips.c
> @@ -61,6 +61,7 @@ typedef struct {
> bool extended;
> enum pipe pipe;
> bool alternate_sync_async;
> + bool is_linear_buffer;
> } data_t;
>
> static void flip_handler(int fd_, unsigned int sequence, unsigned int tv_sec,
> @@ -125,6 +126,7 @@ static void make_fb(data_t *data, struct igt_fb *fb,
>
> if (is_i915_device(data->drm_fd)) {
> igt_create_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
> + data->is_linear_buffer ? DRM_FORMAT_MOD_LINEAR :
> I915_FORMAT_MOD_X_TILED, fb);
I think instead of putting this is_linear_buffer flag into data
structure you could just put used modifier into data structure.
/Juha-Pekka
> igt_draw_fill_fb(data->drm_fd, fb, 0x88);
> } else {
> @@ -594,14 +596,28 @@ igt_main_args("e", NULL, help_str, opt_handler, &data)
> igt_fixture
> require_monotonic_timestamp(data.drm_fd);
>
> - igt_describe("Wait for page flip events in between successive asynchronous flips");
> + igt_describe("Wait for page flip events in between successive asynchronous flips on X Tiled buffer");
> igt_subtest_with_dynamic("async-flip-with-page-flip-events") {
> data.alternate_sync_async = false;
> + data.is_linear_buffer = false;
> run_test(&data, test_async_flip);
> }
>
> + igt_describe("Wait for page flip events in between successive asynchronous flips on Linear buffer");
> + igt_subtest_with_dynamic("async-flip-with-page-flip-events-linear") {
> + data.alternate_sync_async = false;
> + data.is_linear_buffer = true;
> + if(is_i915_device(data.drm_fd)) {
> + uint32_t devid = intel_get_drm_devid(data.drm_fd);
> + igt_skip_on_f(!AT_LEAST_GEN(devid, 12),
> + "Async on Linear buffer not supported\n");
> + run_test(&data, test_async_flip);
> + }
> + }
> +
> igt_describe("Alternate between sync and async flips");
> igt_subtest_with_dynamic("alternate-sync-async-flip") {
> + data.is_linear_buffer = false;
> data.alternate_sync_async = true;
> run_test(&data, test_async_flip);
> }
next prev parent reply other threads:[~2022-09-01 8:13 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 9:31 [igt-dev] [PATCH i-g-t] tests/kms_async_flips: Enable async flip on linear buffer Arun R Murthy
2022-08-29 13:43 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-08-31 4:08 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-08-31 9:08 ` [igt-dev] [PATCH i-g-t] " Petri Latvala
2022-09-01 2:00 ` Murthy, Arun R
2022-09-01 2:20 ` [igt-dev] [PATCHv2 " Arun R Murthy
2022-09-01 8:13 ` Juha-Pekka Heikkila [this message]
2022-09-01 2:49 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev2) Patchwork
2022-09-01 18:47 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-09-05 11:16 ` [igt-dev] [PATCHv2 i-g-t] tests/kms_async_flips: Enable async flip on linear buffer Arun R Murthy
2022-09-05 11:33 ` Jani Nikula
2022-09-05 12:01 ` [igt-dev] [PATCHv3 " Arun R Murthy
2022-11-04 4:07 ` Karthik B S
2022-12-05 4:16 ` Murthy, Arun R
2022-12-20 5:30 ` [igt-dev] [PATCHv4 " Arun R Murthy
2022-12-20 8:22 ` Karthik B S
2022-12-21 5:40 ` [igt-dev] [PATCHv5 " Arun R Murthy
2022-09-05 12:17 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev3) Patchwork
2022-09-05 13:01 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev4) Patchwork
2022-09-05 16:58 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev3) Patchwork
2022-09-05 18:31 ` [igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_async_flips: Enable async flip on linear buffer (rev4) Patchwork
2022-10-28 10:27 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev5) Patchwork
2022-10-28 16:59 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-11-09 12:38 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev6) Patchwork
2022-11-09 16:53 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-11-21 6:44 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev7) Patchwork
2022-11-21 8:10 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-11-30 13:39 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev8) Patchwork
2022-12-01 1:33 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-12-20 16:27 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev9) Patchwork
2022-12-20 19:45 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-12-21 11:48 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev10) Patchwork
2022-12-21 12:57 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-12-27 13:01 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Enable async flip on linear buffer (rev11) Patchwork
2022-12-27 15:54 ` [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=44cd0c35-ede2-3a14-02ce-7e33c73816ec@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=arun.r.murthy@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@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