summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-04-05 15:17:42 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-04-05 00:33:14 -0500
commite0c7c89b748312244c1b034b8b5279131add20bc (patch)
tree8a638d9ed4e1003b9768f835a5215fc9e836845a
parentcfe9d4416aab87103bb90e734abd8d329a168656 (diff)
downloadtalos-skiboot-e0c7c89b748312244c1b034b8b5279131add20bc.tar.gz
talos-skiboot-e0c7c89b748312244c1b034b8b5279131add20bc.zip
core/cpufeatures: Fix setting DARN and SCV HWCAP feature bits
DARN and SCV has been assigned AT_HWCAP2 (32-63) bits: #define PPC_FEATURE2_DARN 0x00200000 /* darn random number insn */ #define PPC_FEATURE2_SCV 0x00100000 /* scv syscall */ A cpufeatures-aware OS will not advertise these to userspace without this patch. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--core/cpufeatures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cpufeatures.c b/core/cpufeatures.c
index fa946e4c..e9d2daf4 100644
--- a/core/cpufeatures.c
+++ b/core/cpufeatures.c
@@ -558,7 +558,7 @@ static const struct cpu_feature cpu_features_table[] = {
CPU_P9,
ISA_V3_0B, USABLE_OS|USABLE_PR,
HV_NONE, OS_CUSTOM,
- -1, PPC_BITLSHIFT(51), -1,
+ -1, PPC_BITLSHIFT(51), 52,
NULL, },
/*
@@ -612,7 +612,7 @@ static const struct cpu_feature cpu_features_table[] = {
CPU_P9,
ISA_V3_0B, USABLE_HV|USABLE_OS|USABLE_PR,
HV_NONE, OS_NONE,
- -1, -1, -1,
+ -1, -1, 53,
NULL, },
/*
OpenPOWER on IntegriCloud