From: Cristian Marussi <cristian.marussi@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, daniel.lezcano@linaro.org, tarek.el-sherbiny@arm.com, adrian.slatineanu@arm.com, souvik.chakravarty@arm.com, wleavitt@marvell.com, wbartczak@marvell.com, Cristian Marussi <cristian.marussi@arm.com> Subject: [PATCH v3 0/9] SCMIv3.1 Powercap protocol and driver Date: Mon, 27 Jun 2022 13:30:29 +0100 [thread overview] Message-ID: <20220627123038.1427067-1-cristian.marussi@arm.com> (raw) Hi all, this short series introduces the last missing bit of SCMIv3.1, Powercap protocol. Along the series, there is a small refactoring around the SCMI FastChannels handling routines so as to reuse as much as possible the pre-existent (and tested) FastChannel code from the Perf protocol. New SCMI FC tracing support is added too along the way. As a last step in the series an ARM SCMI based powercap driver is added, which takes care to expose via the Powercap framework all the SCMI Powercap zones that have been discovered asking the SCMI platform firmware. Basic testing has been performed against an emulated SCMI platform supporting SCMIv3.1 Powercap protocol using powercap-utils, with the exclusion of the FCs bits whose generalization has been only tested for regression on a JUNO platform sporting a regular SCP/SCMI v2.10 fw. The series is based on sudeep/for-next/scmi [1] on top of: commit 754f04cac362 ("firmware: arm_scmi: Relax CLOCK_DESCRIBE_RATES out-of-spec checks") Thanks, Cristian v2 --> v3: - added and used some SCMI Fastchannel tracing support - reverted logic of Kconfig to configure usage of SCMI FC - using strscpy with new SHORT_NAME_SZ in Powercap protocol - added devm_protocol_acquire helper v1 --> v2: - fixed measurements thresholds updates to trigger notification enable update commands - added a bit more comments - usig bitfield.h macros - fixed sparse complaint about missing static on global [1]: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/log/?h=for-next/scmi ---- Cristian Marussi (9): dt-bindings: firmware: arm,scmi: Add powercap protocol firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support firmware: arm_scmi: Generalize FastChannel support firmware: arm_scmi: Add SCMIv3.1 Powercap FastChannels support firmware: arm_scmi: Make use of FastChannels configurable include: trace: Add SCMI FastChannel tracing firmware: arm_scmi: Use FastChannel tracing firmware: arm_scmi: Add scmi_driver optional setup/teardown callbacks powercap: arm_scmi: Add SCMI Powercap based driver .../bindings/firmware/arm,scmi.yaml | 10 + drivers/firmware/arm_scmi/Kconfig | 13 + drivers/firmware/arm_scmi/Makefile | 2 +- drivers/firmware/arm_scmi/bus.c | 15 +- drivers/firmware/arm_scmi/driver.c | 173 ++++ drivers/firmware/arm_scmi/perf.c | 225 ++--- drivers/firmware/arm_scmi/powercap.c | 866 ++++++++++++++++++ drivers/firmware/arm_scmi/protocols.h | 23 + drivers/powercap/Kconfig | 13 + drivers/powercap/Makefile | 1 + drivers/powercap/arm_scmi_powercap.c | 537 +++++++++++ include/linux/scmi_protocol.h | 129 +++ include/trace/events/scmi.h | 25 + 13 files changed, 1858 insertions(+), 174 deletions(-) create mode 100644 drivers/firmware/arm_scmi/powercap.c create mode 100644 drivers/powercap/arm_scmi_powercap.c -- 2.32.0
WARNING: multiple messages have this Message-ID (diff)
From: Cristian Marussi <cristian.marussi@arm.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, daniel.lezcano@linaro.org, tarek.el-sherbiny@arm.com, adrian.slatineanu@arm.com, souvik.chakravarty@arm.com, wleavitt@marvell.com, wbartczak@marvell.com, Cristian Marussi <cristian.marussi@arm.com> Subject: [PATCH v3 0/9] SCMIv3.1 Powercap protocol and driver Date: Mon, 27 Jun 2022 13:30:29 +0100 [thread overview] Message-ID: <20220627123038.1427067-1-cristian.marussi@arm.com> (raw) Hi all, this short series introduces the last missing bit of SCMIv3.1, Powercap protocol. Along the series, there is a small refactoring around the SCMI FastChannels handling routines so as to reuse as much as possible the pre-existent (and tested) FastChannel code from the Perf protocol. New SCMI FC tracing support is added too along the way. As a last step in the series an ARM SCMI based powercap driver is added, which takes care to expose via the Powercap framework all the SCMI Powercap zones that have been discovered asking the SCMI platform firmware. Basic testing has been performed against an emulated SCMI platform supporting SCMIv3.1 Powercap protocol using powercap-utils, with the exclusion of the FCs bits whose generalization has been only tested for regression on a JUNO platform sporting a regular SCP/SCMI v2.10 fw. The series is based on sudeep/for-next/scmi [1] on top of: commit 754f04cac362 ("firmware: arm_scmi: Relax CLOCK_DESCRIBE_RATES out-of-spec checks") Thanks, Cristian v2 --> v3: - added and used some SCMI Fastchannel tracing support - reverted logic of Kconfig to configure usage of SCMI FC - using strscpy with new SHORT_NAME_SZ in Powercap protocol - added devm_protocol_acquire helper v1 --> v2: - fixed measurements thresholds updates to trigger notification enable update commands - added a bit more comments - usig bitfield.h macros - fixed sparse complaint about missing static on global [1]: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/log/?h=for-next/scmi ---- Cristian Marussi (9): dt-bindings: firmware: arm,scmi: Add powercap protocol firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support firmware: arm_scmi: Generalize FastChannel support firmware: arm_scmi: Add SCMIv3.1 Powercap FastChannels support firmware: arm_scmi: Make use of FastChannels configurable include: trace: Add SCMI FastChannel tracing firmware: arm_scmi: Use FastChannel tracing firmware: arm_scmi: Add scmi_driver optional setup/teardown callbacks powercap: arm_scmi: Add SCMI Powercap based driver .../bindings/firmware/arm,scmi.yaml | 10 + drivers/firmware/arm_scmi/Kconfig | 13 + drivers/firmware/arm_scmi/Makefile | 2 +- drivers/firmware/arm_scmi/bus.c | 15 +- drivers/firmware/arm_scmi/driver.c | 173 ++++ drivers/firmware/arm_scmi/perf.c | 225 ++--- drivers/firmware/arm_scmi/powercap.c | 866 ++++++++++++++++++ drivers/firmware/arm_scmi/protocols.h | 23 + drivers/powercap/Kconfig | 13 + drivers/powercap/Makefile | 1 + drivers/powercap/arm_scmi_powercap.c | 537 +++++++++++ include/linux/scmi_protocol.h | 129 +++ include/trace/events/scmi.h | 25 + 13 files changed, 1858 insertions(+), 174 deletions(-) create mode 100644 drivers/firmware/arm_scmi/powercap.c create mode 100644 drivers/powercap/arm_scmi_powercap.c -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-06-27 12:30 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-27 12:30 Cristian Marussi [this message] 2022-06-27 12:30 ` [PATCH v3 0/9] SCMIv3.1 Powercap protocol and driver Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 1/9] dt-bindings: firmware: arm,scmi: Add powercap protocol Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 2/9] firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 3/9] firmware: arm_scmi: Generalize FastChannel support Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 4/9] firmware: arm_scmi: Add SCMIv3.1 Powercap FastChannels support Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 5/9] firmware: arm_scmi: Make use of FastChannels configurable Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-07-01 14:03 ` Sudeep Holla 2022-07-01 14:03 ` Sudeep Holla 2022-07-01 14:47 ` Cristian Marussi 2022-07-01 14:47 ` Cristian Marussi 2022-07-01 14:55 ` Sudeep Holla 2022-07-01 14:55 ` Sudeep Holla 2022-07-01 15:05 ` Cristian Marussi 2022-07-01 15:05 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 6/9] include: trace: Add SCMI FastChannel tracing Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 7/9] firmware: arm_scmi: Use " Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 8/9] firmware: arm_scmi: Add scmi_driver optional setup/teardown callbacks Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi 2022-07-01 14:09 ` Sudeep Holla 2022-07-01 14:09 ` Sudeep Holla 2022-07-01 15:09 ` Cristian Marussi 2022-07-01 15:09 ` Cristian Marussi 2022-07-01 15:18 ` Sudeep Holla 2022-07-01 15:18 ` Sudeep Holla 2022-07-01 15:21 ` Cristian Marussi 2022-07-01 15:21 ` Cristian Marussi 2022-06-27 12:30 ` [PATCH v3 9/9] powercap: arm_scmi: Add SCMI Powercap based driver Cristian Marussi 2022-06-27 12:30 ` Cristian Marussi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220627123038.1427067-1-cristian.marussi@arm.com \ --to=cristian.marussi@arm.com \ --cc=Jonathan.Cameron@Huawei.com \ --cc=adrian.slatineanu@arm.com \ --cc=daniel.lezcano@linaro.org \ --cc=etienne.carriere@linaro.org \ --cc=f.fainelli@gmail.com \ --cc=james.quinlan@broadcom.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=souvik.chakravarty@arm.com \ --cc=sudeep.holla@arm.com \ --cc=tarek.el-sherbiny@arm.com \ --cc=vincent.guittot@linaro.org \ --cc=wbartczak@marvell.com \ --cc=wleavitt@marvell.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.