From c545cfb0dcb85e35de60262e9d169ad88b677ffe Mon Sep 17 00:00:00 2001 From: Jan Schintag Date: Wed, 24 Nov 2021 16:07:05 +0100 Subject: [PATCH] source/cpu: add additional IBM Z CPU Flags Add the newly supported s390x CPU Flags for the 5.15 Kernel Signed-off-by: Jan Schintag --- source/cpu/cpuid_s390x.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/cpu/cpuid_s390x.go b/source/cpu/cpuid_s390x.go index fbd47098d..339761834 100644 --- a/source/cpu/cpuid_s390x.go +++ b/source/cpu/cpuid_s390x.go @@ -47,6 +47,10 @@ const ( HWCAP_S390_VXRS_PDE = 65536 HWCAP_S390_SORT = 131072 HWCAP_S390_DFLT = 262144 + HWCAP_NR_VXRS_PDE2 = 524288 + HWCAP_NR_NNPA = 1048576 + HWCAP_NR_PCI_MIO = 2097152 + HWCAP_NR_SIE = 4194304 ) var flagNames_s390x = map[uint64]string{ @@ -69,6 +73,10 @@ var flagNames_s390x = map[uint64]string{ HWCAP_S390_VXRS_PDE: "VXP", HWCAP_S390_SORT: "SORT", HWCAP_S390_DFLT: "DFLT", + HWCAP_NR_VXRS_PDE2: "VXP2", + HWCAP_NR_NNPA: "NNPA", + HWCAP_NR_PCI_MIO: "PCIMIO", + HWCAP_NR_SIE: "SIE", } func getCpuidFlags() []string {