public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/igt-gpu-tools] rawhide: Fix build on non-x86 architectures
Date: Wed, 21 Oct 2026 22:01:51 GMT	[thread overview]
Message-ID: <179262011133.1.5172306560672888983.rpms-igt-gpu-tools-14a0b57b7a3c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/igt-gpu-tools
            Branch : rawhide
            Commit : 14a0b57b7a3cced3b2a1fd56e4861a611b047c01
            Author : Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
            Date   : 2026-10-21T17:49:06+02:00
            Stats  : +38/-4 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/igt-gpu-tools/c/14a0b57b7a3cced3b2a1fd56e4861a611b047c01?branch=rawhide

            Log:
            Fix build on non-x86 architectures

Backport change, build amdgpu part on all architectures.

---
diff --git a/amd_basic-fix-riscv64-pause.patch b/amd_basic-fix-riscv64-pause.patch
new file mode 100644
index 0000000..765e43c
--- /dev/null
+++ b/amd_basic-fix-riscv64-pause.patch
@@ -0,0 +1,36 @@
+From 125c0289617f3c7ba7ee376ea1d8aabd2ff5afdc Mon Sep 17 00:00:00 2001
+From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+Date: Fri, 2 Oct 2026 22:14:01 +0300
+Subject: [PATCH] tests/amdgpu: insert pause mnemonic only on x86 / x86_64 platforms
+
+The "pause" assembly mnemonic is only available on IA-32 platforms,
+breaking e.g. debug IGT builds on ARM / AArch64. The issue manifests
+only with -O1 or -O0, the default -O2 seems to optimize the condition
+away.
+
+Guard this inline assembly with the preprocessor checks, making sure
+that other platforms don't see the invalid assembly.
+
+FAILED: [code=1] tests/amdgpu/amd_basic.p/amd_basic.c.o
+Assembler messages:
+{standard input}:3702: Error: unknown mnemonic `pause' -- `pause'
+
+Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
+Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
+---
+ tests/amdgpu/amd_basic.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/tests/amdgpu/amd_basic.c
++++ b/tests/amdgpu/amd_basic.c
+@@ -705,8 +705,10 @@ static int wait_for_value64(volatile uint64_t *ptr, uint64_t expected,
+ 		/* Sleep if interval specified, otherwise tight loop */
+ 		if (check_interval_ns > 0)
+ 			nanosleep(&sleep_time, NULL);
++#if defined(x86_64) || defined(i386)
+ 		else
+ 			__asm__ __volatile__("pause" ::: "memory"); /* CPU hint for spin-wait */
++#endif
+ 	}
+ }

diff --git a/igt-gpu-tools.spec b/igt-gpu-tools.spec
index 7eb5c84..4e0e86c 100644
--- a/igt-gpu-tools.spec
+++ b/igt-gpu-tools.spec
@@ -62,6 +62,8 @@ Source0:        igt-gpu-tools-%{gitdate}.tar.bz2
 Source0:        https://www.x.org/archive/individual/app/%{name}-%{version}.tar.xz
 %endif
 
+Patch0:         amd_basic-fix-riscv64-pause.patch
+
 %global provobs_version 2.99.917-42.20180618
 Provides:       xorg-x11-drv-intel-devel = %{provobs_version}
 Provides:       intel-gpu-tools = %{provobs_version}
@@ -132,10 +134,6 @@ igt-gpu-tools, such as i915-perf.
 sed -i -e "/panthor/d" lib/meson.build
 sed -i -e "/panthor/d" tests/meson.build
 %endif
-# Temporarily disable AMDGPU on BE+AArch64 due assembler-related test failures
-%ifarch s390x ppc64 ppc64le aarch64
-sed -i -e "/amdgpu/d" tests/meson.build
-%endif
 
 %build
 %if 0%{?rhel}

                 reply	other threads:[~2026-10-21 22:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179262011133.1.5172306560672888983.rpms-igt-gpu-tools-14a0b57b7a3c@fedoraproject.org \
    --to=mjuszkiewicz@redhat.com \
    --cc=git-commits@fedoraproject.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