From: "Pottumuttu, Sai Teja" <sai.teja.pottumuttu@intel.com>
To: Clint Taylor <clinton.a.taylor@intel.com>,
<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v3 8/9] XE3: tests/intel/kms_frontbuffer_tracking: fix x-tiled tests for case when there is no x-tile
Date: Mon, 2 Dec 2024 12:34:49 +0530 [thread overview]
Message-ID: <a3a8de99-a4d7-4902-85c8-af03596e2870@intel.com> (raw)
In-Reply-To: <20241114190339.3885752-9-clinton.a.taylor@intel.com>
On 15-11-2024 00:33, Clint Taylor wrote:
> From: "Heikkila, Juha-pekka" <juha-pekka.heikkila@intel.com>
>
> On Xe3 display no more support x-tile and will disable such framebuffers
>
> Signed-off-by: Heikkila, Juha-pekka <juha-pekka.heikkila@intel.com>
> Signed-off-by: Clint Taylor <Clinton.A.Taylor@intel.com>
> ---
> tests/intel/kms_frontbuffer_tracking.c | 25 +++++++++++++++++++++----
> 1 file changed, 21 insertions(+), 4 deletions(-)
>
> diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
> index b7e3f7379..8af41caf3 100644
> --- a/tests/intel/kms_frontbuffer_tracking.c
> +++ b/tests/intel/kms_frontbuffer_tracking.c
> @@ -2421,7 +2421,12 @@ static void setup_modeset(void)
> offscreen_fb.fb = NULL;
> offscreen_fb.w = 1024;
> offscreen_fb.h = 1024;
> - create_fbs(FORMAT_DEFAULT, opt.tiling);
> +
> + /* Xe3 remove x-tile from display + */
> + if (drm.display_ver <= 20)
As suggested in other patches, lets go with <30 here as well?
And we should adjust the below conditions as well on similar lines I guess.
> + create_fbs(FORMAT_DEFAULT, opt.tiling);
> + else
> + create_fbs(FORMAT_DEFAULT, TILING_4);
> }
>
> static void teardown_modeset(void)
> @@ -2542,7 +2547,6 @@ static void setup_drrs(void)
>
> static void setup_environment(void)
> {
> - setup_drm();
> setup_modeset();
>
> setup_fbc();
> @@ -3386,6 +3390,7 @@ static bool tiling_is_valid(int feature_flags, enum tiling_type tiling)
> case TILING_LINEAR:
> return intel_gen(drm.devid) >= 9;
> case TILING_X:
> + return (intel_get_device_info(drm.devid)->display_ver > 20) ? false : true;
> case TILING_Y:
> return true;
> case TILING_4:
> @@ -4468,9 +4473,10 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
> igt_output_t *output;
>
> igt_fixture {
> - setup_environment();
> + setup_drm();
> drm.devid = intel_get_drm_devid(drm.fd);
> drm.display_ver = intel_display_ver(drm.devid);
> + setup_environment();
> }
>
> for (t.feature = 0; t.feature < FEATURE_COUNT; t.feature++) {
> @@ -4774,6 +4780,11 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
> if (t.tiling == TILING_4)
> igt_require(intel_get_device_info(drm.devid)->has_4tile);
>
> + /* Xe3 remove x-tile from display + */
> + if (t.tiling == TILING_X) {
> + igt_require(drm.display_ver <= 20);
> + }
Looks like, this test won't run for TILING_X. As, a little above we have,
if (t.tiling == TILING_X)
continue;
So, do we need this addition?
Thanks,
Sai Teja
> +
> if (tiling_is_valid(t.feature, t.tiling))
> draw_subtest(&t);
> else
> @@ -4805,7 +4816,13 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
> t.format = FORMAT_DEFAULT;
> t.flip = FLIP_PAGEFLIP;
> t.method = IGT_DRAW_BLT;
> - t.tiling = opt.tiling;
> +
> + /* Xe3 remove x-tile from display + */
> + if (drm.display_ver <= 20)
> + t.tiling = opt.tiling;
> + else
> + t.tiling = TILING_4;
> +
> igt_subtest("basic") {
> if (!is_xe_device(drm.fd))
> igt_require_gem(drm.fd);
next prev parent reply other threads:[~2024-12-02 7:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 19:03 [PATCH i-g-t v3 0/9] Initial PTL support Clint Taylor
2024-11-14 19:03 ` [PATCH i-g-t v3 1/9] PTL: lib/intel_chipset: add pantherlake definition and support Clint Taylor
2024-11-15 8:46 ` Pottumuttu, Sai Teja
2024-11-15 23:38 ` Taylor, Clinton A
2024-11-14 19:03 ` [PATCH i-g-t v3 2/9] PTL: lib/intel_device_info: Enable flatccs for PTL Clint Taylor
2024-11-14 19:03 ` [PATCH i-g-t v3 3/9] XE3: lib/intel_pat: extend for xe3 Clint Taylor
2024-11-19 9:34 ` Pottumuttu, Sai Teja
2024-11-14 19:03 ` [PATCH i-g-t v3 4/9] XE3: tests/intel/xe_pat: " Clint Taylor
2024-11-19 10:09 ` Pottumuttu, Sai Teja
2024-11-14 19:03 ` [PATCH i-g-t v3 5/9] XE3: tests/kms_addfb_basic: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-11-15 13:31 ` Kamil Konieczny
2024-11-15 23:42 ` Taylor, Clinton A
2024-11-18 12:48 ` Kamil Konieczny
2024-11-28 14:05 ` Juha-Pekka Heikkilä
2024-11-14 19:03 ` [PATCH i-g-t v3 6/9] XE3: tests/intel/kms_draw_crc: " Clint Taylor
2024-11-21 5:52 ` Pottumuttu, Sai Teja
2024-11-14 19:03 ` [PATCH i-g-t v3 7/9] XE3: tests/kms_cursor_legacy: flip_vs_cursor_busy_crc was requiring any driver but used intel x-tile Clint Taylor
2024-11-14 19:03 ` [PATCH i-g-t v3 8/9] XE3: tests/intel/kms_frontbuffer_tracking: fix x-tiled tests for case when there is no x-tile Clint Taylor
2024-12-02 7:04 ` Pottumuttu, Sai Teja [this message]
2024-11-14 19:03 ` [PATCH i-g-t v3 9/9] XE3: tests/intel/kms_frontbuffer_tracking: platform based handling of x-tile cases Clint Taylor
2024-11-14 19:53 ` ✗ Fi.CI.BAT: failure for Initial PTL support (rev3) Patchwork
2024-11-14 20:37 ` ✓ CI.xeBAT: success " Patchwork
2024-11-15 15:48 ` ✗ CI.xeFULL: 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=a3a8de99-a4d7-4902-85c8-af03596e2870@intel.com \
--to=sai.teja.pottumuttu@intel.com \
--cc=clinton.a.taylor@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