/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | Kconfig | 5 tristate "ARM System Control and Management Interface (SCMI) Message Protocol" 8 ARM System Control and Management Interface (SCMI) protocol is a 10 used in system management. SCMI is extensible and currently provides 22 making use of the features offered by the SCMI. 29 This declares whether at least one SCMI facility is configured 31 of a common SCMI debugfs root directory. 34 bool "Enable support for SCMI Raw transmission mode" 38 Enable support for SCMI Raw transmission mode. 40 If enabled allows the direct injection and snooping of SCMI bare 42 It is meant to be used by SCMI compliance/testing suites. [all …]
|
H A D | Makefile | 2 scmi-bus-y = bus.o 3 scmi-core-objs := $(scmi-bus-y) 5 scmi-driver-y = driver.o notify.o 6 scmi-driver-$(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT) += raw_mode.o 7 scmi-transport-$(CONFIG_ARM_SCMI_HAVE_SHMEM) = shmem.o 8 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += mailbox.o 9 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += smc.o 10 scmi-transport-$(CONFIG_ARM_SCMI_HAVE_MSG) += msg.o 11 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += virtio.o 12 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o [all …]
|
H A D | optee.c | 31 * PTA_SCMI_CMD_PROCESS_SMT_CHANNEL - Process SCMI message in SMT buffer 35 * Shared memory used for SCMI message/response exhange is expected 36 * already identified and bound to channel handle in both SCMI agent 37 * and SCMI server (OP-TEE) parts. 38 * The memory uses SMT header to carry SCMI meta-data (protocol ID and 44 * PTA_SCMI_CMD_PROCESS_SMT_CHANNEL_MESSAGE - Process SMT/SCMI message 47 * [in/out] memref[1]: Message/response buffer (SMT and SCMI payload) 49 * Shared memory used for SCMI message/response is a SMT buffer 52 * The memory uses SMT header to carry SCMI meta-data (protocol ID and 60 * SCMI shm information are 0 if agent expects to use OP-TEE regular SHM [all …]
|
H A D | bus.c | 3 * System Control and Management Interface (SCMI) Message Protocol bus layer 34 /* Track globally the creation of SCMI SystemPower related devices */ 42 * This helper let an SCMI driver request specific devices identified by the 43 * @id_table to be created for each active SCMI instance. 59 pr_debug("Requesting SCMI device (%s) for protocol %x\n", in scmi_protocol_device_request() 64 pr_warn("SCMI Raw mode active. Rejecting '%s'/0x%02X\n", in scmi_protocol_device_request() 123 pr_err("Failed to save SCMI device - ret:%d\n", ret); in scmi_protocol_device_request() 158 pr_debug("Unrequesting SCMI device (%s) for protocol %x\n", in scmi_protocol_device_unrequest() 293 pr_debug("Registered new scmi driver %s\n", driver->name); in scmi_driver_register() 316 pr_debug("(%s) Destroying SCMI device '%s' for protocol 0x%x (%s)\n", in __scmi_device_destroy() [all …]
|
H A D | scmi_power_control.c | 3 * SCMI Generic SystemPower Control driver. 8 * In order to handle platform originated SCMI SystemPower requests (like 9 * shutdowns or cold/warm resets) we register an SCMI Notification notifier 10 * block to react when such SCMI SystemPower events are emitted by platform. 20 * by the SCMI platform to an OSPM like Linux. 32 * Given the peculiar nature of SCMI SystemPower protocol, that is being in 34 * only one SCMI platform actively emitting SystemPower events. 35 * For this reason the SCMI core takes care to enforce the creation of one 36 * single unique device associated to the SCMI System Power protocol; no matter 37 * how many SCMI platforms are defined on the system, only one can be designated [all …]
|
H A D | raw_mode.c | 3 * System Control and Management Interface (SCMI) Raw mode support 10 * When enabled the SCMI Raw mode support exposes a userspace API which allows 11 * to send and receive SCMI commands, replies and notifications from a user 12 * application through injection and snooping of bare SCMI messages in binary 15 * Such injected SCMI transactions will then be routed through the SCMI core 16 * stack towards the SCMI backend server using whatever SCMI transport is 19 * It is meant to help in running any sort of SCMI backend server testing, no 26 * In order to avoid possible interferences between the SCMI Raw transactions 27 * originated from a test-suite and the normal operations of the SCMI drivers, 28 * when Raw mode is enabled, by default, all the regular SCMI drivers are [all …]
|
H A D | driver.c | 3 * System Control and Management Interface (SCMI) Message Protocol driver 5 * SCMI Message Protocol is used between the System Control Processor(SCP) 43 #include <trace/events/scmi.h> 50 /* List of all SCMI devices active in system */ 83 * @handle: Reference to the SCMI handle associated to this protocol instance. 91 * Each protocol is initialized independently once for each SCMI platform in 92 * which is defined by DT and implemented by the SCMI server fw. 108 * @name: Name of this SCMI instance 109 * @type: Type of this SCMI instance 120 * struct scmi_info - Structure representing a SCMI instance [all …]
|
H A D | smc.c | 3 * System Control and Management Interface (SCMI) Message SMC/HVC 30 * scmi instances that are using the same smc-id. 41 * struct scmi_smc - Structure representing a SCMI smc transport 44 * @cinfo: SCMI channel info 142 if (!of_device_is_compatible(np, "arm,scmi-shmem")) { in smc_chan_setup() 150 dev_err(cdev, "failed to get SCMI Tx shared memory\n"); in smc_chan_setup() 157 dev_err(dev, "failed to ioremap SCMI Tx shared memory\n"); in smc_chan_setup() 165 if (of_device_is_compatible(dev->of_node, "arm,scmi-smc-param")) { in smc_chan_setup() 179 dev_err(dev, "failed to setup SCMI smc irq\n"); in smc_chan_setup() 277 * SCMI command would have been already fully processed by the SCMI
|
H A D | protocols.h | 3 * System Control and Management Interface (SCMI) Message Protocol 5 * and function prototypes used in all the different SCMI protocols. 71 * @type: The SCMI type for this message 156 * @dev: A reference to the associated SCMI instance device (handle->dev). 158 * can be used by the protocol implementation to generate SCMI messages. 162 * This structure represents a protocol initialized against specific SCMI 165 * that it can access the core xfer operations to build and generate SCMI 167 * - as an opaque handle fed by an SCMI driver user when it tries to access 170 * with the related protocol operations when the SCMI driver tries to access 207 * SCMI command request pointed by @message. @desc_index is [all …]
|
H A D | base.c | 3 * System Control and Management Interface (SCMI) Base Protocol 8 #define pr_fmt(fmt) "SCMI Notifications BASE - " fmt 60 * @ph: SCMI protocol handle 62 * Return: 0 on success, else appropriate SCMI error. 91 * @ph: SCMI protocol handle 94 * Return: 0 on success, else appropriate SCMI error. 134 * @ph: SCMI protocol handle 136 * Return: 0 on success, else appropriate SCMI error. 166 * @ph: SCMI protocol handle 169 * Return: 0 on success, else appropriate SCMI error. [all …]
|
H A D | common.h | 3 * System Control and Management Interface (SCMI) Message Protocol 5 * and function prototypes used in all the different SCMI protocols. 158 /* SCMI Transport */ 160 * struct scmi_chan_info - Structure representing a SCMI channel information 164 * @dev: Reference to device in the SCMI hierarchy corresponding to this 168 * @handle: Pointer to SCMI entity handle 186 * struct scmi_transport_ops - Structure representing a SCMI transport ops 225 * initialize some transport-specific setup during SCMI core 226 * initialization, so ahead of SCMI core probing. 228 * de-initialize some transport-specific setup during SCMI core [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-scmi.c | 2 * Vhost-user SCMI virtio device 14 #include "hw/virtio/vhost-user-scmi.h" 22 * Linux VirtIO SCMI guest driver. 36 VHostUserSCMI *scmi = VHOST_USER_SCMI(vdev); in vu_scmi_start() local 39 struct vhost_dev *vhost_dev = &scmi->vhost_dev; in vu_scmi_start() 63 error_report("Error starting vhost-user-scmi: %d", ret); in vu_scmi_start() 66 scmi->started_vu = true; in vu_scmi_start() 73 for (i = 0; i < scmi->vhost_dev.nvqs; i++) { in vu_scmi_start() 88 VHostUserSCMI *scmi = VHOST_USER_SCMI(vdev); in vu_scmi_stop() local 91 struct vhost_dev *vhost_dev = &scmi->vhost_dev; in vu_scmi_stop() [all …]
|
H A D | vhost-user-scmi-pci.c | 2 * Vhost-user SCMI virtio device PCI glue 10 #include "hw/virtio/vhost-user-scmi.h" 20 #define TYPE_VHOST_USER_SCMI_PCI "vhost-user-scmi-pci-base" 57 .non_transitional_name = "vhost-user-scmi-pci",
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | virtio-scmi.c | 2 * virtio-scmi nodes for testing 16 #include "virtio-scmi.h" 20 static void virtio_scmi_cleanup(QVhostUserSCMI *scmi) in virtio_scmi_cleanup() argument 22 QVirtioDevice *vdev = scmi->vdev; in virtio_scmi_cleanup() 26 qvirtqueue_cleanup(vdev->bus, scmi->queues[i], alloc); in virtio_scmi_cleanup() 28 g_free(scmi->queues); in virtio_scmi_cleanup() 36 static void virtio_scmi_setup(QVhostUserSCMI *scmi) in virtio_scmi_setup() argument 38 QVirtioDevice *vdev = scmi->vdev; in virtio_scmi_setup() 46 scmi->queues = g_new(QVirtQueue *, 2); in virtio_scmi_setup() 48 scmi->queues[i] = qvirtqueue_setup(vdev, alloc, i); in virtio_scmi_setup() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | debugfs-scmi | 1 What: /sys/kernel/debug/scmi/<n>/instance_name 5 Description: The name of the underlying SCMI instance <n> described by 6 all the debugfs accessors rooted at /sys/kernel/debug/scmi/<n>, 7 expressed as the full name of the top DT SCMI node under which 8 this SCMI instance is rooted. 11 What: /sys/kernel/debug/scmi/<n>/atomic_threshold_us 16 on this SCMI instance <n>, the threshold above which any SCMI 22 What: /sys/kernel/debug/scmi/<n>/transport/type 27 SCMI instance <n>. 30 What: /sys/kernel/debug/scmi/<n>/transport/is_atomic [all …]
|
H A D | debugfs-scmi-raw | 1 What: /sys/kernel/debug/scmi/<n>/raw/message 5 Description: SCMI Raw synchronous message injection/snooping facility; write 6 a complete SCMI synchronous command message (header included) 8 backend SCMI server for instance <n>. 16 What: /sys/kernel/debug/scmi/<n>/raw/message_async 20 Description: SCMI Raw asynchronous message injection/snooping facility; write 21 a complete SCMI asynchronous command message (header included) 23 backend SCMI server for instance <n>. 34 What: /sys/kernel/debug/scmi/<n>/raw/errors 38 Description: SCMI Raw message errors facility; any kind of timed-out or [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/firmware/ |
H A D | arm,scmi.yaml | 5 $id: http://devicetree.org/schemas/firmware/arm,scmi.yaml# 8 title: System Control and Management Interface (SCMI) Message Protocol 14 The SCMI is intended to allow agents such as OSPM to manage various functions 19 the SCMI as described in ARM document number ARM DEN 0056 ("ARM System Control 27 const: scmi 31 - description: SCMI compliant firmware with mailbox transport 33 - const: arm,scmi 34 - description: SCMI compliant firmware with ARM SMC/HVC transport 36 - const: arm,scmi-smc 37 - description: SCMI compliant firmware with ARM SMC/HVC transport [all …]
|
/openbmc/linux/drivers/iio/common/scmi_sensors/ |
H A D | Kconfig | 2 # IIO over SCMI 6 menu "IIO SCMI Sensors" 9 tristate "IIO SCMI" 14 Say yes here to build support for IIO SCMI Driver. 15 This provides ARM SCMI Protocol based IIO device. 17 sensors available on SCMI based platforms.
|
/openbmc/linux/drivers/regulator/ |
H A D | scmi-regulator.c | 3 // System Control and Management Interface (SCMI) based regulator driver 7 // Implements a regulator driver on top of the SCMI Voltage Protocol. 9 // The ARM SCMI Protocol aims in general to hide as much as possible all the 15 // The supported SCMI regulator ops are restricted to the bare minimum: 21 // Each SCMI regulator instance is associated, through the means of a proper DT 22 // entry description, to a specific SCMI Voltage Domain. 145 * Note that SCMI voltage domains describable by linear ranges in scmi_config_linear_regulator_mappings() 147 * triplet by the SCMI Voltage Domain protocol support itself. in scmi_config_linear_regulator_mappings() 164 /* Just one fixed voltage exposed by SCMI */ in scmi_config_linear_regulator_mappings() 244 * Using the scmi device here to have DT searched from Voltage in scmi_regulator_common_init() [all …]
|
/openbmc/linux/include/linux/ |
H A D | scmi_protocol.h | 3 * SCMI Message Protocol driver header 75 * by SCMI Clock Protocol 77 * @count_get: get the count of clocks provided by SCMI 107 * by SCMI Performance Protocol 115 * @device_domain_id: gets the scmi domain id for a given device 159 * by SCMI Power Protocol 161 * @num_domains_get: get the count of power domains provided by SCMI 190 * SCMI platform. Set to zero when not available. 213 * SCMI platform. 244 * the SCMI specification: it can be accessed using the accompanying [all …]
|
/openbmc/linux/drivers/reset/ |
H A D | reset-scmi.c | 3 * ARM System Control and Management Interface (ARM SCMI) reset driver 19 * @ph: ARM SCMI protocol handle used for communication with system controller 35 * using the ARM SCMI protocol. 53 * using the ARM SCMI protocol. 71 * reset signal using the ARM SCMI protocol. 121 MODULE_DEVICE_TABLE(scmi, scmi_id_table); 124 .name = "scmi-reset", 131 MODULE_DESCRIPTION("ARM SCMI reset controller driver");
|
/openbmc/linux/drivers/powercap/ |
H A D | arm_scmi_powercap.c | 3 * SCMI Powercap support. 247 return "SCMI power-cap"; in scmi_powercap_get_name() 332 * scmi_zones_register- Register SCMI powercap zones starting from parent zones 334 * @dev: A reference to the SCMI device 337 * When registering SCMI powercap zones with the powercap framework we should 341 * Unfortunately we cannot assume that the array of available SCMI powercap 342 * zones provided by the SCMI platform firmware is built to comply with such 345 * This function, given the set of SCMI powercap zones to register, takes care 346 * to walk the SCMI powercap zones trees up to the root registering any 355 * sporting an SCMI abstract power scale) as long as they are positioned as [all …]
|
H A D | Kconfig | 64 tristate "ARM SCMI Powercap driver" 67 This enables support for the ARM Powercap based on ARM SCMI 70 ARM SCMI Powercap protocol allows power limits to be enforced 71 and monitored against the SCMI Powercap domains advertised as 72 available by the SCMI platform firmware.
|
/openbmc/linux/drivers/clk/ |
H A D | clk-scmi.c | 3 * System Control and Power Interface (SCMI) Protocol based clock driver 106 * We can provide enable/disable atomic callbacks only if the underlying SCMI 107 * transport for an SCMI instance is configured to handle SCMI commands in an 110 * When no SCMI atomic transport support is available we instead provide only 114 * Two distinct sets of clk_ops are provided since we could have multiple SCMI 224 * Note that when transport is atomic but SCMI protocol did not in scmi_clocks_probe() 256 MODULE_DEVICE_TABLE(scmi, scmi_id_table); 259 .name = "scmi-clocks", 266 MODULE_DESCRIPTION("ARM SCMI clock driver");
|
/openbmc/linux/drivers/cpufreq/ |
H A D | scmi-cpufreq.c | 3 * System Control and Power Interface (SCMI) based CPUFreq Interface driver 50 * subscribed for by the SCMI firmware 150 /* Obtain CPUs that share SCMI performance controls */ in scmi_cpufreq_init() 166 * Use the CPU mask from SCMI to designate CPUs sharing an OPP in scmi_cpufreq_init() 217 /* SCMI allows DVFS request for any domain from any CPU */ in scmi_cpufreq_init() 282 .name = "scmi", 338 MODULE_DEVICE_TABLE(scmi, scmi_id_table); 341 .name = "scmi-cpufreq", 349 MODULE_DESCRIPTION("ARM SCMI CPUFreq interface driver");
|