public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/igt-gpu-tools] f45: Fix build on non-x86 architectures
@ 2026-10-21 22:03 Marcin Juszkiewicz
0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-10-21 22:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/igt-gpu-tools
Branch : f45
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=f45
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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 22:03 [rpms/igt-gpu-tools] f45: Fix build on non-x86 architectures Marcin Juszkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox