1# SPDX-License-Identifier: GPL-2.0 2config PPC_PSERIES 3 depends on PPC64 && PPC_BOOK3S 4 bool "IBM pSeries & new (POWER5-based) iSeries" 5 select HAVE_PCSPKR_PLATFORM 6 select MPIC 7 select OF_DYNAMIC 8 select FORCE_PCI 9 select PCI_MSI 10 select GENERIC_ALLOCATOR 11 select PPC_XICS 12 select PPC_XIVE_SPAPR 13 select PPC_ICP_NATIVE 14 select PPC_ICP_HV 15 select PPC_ICS_RTAS 16 select PPC_I8259 17 select PPC_RTAS 18 select PPC_RTAS_DAEMON 19 select RTAS_ERROR_LOGGING 20 select PPC_UDBG_16550 21 select PPC_DOORBELL 22 select HOTPLUG_CPU 23 select FORCE_SMP 24 select SWIOTLB 25 select ARCH_SUPPORTS_PER_VMA_LOCK 26 default y 27 28config PARAVIRT 29 bool 30 31config PARAVIRT_SPINLOCKS 32 bool 33 34config PARAVIRT_TIME_ACCOUNTING 35 select PARAVIRT 36 bool 37 38config PPC_SPLPAR 39 bool "Support for shared-processor logical partitions" 40 depends on PPC_PSERIES 41 select PARAVIRT_SPINLOCKS if PPC_QUEUED_SPINLOCKS 42 select PARAVIRT_TIME_ACCOUNTING if VIRT_CPU_ACCOUNTING_GEN 43 default y 44 help 45 Enabling this option will make the kernel run more efficiently 46 on logically-partitioned pSeries systems which use shared 47 processors, that is, which share physical processors between 48 two or more partitions. 49 50 Say Y if you are unsure. 51 52config DTL 53 bool "Dispatch Trace Log" 54 depends on PPC_SPLPAR && DEBUG_FS 55 help 56 SPLPAR machines can log hypervisor preempt & dispatch events to a 57 kernel buffer. Saying Y here will enable logging these events, 58 which are accessible through a debugfs file. 59 60 Say N if you are unsure. 61 62config PSERIES_ENERGY 63 tristate "pSeries energy management capabilities driver" 64 depends on PPC_PSERIES 65 default y 66 help 67 Provides interface to platform energy management capabilities 68 on supported PSERIES platforms. 69 Provides: /sys/devices/system/cpu/pseries_(de)activation_hint_list 70 and /sys/devices/system/cpu/cpuN/pseries_(de)activation_hint 71 72config IO_EVENT_IRQ 73 bool "IO Event Interrupt support" 74 depends on PPC_PSERIES 75 default y 76 help 77 Select this option, if you want to enable support for IO Event 78 interrupts. IO event interrupt is a mechanism provided by RTAS 79 to return information about hardware error and non-error events 80 which may need OS attention. RTAS returns events for multiple 81 event types and scopes. Device drivers can register their handlers 82 to receive events. 83 84 This option will only enable the IO event platform code. You 85 will still need to enable or compile the actual drivers 86 that use this infrastructure to handle IO event interrupts. 87 88 Say Y if you are unsure. 89 90config LPARCFG 91 bool "LPAR Configuration Data" 92 depends on PPC_PSERIES 93 help 94 Provide system capacity information via human readable 95 <key word>=<value> pairs through a /proc/ppc64/lparcfg interface. 96 97config PPC_PSERIES_DEBUG 98 depends on PPC_PSERIES && PPC_EARLY_DEBUG 99 bool "Enable extra debug logging in platforms/pseries" 100 default y 101 help 102 Say Y here if you want the pseries core to produce a bunch of 103 debug messages to the system log. Select this if you are having a 104 problem with the pseries core and want to see more of what is 105 going on. This does not enable debugging in lpar.c, which must 106 be manually done due to its verbosity. 107 108config PPC_SMLPAR 109 bool "Support for shared-memory logical partitions" 110 depends on PPC_PSERIES 111 select LPARCFG 112 help 113 Select this option to enable shared memory partition support. 114 With this option a system running in an LPAR can be given more 115 memory than physically available and will allow firmware to 116 balance memory across many LPARs. 117 118config CMM 119 tristate "Collaborative memory management" 120 depends on PPC_SMLPAR 121 select MEMORY_BALLOON 122 default y 123 help 124 Select this option, if you want to enable the kernel interface 125 to reduce the memory size of the system. This is accomplished 126 by allocating pages of memory and put them "on hold". This only 127 makes sense for a system running in an LPAR where the unused pages 128 will be reused for other LPARs. The interface allows firmware to 129 balance memory across many LPARs. 130 131config HV_PERF_CTRS 132 bool "Hypervisor supplied PMU events (24x7 & GPCI)" 133 default y 134 depends on PERF_EVENTS && PPC_PSERIES 135 help 136 Enable access to hypervisor supplied counters in perf. Currently, 137 this enables code that uses the hcall GetPerfCounterInfo and 24x7 138 interfaces to retrieve counters. GPCI exists on Power 6 and later 139 systems. 24x7 is available on Power 8 and later systems. 140 141 If unsure, select Y. 142 143config VPA_PMU 144 tristate "VPA PMU events" 145 depends on KVM_BOOK3S_64_HV && HV_PERF_CTRS 146 help 147 Enable access to the VPA PMU counters via perf. This enables 148 code that support measurement for KVM on PowerVM(KoP) feature. 149 PAPR hypervisor has introduced three new counters in the VPA area 150 of LPAR CPUs for KVM L2 guest observability. Two for context switches 151 from host to guest and vice versa, and one counter for getting 152 the total time spent inside the KVM guest. This config enables code 153 that access these software counters via perf. 154 155 If unsure, Select N. 156 157config IBMVIO 158 depends on PPC_PSERIES 159 bool 160 default y 161 162config IBMEBUS 163 depends on PPC_PSERIES && !CPU_LITTLE_ENDIAN 164 bool "Support for GX bus based adapters" 165 help 166 Bus device driver for GX bus based adapters. 167 168config PSERIES_PLPKS 169 depends on PPC_PSERIES 170 select NLS 171 bool 172 # PowerVM provides an isolated Platform Keystore (PKS) storage 173 # allocation for each LPAR with individually managed access 174 # controls to store sensitive information securely. It can be 175 # used to store asymmetric public keys or secrets as required 176 # by different usecases. 177 # 178 # This option is selected by in-kernel consumers that require 179 # access to the PKS. 180 181config PSERIES_PLPKS_SED 182 depends on PPC_PSERIES 183 bool 184 # This option is selected by in-kernel consumers that require 185 # access to the SED PKS keystore. 186 187config PAPR_SCM 188 depends on PPC_PSERIES && MEMORY_HOTPLUG && LIBNVDIMM 189 tristate "Support for the PAPR Storage Class Memory interface" 190 help 191 Enable access to hypervisor provided storage class memory. 192 193config PPC_SVM 194 bool "Secure virtual machine (SVM) support for POWER" 195 depends on PPC_PSERIES 196 select SWIOTLB 197 select ARCH_HAS_MEM_ENCRYPT 198 select ARCH_HAS_FORCE_DMA_UNENCRYPTED 199 select ARCH_HAS_CC_PLATFORM 200 help 201 There are certain POWER platforms which support secure guests using 202 the Protected Execution Facility, with the help of an Ultravisor 203 executing below the hypervisor layer. This enables support for 204 those guests. 205 206 If unsure, say "N". 207