diff mbox

[1/5] S390: Add new hwcap values for new cpu architecture - arch12.

Message ID 1498027882-24892-1-git-send-email-stli@linux.vnet.ibm.com
State New
Headers show

Commit Message

Stefan Liebler June 21, 2017, 6:51 a.m. UTC
The new hwcap values indicate support for:
- Vector packed decimal facility
- Vector enhancements facility 1
- Guarded storage facility

Note: arch12 is NOT the official name of the new CPU.
It refers to the edition number of the Principle of Operations manual.

ChangeLog:

	* sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
	Add vxd, vxe, gs flag.
	* sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXD, HWCAP_S390_VXE,
	HWCAP_S390_GS capability.
	* sysdeps/unix/sysv/linux/s390/bits/hwcap.h
	(HWCAP_S390_VXD, HWCAP_S390_VXE, HWCAP_S390_GS): Define.
---
 sysdeps/s390/dl-procinfo.c                | 5 +++--
 sysdeps/s390/dl-procinfo.h                | 5 ++++-
 sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
 3 files changed, 10 insertions(+), 3 deletions(-)

Comments

Stefan Liebler June 27, 2017, 12:06 p.m. UTC | #1
On 06/21/2017 08:51 AM, Stefan Liebler wrote:
> The new hwcap values indicate support for:
> - Vector packed decimal facility
> - Vector enhancements facility 1
> - Guarded storage facility
> 
> Note: arch12 is NOT the official name of the new CPU.
> It refers to the edition number of the Principle of Operations manual.
> 
> ChangeLog:
> 
> 	* sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
> 	Add vxd, vxe, gs flag.
> 	* sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXD, HWCAP_S390_VXE,
> 	HWCAP_S390_GS capability.
> 	* sysdeps/unix/sysv/linux/s390/bits/hwcap.h
> 	(HWCAP_S390_VXD, HWCAP_S390_VXE, HWCAP_S390_GS): Define.
> ---
>   sysdeps/s390/dl-procinfo.c                | 5 +++--
>   sysdeps/s390/dl-procinfo.h                | 5 ++++-
>   sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
>   3 files changed, 10 insertions(+), 3 deletions(-)
> 
PING
Florian Weimer June 27, 2017, 12:12 p.m. UTC | #2
On 06/27/2017 02:06 PM, Stefan Liebler wrote:
> On 06/21/2017 08:51 AM, Stefan Liebler wrote:
>> The new hwcap values indicate support for:
>> - Vector packed decimal facility
>> - Vector enhancements facility 1
>> - Guarded storage facility
>>
>> Note: arch12 is NOT the official name of the new CPU.
>> It refers to the edition number of the Principle of Operations manual.
>>
>> ChangeLog:
>>
>>     * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
>>     Add vxd, vxe, gs flag.
>>     * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXD, HWCAP_S390_VXE,
>>     HWCAP_S390_GS capability.
>>     * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
>>     (HWCAP_S390_VXD, HWCAP_S390_VXE, HWCAP_S390_GS): Define.
>> ---
>>   sysdeps/s390/dl-procinfo.c                | 5 +++--
>>   sysdeps/s390/dl-procinfo.h                | 5 ++++-
>>   sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
>>   3 files changed, 10 insertions(+), 3 deletions(-)
>>
> PING

FWIW, I think you can assume consensus for such s390-specific changes,
especially if they do not alter ABI (so that we can revert them if
necessary, without recompiling applications).

“In general this maintainership means that you have the discretion to
assume consensus for a change of your own without waiting for review or
comments on consensus.”

<https://sourceware.org/glibc/wiki/MAINTAINERS>

Thanks,
Florian
Carlos O'Donell June 27, 2017, 12:49 p.m. UTC | #3
On 06/27/2017 08:12 AM, Florian Weimer wrote:
> On 06/27/2017 02:06 PM, Stefan Liebler wrote:
>> On 06/21/2017 08:51 AM, Stefan Liebler wrote:
>>> The new hwcap values indicate support for:
>>> - Vector packed decimal facility
>>> - Vector enhancements facility 1
>>> - Guarded storage facility
>>>
>>> Note: arch12 is NOT the official name of the new CPU.
>>> It refers to the edition number of the Principle of Operations manual.
>>>
>>> ChangeLog:
>>>
>>>     * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
>>>     Add vxd, vxe, gs flag.
>>>     * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXD, HWCAP_S390_VXE,
>>>     HWCAP_S390_GS capability.
>>>     * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
>>>     (HWCAP_S390_VXD, HWCAP_S390_VXE, HWCAP_S390_GS): Define.
>>> ---
>>>   sysdeps/s390/dl-procinfo.c                | 5 +++--
>>>   sysdeps/s390/dl-procinfo.h                | 5 ++++-
>>>   sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
>>>   3 files changed, 10 insertions(+), 3 deletions(-)
>>>
>> PING
> 
> FWIW, I think you can assume consensus for such s390-specific changes,
> especially if they do not alter ABI (so that we can revert them if
> necessary, without recompiling applications).
> 
> “In general this maintainership means that you have the discretion to
> assume consensus for a change of your own without waiting for review or
> comments on consensus.”
> 
> <https://sourceware.org/glibc/wiki/MAINTAINERS>

Agreed. Unless you are looking for additional review, as a machine maintainer
you have assumed consensus and are responsible for your changes :-)
Stefan Liebler June 27, 2017, 3:15 p.m. UTC | #4
On 06/27/2017 02:49 PM, Carlos O'Donell wrote:
> On 06/27/2017 08:12 AM, Florian Weimer wrote:
>> On 06/27/2017 02:06 PM, Stefan Liebler wrote:
>>> On 06/21/2017 08:51 AM, Stefan Liebler wrote:
>>>> The new hwcap values indicate support for:
>>>> - Vector packed decimal facility
>>>> - Vector enhancements facility 1
>>>> - Guarded storage facility
>>>>
>>>> Note: arch12 is NOT the official name of the new CPU.
>>>> It refers to the edition number of the Principle of Operations manual.
>>>>
>>>> ChangeLog:
>>>>
>>>>      * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
>>>>      Add vxd, vxe, gs flag.
>>>>      * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXD, HWCAP_S390_VXE,
>>>>      HWCAP_S390_GS capability.
>>>>      * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
>>>>      (HWCAP_S390_VXD, HWCAP_S390_VXE, HWCAP_S390_GS): Define.
>>>> ---
>>>>    sysdeps/s390/dl-procinfo.c                | 5 +++--
>>>>    sysdeps/s390/dl-procinfo.h                | 5 ++++-
>>>>    sysdeps/unix/sysv/linux/s390/bits/hwcap.h | 3 +++
>>>>    3 files changed, 10 insertions(+), 3 deletions(-)
>>>>
>>> PING
>>
>> FWIW, I think you can assume consensus for such s390-specific changes,
>> especially if they do not alter ABI (so that we can revert them if
>> necessary, without recompiling applications).
>>
>> “In general this maintainership means that you have the discretion to
>> assume consensus for a change of your own without waiting for review or
>> comments on consensus.”
>>
>> <https://sourceware.org/glibc/wiki/MAINTAINERS>
> 
> Agreed. Unless you are looking for additional review, as a machine maintainer
> you have assumed consensus and are responsible for your changes :-)
> 
Okay. Then I've committed it.

Thanks.
Stefan
diff mbox

Patch

diff --git a/sysdeps/s390/dl-procinfo.c b/sysdeps/s390/dl-procinfo.c
index 4fcde8e..436e205 100644
--- a/sysdeps/s390/dl-procinfo.c
+++ b/sysdeps/s390/dl-procinfo.c
@@ -46,11 +46,12 @@ 
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_s390_cap_flags
 #else
-PROCINFO_CLASS const char _dl_s390_cap_flags[12][9]
+PROCINFO_CLASS const char _dl_s390_cap_flags[15][9]
 #endif
 #ifndef PROCINFO_DECL
 = {
-     "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh", "highgprs", "te", "vx"
+     "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh",
+     "highgprs", "te", "vx", "vxd", "vxe", "gs"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
index c997896..1645cf3 100644
--- a/sysdeps/s390/dl-procinfo.h
+++ b/sysdeps/s390/dl-procinfo.h
@@ -21,7 +21,7 @@ 
 #define _DL_PROCINFO_H	1
 #include <ldsodefs.h>
 
-#define _DL_HWCAP_COUNT 12
+#define _DL_HWCAP_COUNT 15
 
 #define _DL_PLATFORMS_COUNT	8
 
@@ -51,6 +51,9 @@  enum
   HWCAP_S390_HIGH_GPRS = 1 << 9,
   HWCAP_S390_TE = 1 << 10,
   HWCAP_S390_VX = 1 << 11,
+  HWCAP_S390_VXD = 1 << 12,
+  HWCAP_S390_VXE = 1 << 13,
+  HWCAP_S390_GS = 1 << 14,
 };
 
 #define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
diff --git a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
index 6a7e432..ecaa8d3 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/hwcap.h
@@ -36,3 +36,6 @@ 
 #define HWCAP_S390_HIGH_GPRS    512
 #define HWCAP_S390_TE           1024
 #define HWCAP_S390_VX           2048
+#define HWCAP_S390_VXD          4096
+#define HWCAP_S390_VXE          8192
+#define HWCAP_S390_GS           16384