Skip to contentSkip to conversation

s390x/cpumodel fixes for 4.1

PATCH In review Christian Borntraeger 5 participants 21 messages Jul 15, 2019 – Jul 16, 2019

lore
Share & tools
lore
#0 lore raw

cover s390x/cpumodel fixes for 4.1

Some fallout of the gen15 cpu model. As this is new in 4.1 it is still time to fixup some aspects.

Christian Borntraeger (3):
s390x/cpumodel: remove esort from the default model s390x/cpumodel: also change name of vxbeh s390x/cpumodel: change internal name of vxp to make description

 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/3 s390x/cpumodel: remove esort from the default model

esort might not be available on all models.

Fixes caef62430fed6e73 ("s390x/cpumodel: add gen15 defintions")
---
 target/s390x/gen-features.c | 1 -
 1 file changed, 1 deletion(-)
target/s390x/gen-features.c +0 -1
index 9f216219ff53..6debfc1d217e 100644
@@ -642,7 +642,6 @@ static uint16_t default_GEN14_GA1[] = {
 
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
-    S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
     S390_FEAT_VECTOR_BCD_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
Signature · 1 line
2.21.0
Reviewed-by on v1 1/3
#2 lore raw

Re: [Qemu-devel] [PATCH 1/3] s390x/cpumodel: remove esort from the default model

Quoted 14 lines · Christian Borntraeger

esort might not be available on all models.

Fixes caef62430fed6e73 ("s390x/cpumodel: add gen15 defintions")
---
 target/s390x/gen-features.c | 1 -
 1 file changed, 1 deletion(-)
target/s390x/gen-features.c +0 -0
index 9f216219ff53..6debfc1d217e 100644

target/s390x/gen-features.c static uint16_t default_GEN14_GA1[] = { · line 647

Quoted 7 lines
target/s390x/gen-features.c +0 -1
@@ -642,7 +642,6 @@ static uint16_t default_GEN14_GA1[] = {
 
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
-    S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
     S390_FEAT_VECTOR_BCD_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
Signature · 3 lines
Thanks,

David / dhildenb
Reviewed-by on v1 1/3
#3 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 1/3] s390x/cpumodel: remove esort from the default model

In reply to Christian Borntraeger
Quoted 14 lines · Christian Borntraeger

esort might not be available on all models.

Fixes caef62430fed6e73 ("s390x/cpumodel: add gen15 defintions")
---
 target/s390x/gen-features.c | 1 -
 1 file changed, 1 deletion(-)
target/s390x/gen-features.c +0 -0
index 9f216219ff53..6debfc1d217e 100644

target/s390x/gen-features.c static uint16_t default_GEN14_GA1[] = { · line 647

Quoted 7 lines
target/s390x/gen-features.c +0 -1
@@ -642,7 +642,6 @@ static uint16_t default_GEN14_GA1[] = {
 
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
-    S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
     S390_FEAT_VECTOR_BCD_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,

FWIW,

#4 lore raw

PATCH 2/3 s390x/cpumodel: also change name of vxbeh

In reply to Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +1 -1
index 3118a9f89228..99f58a89318a 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
Signature · 1 line
2.21.0
Reviewed-by on v1 2/3
#5 lore raw

Re: [Qemu-devel] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 21 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 110

Quoted 8 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
Signature · 3 lines
Thanks,

David / dhildenb
#6 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

In reply to Christian Borntraeger
Quoted 20 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

We already have:

DEF_FEAT(VECTOR_PACKED_DECIMAL, "vxpd", STFL, 134, "Vector packed decimal facility")

... so I rather expected something like "vxpde" here instead? Or is there a reason for just using "vxp"?

Thomas

#7 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 29 lines · Thomas Huth
Quoted 20 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

We already have:

Quoted 4 lines

DEF_FEAT(VECTOR_PACKED_DECIMAL, "vxpd", STFL, 134, "Vector packed decimal facility")

... so I rather expected something like "vxpde" here instead? Or is there a reason

for just using "vxp"?

Matching what the Linux kernel has.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/s390/kernel/processor.c?id=a8fd61688dfad6fdce95fa64cacd8a66595697b8

Quoted 3 lines

Thomas

#8 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 34 lines · Christian Borntraeger
Quoted 31 lines · Thomas Huth
Quoted 20 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

We already have:

DEF_FEAT(VECTOR_PACKED_DECIMAL, "vxpd", STFL, 134, "Vector packed decimal facility")

Quoted 8 lines
Quoted 2 lines

... so I rather expected something like "vxpde" here instead? Or is there a reason

for just using "vxp"?

Matching what the Linux kernel has.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/s390/kernel/processor.c?id=a8fd61688dfad6fdce95fa64cacd8a66595697b8

Quoted 1 line

Since we differ from the kernel in other places as well we might use something else, of course.

#9 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 39 lines · Christian Borntraeger
Quoted 36 lines · Christian Borntraeger
Quoted 33 lines · Thomas Huth
Quoted 20 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

We already have:

DEF_FEAT(VECTOR_PACKED_DECIMAL, "vxpd", STFL, 134, "Vector packed decimal facility")

... so I rather expected something like "vxpde" here instead? Or is there a reason

Quoted 9 lines
Quoted 6 lines

for just using "vxp"?

Matching what the Linux kernel has.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/s390/kernel/processor.c?id=a8fd61688dfad6fdce95fa64cacd8a66595697b8

Quoted 1 line

Since we differ from the kernel in other places as well we might use something else, of course.

We also have

sortl vs. sort
vxe vs. vxeh
vxe2 vs. vxeh2

So I tend to prefer "vxpde", or rather "vxpdeh".

(all other enhancement facilities have "eh", so we should actually use "vxpdeh")

Signature · 3 lines
Thanks,

David / dhildenb
#10 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 52 lines · David Hildenbrand
Quoted 39 lines · Christian Borntraeger
Quoted 36 lines · Christian Borntraeger
Quoted 33 lines · Thomas Huth
Quoted 20 lines · Christian Borntraeger

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxp".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..99f58a89318a 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

We already have:

DEF_FEAT(VECTOR_PACKED_DECIMAL, "vxpd", STFL, 134, "Vector packed decimal facility")

... so I rather expected something like "vxpde" here instead? Or is there a reason

Quoted 9 lines
Quoted 6 lines

for just using "vxp"?

Matching what the Linux kernel has.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/s390/kernel/processor.c?id=a8fd61688dfad6fdce95fa64cacd8a66595697b8

Quoted 1 line

Since we differ from the kernel in other places as well we might use something else, of course.

We also have

Quoted 8 lines

sortl vs. sort
vxe vs. vxeh
vxe2 vs. vxeh2

So I tend to prefer "vxpde", or rather "vxpdeh".

(all other enhancement facilities have "eh", so we should actually use "vxpdeh")

Fine with me. Conny, shall I resend or can you fixup everything?

Reviewed-by David Hildenbrand
#11 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 8 lines · On Tue, 16 Jul 2019 09:25:42 +0200 Christian Borntraeger…
Quoted 6 lines · David Hildenbrand

We also have

sortl vs. sort
vxe vs. vxeh
vxe2 vs. vxeh2

Quoted 7 lines
Quoted 4 lines

So I tend to prefer "vxpde", or rather "vxpdeh".

(all other enhancement facilities have "eh", so we should actually use "vxpdeh")

Fine with me. Conny, shall I resend or can you fixup everything?

I now have the following; can you please double check?

commit a02c8264b7219bc30ec258f068c89b93ad244c36

Author: Christian Borntraeger <[email protected]>
Date:   Mon Jul 15 16:23:03 2019 +0200

s390x/cpumodel: also change name of vxbeh

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxpdeh".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")

Message-Id: <[email protected]>

target/s390x/cpu_features_def.inc.h +1 -1
index 3118a9f89228..05b7674affe6 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxpdeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
Reviewed-by
#12 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

Quoted 47 lines · Cornelia Huck
Quoted 8 lines · On Tue, 16 Jul 2019 09:25:42 +0200 Christian Borntraeger…
Quoted 6 lines · David Hildenbrand

We also have

sortl vs. sort
vxe vs. vxeh
vxe2 vs. vxeh2

Quoted 7 lines
Quoted 4 lines

So I tend to prefer "vxpde", or rather "vxpdeh".

(all other enhancement facilities have "eh", so we should actually use "vxpdeh")

Fine with me. Conny, shall I resend or can you fixup everything?

I now have the following; can you please double check?

commit a02c8264b7219bc30ec258f068c89b93ad244c36

Author: Christian Borntraeger <[email protected]>
Date:   Mon Jul 15 16:23:03 2019 +0200

s390x/cpumodel: also change name of vxbeh

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxpdeh".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")

Message-Id: <[email protected]>

target/s390x/cpu_features_def.inc.h +0 -0
index 3118a9f89228..05b7674affe6 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 109

Quoted 7 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxpdeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
#13 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 2/3] s390x/cpumodel: also change name of vxbeh

In reply to Cornelia Huck
Quoted 13 lines · Cornelia Huck
Quoted 10 lines · On Tue, 16 Jul 2019 09:25:42 +0200 Christian Borntraeger…
Quoted 8 lines · David Hildenbrand

We also have

sortl vs. sort
vxe vs. vxeh
vxe2 vs. vxeh2

So I tend to prefer "vxpde", or rather "vxpdeh".

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

(all other enhancement facilities have "eh", so we should actually use "vxpdeh")

Fine with me. Conny, shall I resend or can you fixup everything?

I now have the following; can you please double check?

looks good.

Quoted 36 lines

commit a02c8264b7219bc30ec258f068c89b93ad244c36

Author: Christian Borntraeger <[email protected]>
Date:   Mon Jul 15 16:23:03 2019 +0200

s390x/cpumodel: also change name of vxbeh

David suggested to keep everything in sync as 4.1 is not yet released. This patch fixes the name "vxbeh" into "vxpdeh".

To simplify the backports this patch will not change VECTOR_BCD_ENH as this is just an internal name. That will be done by an extra patch that does not need to be backported.

Fixes d05be57ddc2e ("s390: cpumodel: fix description for the new vector facility")
Fixes 54d65de0b525 ("s390x/cpumodel: vector enhancements")

Message-Id: <[email protected]>

target/s390x/cpu_features_def.inc.h +1 -1
index 3118a9f89228..05b7674affe6 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxbeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_BCD_ENH, "vxpdeh", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
#14 lore raw

PATCH 3/3 s390x/cpumodel: change internal name of vxp to make description

In reply to Christian Borntraeger

The internal macro name VECTOR_BCD_ENH does not match the actual description. Fix this.

---
 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
target/s390x/cpu_features_def.inc.h +1 -1
index 99f58a89318a..f7c52bc17c2e 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_PACKED_DECIMAL_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
target/s390x/gen-features.c +2 -2
index 6debfc1d217e..49a650ac52d0 100644
@@ -558,7 +558,7 @@ static uint16_t full_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,
@@ -643,7 +643,7 @@ static uint16_t default_GEN14_GA1[] = {
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,
Signature · 1 line
2.21.0
Reviewed-by on v1 3/3
#15 lore raw

Re: [Qemu-devel] [PATCH 3/3] s390x/cpumodel: change internal name of vxp to make description

Quoted 37 lines · Christian Borntraeger

The internal macro name VECTOR_BCD_ENH does not match the actual description. Fix this.

---
 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
target/s390x/cpu_features_def.inc.h +1 -1
index 99f58a89318a..f7c52bc17c2e 100644
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_PACKED_DECIMAL_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
target/s390x/gen-features.c +1 -1
index 6debfc1d217e..49a650ac52d0 100644
@@ -558,7 +558,7 @@ static uint16_t full_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,

target/s390x/gen-features.c static uint16_t default_GEN14_GA1[] = { · line 649

Quoted 8 lines
target/s390x/gen-features.c +1 -1
@@ -643,7 +643,7 @@ static uint16_t default_GEN14_GA1[] = {
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,
Signature · 3 lines
Thanks,

David / dhildenb
#16 lore raw

Re: [Qemu-devel] [PATCH 3/3] s390x/cpumodel: change internal name of vxp to make description

In reply to Christian Borntraeger
Quoted 8 lines · On Mon, 15 Jul 2019 16:23:04 +0200 Christian Borntraeger…

The internal macro name VECTOR_BCD_ENH does not match the actual description. Fix this.

---
 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

s/make/match/ in $SUBJECT?

#17 lore raw

Re: [Qemu-devel] [PATCH 3/3] s390x/cpumodel: change internal name of vxp to make description

Quoted 6 lines · Cornelia Huck
Quoted 3 lines · On Mon, 15 Jul 2019 16:23:04 +0200 Christian Borntraeger…

The internal macro name VECTOR_BCD_ENH does not match the actual description. Fix this.

Quoted 8 lines
Quoted 5 lines
---
 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

s/make/match/ in $SUBJECT?

yep.

Reviewed-by on v1 3/3
#18 lore raw

Re: [Qemu-devel] [qemu-s390x] [PATCH 3/3] s390x/cpumodel: change internal name of vxp to make description

In reply to Christian Borntraeger
Quoted 14 lines · Christian Borntraeger

The internal macro name VECTOR_BCD_ENH does not match the actual description. Fix this.

---
 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
target/s390x/cpu_features_def.inc.h +0 -0
index 99f58a89318a..f7c52bc17c2e 100644

target/s390x/cpu_features_def.inc.h DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil · line 107

Quoted 5 lines
target/s390x/cpu_features_def.inc.h +1 -1
@@ -104,7 +104,7 @@ DEF_FEAT(CMM_NT, "cmmnt", STFL, 147, "CMM: ESSA-enhancement (no translate) facil
 DEF_FEAT(VECTOR_ENH2, "vxeh2", STFL, 148, "Vector Enhancements facility 2")
 DEF_FEAT(ESORT_BASE, "esort-base", STFL, 150, "Enhanced-sort facility (excluding subfunctions)")
 DEF_FEAT(DEFLATE_BASE, "deflate-base", STFL, 151, "Deflate-conversion facility (excluding subfunctions)")
-DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")
+DEF_FEAT(VECTOR_PACKED_DECIMAL_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

With "vxpdeh" instead of "vxp":

Quoted 26 lines
target/s390x/cpu_features_def.inc.h +0 -0
 DEF_FEAT(MSA_EXT_9, "msa9-base", STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)")
 DEF_FEAT(ETOKEN, "etoken", STFL, 156, "Etoken facility")
 
target/s390x/gen-features.c +2 -2
index 6debfc1d217e..49a650ac52d0 100644
@@ -558,7 +558,7 @@ static uint16_t full_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_ENH_SORT,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,
@@ -643,7 +643,7 @@ static uint16_t default_GEN14_GA1[] = {
 static uint16_t default_GEN15_GA1[] = {
     S390_FEAT_VECTOR_ENH2,
     S390_FEAT_GROUP_DEFLATE_CONVERSION,
-    S390_FEAT_VECTOR_BCD_ENH,
+    S390_FEAT_VECTOR_PACKED_DECIMAL_ENH,
     S390_FEAT_GROUP_MSA_EXT_9,
     S390_FEAT_GROUP_MSA_EXT_9_PCKMO,
     S390_FEAT_ETOKEN,
#19 lore raw
In reply to Christian Borntraeger
Quoted 12 lines · On Mon, 15 Jul 2019 16:23:01 +0200 Christian Borntraeger…

Some fallout of the gen15 cpu model. As this is new in 4.1 it is still time to fixup some aspects.

Christian Borntraeger (3):
s390x/cpumodel: remove esort from the default model s390x/cpumodel: also change name of vxbeh s390x/cpumodel: change internal name of vxp to make description

 target/s390x/cpu_features_def.inc.h | 2 +-
 target/s390x/gen-features.c         | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

Thanks, queued to s390-fixes (with s/vxp/vxpdeh/).

#20 lore raw
In reply to Christian Borntraeger
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series seems to have some coding style problems. See output below for more information:

Message-id: [email protected]
Type: series
Subject: [Qemu-devel] [PATCH 0/3] s390x/cpumodel fixes for 4.1

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
t [tag update] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
7bc436d3ed s390x/cpumodel: change internal name of vxp to make description 6b0474bbb3 s390x/cpumodel: also change name of vxbeh 2a3445555a s390x/cpumodel: remove esort from the default model

=== OUTPUT BEGIN ===
1/3 Checking commit 2a3445555a55 (s390x/cpumodel: remove esort from the default model) 2/3 Checking commit 6b0474bbb3ec (s390x/cpumodel: also change name of vxbeh)
WARNING: line over 80 characters
#29: FILE: target/s390x/cpu_features_def.inc.h:107:
+DEF_FEAT(VECTOR_BCD_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

total: 0 errors, 1 warnings, 8 lines checked

Patch 2/3 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
3/3 Checking commit 7bc436d3eda4 (s390x/cpumodel: change internal name of vxp to make description)
ERROR: line over 90 characters
#22: FILE: target/s390x/cpu_features_def.inc.h:107:
+DEF_FEAT(VECTOR_PACKED_DECIMAL_ENH, "vxp", STFL, 152, "Vector-Packed-Decimal-Enhancement Facility")

total: 1 errors, 0 warnings, 24 lines checked

Patch 3/3 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.

=== OUTPUT END ===

Test command exited with code: 1

The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]