From: Boris Brezillon <boris.brezillon@collabora.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org,
Daniel Almeida <daniel.almeida@collabora.com>
Subject: Re: [PATCH i-g-t] panthor: Enable compilation on big-endian arch
Date: Wed, 18 Feb 2026 17:16:57 +0100 [thread overview]
Message-ID: <20260218171657.6a4cd753@fedora> (raw)
In-Reply-To: <20260218153444.80754-1-kamil.konieczny@linux.intel.com>
On Wed, 18 Feb 2026 16:34:44 +0100
Kamil Konieczny <kamil.konieczny@linux.intel.com> wrote:
> Compilation of Panthor was broken on big-endian due to a guard in
> pathor lib against such arch. Fix this and create and use a macro
> for skipping all panthor tests on such machines.
>
> Also while at it, init fd so it could be safely used at last
> fixture.
>
> Cc: Daniel Almeida <daniel.almeida@collabora.com>
> Cc: Boris Brezillon <boris.brezillon@collabora.com>
> Closes: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/200
> Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> ---
> lib/igt_panthor.c | 17 +++++++++++++++++
> lib/igt_panthor.h | 6 ++----
> tests/panthor/panthor_gem.c | 3 ++-
> tests/panthor/panthor_group.c | 3 ++-
> tests/panthor/panthor_query.c | 3 ++-
> tests/panthor/panthor_vm.c | 3 ++-
> 6 files changed, 27 insertions(+), 8 deletions(-)
>
> diff --git a/lib/igt_panthor.c b/lib/igt_panthor.c
> index 49b427d4f..cf065352d 100644
> --- a/lib/igt_panthor.c
> +++ b/lib/igt_panthor.c
> @@ -6,6 +6,23 @@
> #include "ioctl_wrappers.h"
> #include "panthor_drm.h"
>
> +/**
> + * igt_panthor_skip_on_big_endian:
> + *
> + * Skip Panthor test on bing-endian machines.
^ big-endian
> + */
> +void igt_panthor_skip_on_big_endian(void)
> +{
> +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
> + #define IGT_PANTHOR_ON_BIG_ENDIAN 1
> +#else
> + #define IGT_PANTHOR_ON_BIG_ENDIAN 0
> +#endif
> +
> + igt_skip_on_f(IGT_PANTHOR_ON_BIG_ENDIAN, "Panthor is unsupported on big-endian arch\n");
> +#undef IGT_PANTHOR_ON_BIG_ENDIAN
Can't we just go with
igt_skip_on_f(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__,
"Panthor is unsupported on big-endian arch\n");
and drop the IGT_PANTHOR_ON_BIG_ENDIAN definition?
> +}
The rest looks good to me.
Regards,
Boris
next prev parent reply other threads:[~2026-02-18 16:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 15:34 [PATCH i-g-t] panthor: Enable compilation on big-endian arch Kamil Konieczny
2026-02-18 16:16 ` Boris Brezillon [this message]
2026-02-19 14:34 ` Kamil Konieczny
2026-02-18 17:31 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-02-18 17:45 ` ✓ i915.CI.BAT: " Patchwork
2026-02-18 19:08 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-19 14:36 ` Kamil Konieczny
2026-02-18 19:43 ` ✗ i915.CI.Full: " Patchwork
2026-02-19 14:37 ` Kamil Konieczny
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=20260218171657.6a4cd753@fedora \
--to=boris.brezillon@collabora.com \
--cc=daniel.almeida@collabora.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.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