|
|
179894 |
From f2e06656d04a9fcb0603802a4f8ce7aa3a1f055e Mon Sep 17 00:00:00 2001
|
|
|
179894 |
From: Stefan Liebler <stli@linux.ibm.com>
|
|
|
179894 |
Date: Tue, 5 Oct 2021 16:14:10 +0200
|
|
|
179894 |
Subject: [PATCH] S390: Add PCI_MIO and SIE HWCAPs
|
|
|
179894 |
|
|
|
179894 |
Both new HWCAPs were introduced in these kernel commits:
|
|
|
179894 |
- 7e8403ecaf884f307b627f3c371475913dd29292
|
|
|
179894 |
"s390: add HWCAP_S390_PCI_MIO to ELF hwcaps"
|
|
|
179894 |
- 7e82523f2583e9813e4109df3656707162541297
|
|
|
179894 |
"s390/hwcaps: make sie capability regular hwcap"
|
|
|
179894 |
|
|
|
179894 |
Also note that the kernel commit 511ad531afd4090625def4d9aba1f5227bd44b8e
|
|
|
179894 |
"s390/hwcaps: shorten HWCAP defines" has shortened the prefix of the macros
|
|
|
179894 |
from "HWCAP_S390_" to "HWCAP_". For compatibility reasons, we do not
|
|
|
179894 |
change the prefix in public glibc header file.
|
|
|
179894 |
---
|
|
|
179894 |
sysdeps/s390/dl-procinfo.c | 4 ++--
|
|
|
179894 |
sysdeps/s390/dl-procinfo.h | 4 +++-
|
|
|
179894 |
sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 7 +++++++
|
|
|
179894 |
3 files changed, 12 insertions(+), 3 deletions(-)
|
|
|
179894 |
|
|
|
179894 |
diff --git a/sysdeps/s390/dl-procinfo.c b/sysdeps/s390/dl-procinfo.c
|
|
|
179894 |
index 7314c31b15..97be34fe9d 100644
|
|
|
179894 |
--- a/sysdeps/s390/dl-procinfo.c
|
|
|
179894 |
+++ b/sysdeps/s390/dl-procinfo.c
|
|
|
179894 |
@@ -45,13 +45,13 @@
|
|
|
179894 |
#if !defined PROCINFO_DECL && defined SHARED
|
|
|
179894 |
._dl_s390_cap_flags
|
|
|
179894 |
#else
|
|
|
179894 |
-PROCINFO_CLASS const char _dl_s390_cap_flags[21][9]
|
|
|
179894 |
+PROCINFO_CLASS const char _dl_s390_cap_flags[23][9]
|
|
|
179894 |
#endif
|
|
|
179894 |
#ifndef PROCINFO_DECL
|
|
|
179894 |
= {
|
|
|
179894 |
"esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh",
|
|
|
179894 |
"highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt",
|
|
|
179894 |
- "vxp2", "nnpa"
|
|
|
179894 |
+ "vxp2", "nnpa", "pcimio", "sie"
|
|
|
179894 |
}
|
|
|
179894 |
#endif
|
|
|
179894 |
#if !defined SHARED || defined PROCINFO_DECL
|
|
|
179894 |
diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
|
|
|
179894 |
index 2502dd2604..d9a3b264ff 100644
|
|
|
179894 |
--- a/sysdeps/s390/dl-procinfo.h
|
|
|
179894 |
+++ b/sysdeps/s390/dl-procinfo.h
|
|
|
179894 |
@@ -20,7 +20,7 @@
|
|
|
179894 |
#define _DL_PROCINFO_H 1
|
|
|
179894 |
#include <ldsodefs.h>
|
|
|
179894 |
|
|
|
179894 |
-#define _DL_HWCAP_COUNT 21
|
|
|
179894 |
+#define _DL_HWCAP_COUNT 23
|
|
|
179894 |
|
|
|
179894 |
#define _DL_PLATFORMS_COUNT 10
|
|
|
179894 |
|
|
|
179894 |
@@ -62,6 +62,8 @@ enum
|
|
|
179894 |
HWCAP_S390_DFLT = 1 << 18,
|
|
|
179894 |
HWCAP_S390_VXRS_PDE2 = 1 << 19,
|
|
|
179894 |
HWCAP_S390_NNPA = 1 << 20,
|
|
|
179894 |
+ HWCAP_S390_PCI_MIO = 1 << 21,
|
|
|
179894 |
+ HWCAP_S390_SIE = 1 << 22,
|
|
|
179894 |
};
|
|
|
179894 |
|
|
|
179894 |
#define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
|
|
|
179894 |
diff --git a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
179894 |
index e9bd3684db..00e73a3e3b 100644
|
|
|
179894 |
--- a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
179894 |
+++ b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
|
|
|
179894 |
@@ -22,6 +22,11 @@
|
|
|
179894 |
|
|
|
179894 |
/*
|
|
|
179894 |
* The following must match the kernels asm/elf.h.
|
|
|
179894 |
+ * Note: The kernel commit 511ad531afd4090625def4d9aba1f5227bd44b8e
|
|
|
179894 |
+ * "s390/hwcaps: shorten HWCAP defines" has shortened the prefix of the macros
|
|
|
179894 |
+ * from "HWCAP_S390_" to "HWCAP_". For compatibility reasons, we do not
|
|
|
179894 |
+ * change the prefix in public glibc header file.
|
|
|
179894 |
+ *
|
|
|
179894 |
* Note that these are *not* the same as the STORE FACILITY LIST bits.
|
|
|
179894 |
*/
|
|
|
179894 |
#define HWCAP_S390_ESAN3 1
|
|
|
179894 |
@@ -48,3 +53,5 @@
|
|
|
179894 |
#define HWCAP_S390_DFLT 262144
|
|
|
179894 |
#define HWCAP_S390_VXRS_PDE2 524288
|
|
|
179894 |
#define HWCAP_S390_NNPA 1048576
|
|
|
179894 |
+#define HWCAP_S390_PCI_MIO 2097152
|
|
|
179894 |
+#define HWCAP_S390_SIE 4194304
|
|
|
179894 |
--
|
|
|
179894 |
2.31.1
|
|
|
179894 |
|