Skip to content

Commit c0621ac

Browse files
Ingo Molnaracmel
authored andcommitted
tools headers: Sync {tools/,}arch/powerpc/include/uapi/asm/kvm.h, {tools/,}arch/x86/include/asm/cpufeatures.h and {tools/,}arch/arm/include/uapi/asm/kvm.h
The following upstream headers were updated: - The x86 cpufeatures.h file picked up a couple of new feature entries - The PowerPC and ARM KVM headers picked up new features None of which requires changes to perf tooling, so refresh the tooling copy. Solves these build time warnings: Warning: arch/x86/include/asm/cpufeatures.h differs from kernel Warning: arch/powerpc/include/uapi/asm/kvm.h differs from kernel Warning: arch/arm/include/uapi/asm/kvm.h differs from kernel Signed-off-by: Ingo Molnar <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ resync tools/arch/x86/include/asm/cpufeatures.h ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ecc4c56 commit c0621ac

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

tools/arch/arm/include/uapi/asm/kvm.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ struct kvm_regs {
8484
#define KVM_VGIC_V2_DIST_SIZE 0x1000
8585
#define KVM_VGIC_V2_CPU_SIZE 0x2000
8686

87+
/* Supported VGICv3 address types */
88+
#define KVM_VGIC_V3_ADDR_TYPE_DIST 2
89+
#define KVM_VGIC_V3_ADDR_TYPE_REDIST 3
90+
#define KVM_VGIC_ITS_ADDR_TYPE 4
91+
92+
#define KVM_VGIC_V3_DIST_SIZE SZ_64K
93+
#define KVM_VGIC_V3_REDIST_SIZE (2 * SZ_64K)
94+
#define KVM_VGIC_V3_ITS_SIZE (2 * SZ_64K)
95+
8796
#define KVM_ARM_VCPU_POWER_OFF 0 /* CPU is started in OFF state */
8897
#define KVM_ARM_VCPU_PSCI_0_2 1 /* CPU uses PSCI v0.2 */
8998

tools/arch/powerpc/include/uapi/asm/kvm.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,10 @@ struct kvm_get_htab_header {
573573
#define KVM_REG_PPC_SPRG9 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xba)
574574
#define KVM_REG_PPC_DBSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbb)
575575

576+
/* POWER9 registers */
577+
#define KVM_REG_PPC_TIDR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbc)
578+
#define KVM_REG_PPC_PSSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbd)
579+
576580
/* Transactional Memory checkpointed state:
577581
* This is all GPRs, all VSX regs and a subset of SPRs
578582
*/
@@ -596,6 +600,7 @@ struct kvm_get_htab_header {
596600
#define KVM_REG_PPC_TM_VSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U32 | 0x67)
597601
#define KVM_REG_PPC_TM_DSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x68)
598602
#define KVM_REG_PPC_TM_TAR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x69)
603+
#define KVM_REG_PPC_TM_XER (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x6a)
599604

600605
/* PPC64 eXternal Interrupt Controller Specification */
601606
#define KVM_DEV_XICS_GRP_SOURCES 1 /* 64-bit source attributes */

tools/arch/x86/include/asm/cpufeatures.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
#define X86_FEATURE_AMD_DCM ( 3*32+27) /* multi-node processor */
106106
#define X86_FEATURE_APERFMPERF ( 3*32+28) /* APERFMPERF */
107107
#define X86_FEATURE_NONSTOP_TSC_S3 ( 3*32+30) /* TSC doesn't stop in S3 state */
108+
#define X86_FEATURE_TSC_KNOWN_FREQ ( 3*32+31) /* TSC has known frequency */
108109

109110
/* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */
110111
#define X86_FEATURE_XMM3 ( 4*32+ 0) /* "pni" SSE-3 */
@@ -188,10 +189,14 @@
188189

189190
#define X86_FEATURE_CPB ( 7*32+ 2) /* AMD Core Performance Boost */
190191
#define X86_FEATURE_EPB ( 7*32+ 3) /* IA32_ENERGY_PERF_BIAS support */
192+
#define X86_FEATURE_CAT_L3 ( 7*32+ 4) /* Cache Allocation Technology L3 */
193+
#define X86_FEATURE_CAT_L2 ( 7*32+ 5) /* Cache Allocation Technology L2 */
194+
#define X86_FEATURE_CDP_L3 ( 7*32+ 6) /* Code and Data Prioritization L3 */
191195

192196
#define X86_FEATURE_HW_PSTATE ( 7*32+ 8) /* AMD HW-PState */
193197
#define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */
194198

199+
#define X86_FEATURE_INTEL_PPIN ( 7*32+14) /* Intel Processor Inventory Number */
195200
#define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */
196201
#define X86_FEATURE_AVX512_4VNNIW (7*32+16) /* AVX-512 Neural Network Instructions */
197202
#define X86_FEATURE_AVX512_4FMAPS (7*32+17) /* AVX-512 Multiply Accumulation Single precision */
@@ -220,11 +225,13 @@
220225
#define X86_FEATURE_RTM ( 9*32+11) /* Restricted Transactional Memory */
221226
#define X86_FEATURE_CQM ( 9*32+12) /* Cache QoS Monitoring */
222227
#define X86_FEATURE_MPX ( 9*32+14) /* Memory Protection Extension */
228+
#define X86_FEATURE_RDT_A ( 9*32+15) /* Resource Director Technology Allocation */
223229
#define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */
224230
#define X86_FEATURE_AVX512DQ ( 9*32+17) /* AVX-512 DQ (Double/Quad granular) Instructions */
225231
#define X86_FEATURE_RDSEED ( 9*32+18) /* The RDSEED instruction */
226232
#define X86_FEATURE_ADX ( 9*32+19) /* The ADCX and ADOX instructions */
227233
#define X86_FEATURE_SMAP ( 9*32+20) /* Supervisor Mode Access Prevention */
234+
#define X86_FEATURE_AVX512IFMA ( 9*32+21) /* AVX-512 Integer Fused Multiply-Add instructions */
228235
#define X86_FEATURE_CLFLUSHOPT ( 9*32+23) /* CLFLUSHOPT instruction */
229236
#define X86_FEATURE_CLWB ( 9*32+24) /* CLWB instruction */
230237
#define X86_FEATURE_AVX512PF ( 9*32+26) /* AVX-512 Prefetch */
@@ -278,8 +285,10 @@
278285
#define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */
279286

280287
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ecx), word 16 */
288+
#define X86_FEATURE_AVX512VBMI (16*32+ 1) /* AVX512 Vector Bit Manipulation instructions*/
281289
#define X86_FEATURE_PKU (16*32+ 3) /* Protection Keys for Userspace */
282290
#define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */
291+
#define X86_FEATURE_RDPID (16*32+ 22) /* RDPID instruction */
283292

284293
/* AMD-defined CPU features, CPUID level 0x80000007 (ebx), word 17 */
285294
#define X86_FEATURE_OVERFLOW_RECOV (17*32+0) /* MCA overflow recovery support */
@@ -310,4 +319,6 @@
310319
#define X86_BUG_NULL_SEG X86_BUG(10) /* Nulling a selector preserves the base */
311320
#define X86_BUG_SWAPGS_FENCE X86_BUG(11) /* SWAPGS without input dep on GS */
312321
#define X86_BUG_MONITOR X86_BUG(12) /* IPI required to wake up remote CPU */
322+
#define X86_BUG_AMD_E400 X86_BUG(13) /* CPU is among the affected by Erratum 400 */
323+
313324
#endif /* _ASM_X86_CPUFEATURES_H */

0 commit comments

Comments
 (0)