1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "ARM System Control and Management Interface Protocol"
4 config ARM_SCMI_PROTOCOL
5 tristate "ARM System Control and Management Interface (SCMI) Message Protocol"
6 depends on ARM || ARM64 || COMPILE_TEST
8 ARM System Control and Management Interface (SCMI) protocol is a
9 set of operating system-independent software interfaces that are
10 used in system management. SCMI is extensible and currently provides
11 interfaces for: Discovery and self-description of the interfaces
12 it supports, Power domain management which is the ability to place
13 a given device or domain into the various power-saving states that
14 it supports, Performance management which is the ability to control
15 the performance of a domain that is composed of compute engines
16 such as application processors and other accelerators, Clock
17 management which is the ability to set and inquire rates on platform
18 managed clocks and Sensor management which is the ability to read
19 sensor data, and be notified of sensor value.
21 This protocol library provides interface for all the client drivers
22 making use of the features offered by the SCMI.
26 config ARM_SCMI_NEED_DEBUGFS
29 This declares whether at least one SCMI facility is configured
30 which needs debugfs support. When selected causess the creation
31 of a common SCMI debugfs root directory.
33 config ARM_SCMI_RAW_MODE_SUPPORT
34 bool "Enable support for SCMI Raw transmission mode"
36 select ARM_SCMI_NEED_DEBUGFS
38 Enable support for SCMI Raw transmission mode.
40 If enabled allows the direct injection and snooping of SCMI bare
41 messages through a dedicated debugfs interface.
42 It is meant to be used by SCMI compliance/testing suites.
44 When enabled regular SCMI drivers interactions are inhibited in
45 order to avoid unexpected interactions with the SCMI Raw message
46 flow. If unsure say N.
48 config ARM_SCMI_RAW_MODE_SUPPORT_COEX
49 bool "Allow SCMI Raw mode coexistence with normal SCMI stack"
50 depends on ARM_SCMI_RAW_MODE_SUPPORT
52 Allow SCMI Raw transmission mode to coexist with normal SCMI stack.
54 This will allow regular SCMI drivers to register with the core and
55 operate normally, thing which could make an SCMI test suite using the
56 SCMI Raw mode support unreliable. If unsure, say N.
58 config ARM_SCMI_HAVE_TRANSPORT
61 This declares whether at least one SCMI transport has been configured.
62 Used to trigger a build bug when trying to build SCMI without any
65 config ARM_SCMI_HAVE_SHMEM
68 This declares whether a shared memory based transport for SCMI is
71 config ARM_SCMI_HAVE_MSG
74 This declares whether a message passing based transport for SCMI is
77 config ARM_SCMI_TRANSPORT_MAILBOX
78 bool "SCMI transport based on Mailbox"
80 select ARM_SCMI_HAVE_TRANSPORT
81 select ARM_SCMI_HAVE_SHMEM
84 Enable mailbox based transport for SCMI.
86 If you want the ARM SCMI PROTOCOL stack to include support for a
87 transport based on mailboxes, answer Y.
89 config ARM_SCMI_TRANSPORT_OPTEE
90 bool "SCMI transport based on OP-TEE service"
91 depends on OPTEE=y || OPTEE=ARM_SCMI_PROTOCOL
92 select ARM_SCMI_HAVE_TRANSPORT
93 select ARM_SCMI_HAVE_SHMEM
94 select ARM_SCMI_HAVE_MSG
97 This enables the OP-TEE service based transport for SCMI.
99 If you want the ARM SCMI PROTOCOL stack to include support for a
100 transport based on OP-TEE SCMI service, answer Y.
102 config ARM_SCMI_TRANSPORT_SMC
103 bool "SCMI transport based on SMC"
104 depends on HAVE_ARM_SMCCC_DISCOVERY
105 select ARM_SCMI_HAVE_TRANSPORT
106 select ARM_SCMI_HAVE_SHMEM
109 Enable SMC based transport for SCMI.
111 If you want the ARM SCMI PROTOCOL stack to include support for a
112 transport based on SMC, answer Y.
114 config ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE
115 bool "Enable atomic mode support for SCMI SMC transport"
116 depends on ARM_SCMI_TRANSPORT_SMC
118 Enable support of atomic operation for SCMI SMC based transport.
120 If you want the SCMI SMC based transport to operate in atomic
121 mode, avoiding any kind of sleeping behaviour for selected
122 transactions on the TX path, answer Y.
123 Enabling atomic mode operations allows any SCMI driver using this
124 transport to optionally ask for atomic SCMI transactions and operate
125 in atomic context too, at the price of using a number of busy-waiting
126 primitives all over instead. If unsure say N.
128 config ARM_SCMI_TRANSPORT_VIRTIO
129 bool "SCMI transport based on VirtIO"
130 depends on VIRTIO=y || VIRTIO=ARM_SCMI_PROTOCOL
131 select ARM_SCMI_HAVE_TRANSPORT
132 select ARM_SCMI_HAVE_MSG
134 This enables the virtio based transport for SCMI.
136 If you want the ARM SCMI PROTOCOL stack to include support for a
137 transport based on VirtIO, answer Y.
139 config ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE
140 bool "SCMI VirtIO transport Version 1 compliance"
141 depends on ARM_SCMI_TRANSPORT_VIRTIO
144 This enforces strict compliance with VirtIO Version 1 specification.
146 If you want the ARM SCMI VirtIO transport layer to refuse to work
147 with Legacy VirtIO backends and instead support only VirtIO Version 1
148 devices (or above), answer Y.
150 If you want instead to support also old Legacy VirtIO backends (like
151 the ones implemented by kvmtool) and let the core Kernel VirtIO layer
152 take care of the needed conversions, say N.
154 config ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE
155 bool "Enable atomic mode for SCMI VirtIO transport"
156 depends on ARM_SCMI_TRANSPORT_VIRTIO
158 Enable support of atomic operation for SCMI VirtIO based transport.
160 If you want the SCMI VirtIO based transport to operate in atomic
161 mode, avoiding any kind of sleeping behaviour for selected
162 transactions on the TX path, answer Y.
164 Enabling atomic mode operations allows any SCMI driver using this
165 transport to optionally ask for atomic SCMI transactions and operate
166 in atomic context too, at the price of using a number of busy-waiting
167 primitives all over instead. If unsure say N.
169 endif #ARM_SCMI_PROTOCOL
171 config ARM_SCMI_POWER_CONTROL
172 tristate "SCMI system power control driver"
173 depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
175 This enables System Power control logic which binds system shutdown or
176 reboot actions to SCMI System Power notifications generated by SCP
179 This driver can also be built as a module. If so, the module will be
180 called scmi_power_control. Note this may needed early in boot to catch
181 early shutdown/reboot SCMI requests.