OSDN Git Service

firmware: arm_scmi: add initial support for performance protocol
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 6 Jun 2017 10:22:51 +0000 (11:22 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commita9e3fbfaa0ff885aacafe6f33e72448a2993d072
tree9812dade5ac31beb5516084debf183e79b59062e
parent933c504424a2bc784fdb4cd5c318049d55da20e0
firmware: arm_scmi: add initial support for performance protocol

The performance protocol is intended for the performance management of
group(s) of device(s) that run in the same performance domain. It
includes even the CPUs. A performance domain is defined by a set of
devices that always have to run at the same performance level.
For example, a set of CPUs that share a voltage domain, and have a
common frequency control, is said to be in the same performance domain.

The commands in this protocol provide functionality to describe the
protocol version, describe various attribute flags, set and get the
performance level of a domain. It also supports discovery of the list
of performance levels supported by a performance domain, and the
properties of each performance level.

This patch adds basic support for the performance protocol.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/Makefile
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/perf.c [new file with mode: 0644]
include/linux/scmi_protocol.h