Commit 404e32e4 authored by Robert Jennings's avatar Robert Jennings Committed by Benjamin Herrenschmidt

powerpc/pseries: Support lower minimum entitlement for virtual processors

This patch changes the architecture vector to advertise support for a
lower minimum virtual processor entitled capacity.  The default
minimum without this patch is 10%, this patch specifies 1%.
Signed-off-by: default avatarRobert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 8b6ee040
...@@ -680,6 +680,9 @@ static void __init early_cmdline_parse(void) ...@@ -680,6 +680,9 @@ static void __init early_cmdline_parse(void)
#define OV3_VMX 0x40 /* VMX/Altivec */ #define OV3_VMX 0x40 /* VMX/Altivec */
#define OV3_DFP 0x20 /* decimal FP */ #define OV3_DFP 0x20 /* decimal FP */
/* Option vector 4: IBM PAPR implementation */
#define OV4_MIN_ENT_CAP 0x01 /* minimum VP entitled capacity */
/* Option vector 5: PAPR/OF options supported */ /* Option vector 5: PAPR/OF options supported */
#define OV5_LPAR 0x80 /* logical partitioning supported */ #define OV5_LPAR 0x80 /* logical partitioning supported */
#define OV5_SPLPAR 0x40 /* shared-processor LPAR supported */ #define OV5_SPLPAR 0x40 /* shared-processor LPAR supported */
...@@ -744,8 +747,9 @@ static unsigned char ibm_architecture_vec[] = { ...@@ -744,8 +747,9 @@ static unsigned char ibm_architecture_vec[] = {
OV3_FP | OV3_VMX | OV3_DFP, OV3_FP | OV3_VMX | OV3_DFP,
/* option vector 4: IBM PAPR implementation */ /* option vector 4: IBM PAPR implementation */
2 - 2, /* length */ 3 - 2, /* length */
0, /* don't halt */ 0, /* don't halt */
OV4_MIN_ENT_CAP, /* minimum VP entitled capacity */
/* option vector 5: PAPR/OF options */ /* option vector 5: PAPR/OF options */
13 - 2, /* length */ 13 - 2, /* length */
...@@ -762,7 +766,7 @@ static unsigned char ibm_architecture_vec[] = { ...@@ -762,7 +766,7 @@ static unsigned char ibm_architecture_vec[] = {
* must match by the macro below. Update the definition if * must match by the macro below. Update the definition if
* the structure layout changes. * the structure layout changes.
*/ */
#define IBM_ARCH_VEC_NRCORES_OFFSET 100 #define IBM_ARCH_VEC_NRCORES_OFFSET 101
W(NR_CPUS), /* number of cores supported */ W(NR_CPUS), /* number of cores supported */
/* option vector 6: IBM PAPR hints */ /* option vector 6: IBM PAPR hints */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment