summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch43
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb4
2 files changed, 46 insertions, 1 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch b/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch
new file mode 100644
index 0000000000..bb35b3030a
--- /dev/null
+++ b/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch
@@ -0,0 +1,43 @@
1From ea9ee4dd64ee88e03a959b2c694aa8feb53c7e78 Mon Sep 17 00:00:00 2001
2From: He Zhe <zhe.he@windriver.com>
3Date: Wed, 28 Sep 2022 16:47:24 +0800
4Subject: [PATCH] stress-cpu: disable float128 math on powerpc64 to avoid
5 SIGILL
6
7float128 requires instructions of xsmaddqp and xsmsubqp which are added to
8qemu since v7.0 by the following commit.
9https://github.com/qemu/qemu/commit/3bb1aed246d7b59ceee625a82628f7369d492a8f
10
11While kirkstone is still at v6.2 and thus experiences SIGILL as follow
12root@qemuppc64:~# stress-ng --cpu 2 --timeout 30s
13stress-ng: info: [972] setting to a 30 second run per stressor
14stress-ng: info: [972] dispatching hogs: 2 cpu
15stress-ng: info: [973] stressor terminated with unexpected signal signal 4 'SIGILL'
16<snip>
17
18Upstream-Status: Inappropriate [This is specific to kirkstone since qemu on
19master branch has upgraded to v7.1.]
20
21Signed-off-by: He Zhe <zhe.he@windriver.com>
22---
23 stress-cpu.c | 4 ++++
24 1 file changed, 4 insertions(+)
25
26diff --git a/stress-cpu.c b/stress-cpu.c
27index 0a08f1d1..2849e715 100644
28--- a/stress-cpu.c
29+++ b/stress-cpu.c
30@@ -41,6 +41,10 @@
31 #undef HAVE_FLOAT_DECIMAL128
32 #endif
33
34+#if defined(STRESS_ARCH_PPC64)
35+#undef HAVE_FLOAT128
36+#endif
37+
38 #define GAMMA (0.57721566490153286060651209008240243104215933593992L)
39 #define OMEGA (0.56714329040978387299996866221035554975381578718651L)
40 #define PSI (3.35988566624317755317201130291892717968890513373197L)
41--
422.25.1
43
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
index fe177a4de0..807ecd3466 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
@@ -5,7 +5,9 @@ HOMEPAGE = "https://github.com/ColinIanKing/stress-ng#readme"
5LICENSE = "GPL-2.0-only" 5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master" 8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \
9 file://0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch \
10 "
9SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305" 11SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305"
10S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
11 13