From patchwork Mon Jul 13 16:14:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 11660195 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31FA7618 for ; Mon, 13 Jul 2020 16:14:18 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 2C0B620771; Mon, 13 Jul 2020 16:14:18 +0000 (UTC) Delivered-To: soc@kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mail.kernel.org (Postfix) with ESMTP id 9450B20738; Mon, 13 Jul 2020 16:14:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9450B20738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=sudeep.holla@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2A0241FB; Mon, 13 Jul 2020 09:14:17 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 105673F7D8; Mon, 13 Jul 2020 09:14:15 -0700 (PDT) From: Sudeep Holla List-Id: To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Cristian Marussi , Kevin Hilman , Olof Johansson Subject: [GIT PULL v2] firmware: arm_scmi: updates for v5.9 Date: Mon, 13 Jul 2020 17:14:10 +0100 Message-Id: <20200713161410.12324-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 Hi ARM SoC Team, Please pull ! The clk and the cpufreq changes are acked/reviewed by maintainers and agreed to get this merged via ARM SoC tree. Regards, Sudeep v1[1]->v2: - Remove unneeded __packed and fixed size fields as suggested by Arnd[2] - Add a fix for clk registration of discrete rate clocks that was reported last week. [1] https://lore.kernel.org/r/20200706165336.40800-1-sudeep.holla@arm.com [2] https://lore.kernel.org/r/CAK8P3a2QicGAfNnykBFDkbCX4TEZ+=AwWHYSQLOvKK14exN6_Q@mail.gmail.com/ -->8 The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-updates-5.9 for you to fetch changes up to 72a5eb9d9c319c99c11cfd9cfb486380dd136840: firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header (2020-07-13 09:40:21 +0100) ---------------------------------------------------------------- ARM SCMI/SCPI updates for v5.9 The main addition for this time is the support for platform notifications. SCMI protocol specification allows the platform to signal events to the interested agents via notification messages. We are adding support for the dispatch and delivery of such notifications to the interested users inside the kernel. Other than that, there are minor changes like checking and using the fast_switch capability quering the firmware instead of doing it unconditionally(using polling mode transfer), cosmetic trace update, use of HAVE_ARM_SMCCC_DISCOVERY instead of ARM_PSCI_FW and a fix in scmi clock registration logic for all the clocks with discrete rates. ---------------------------------------------------------------- Cristian Marussi (13): firmware: arm_scmi: Fix SCMI genpd domain probing firmware: arm_scmi: Add notification protocol-registration firmware: arm_scmi: Add notification callbacks-registration firmware: arm_scmi: Add notification dispatch and delivery firmware: arm_scmi: Enable notification core firmware: arm_scmi: Add power notifications support firmware: arm_scmi: Add perf notifications support firmware: arm_scmi: Add sensor notifications support firmware: arm_scmi: Add reset notifications support firmware: arm_scmi: Add base notifications support firmware: arm_scmi: Remove zero-length array in SCMI notifications firmware: arm_scmi: Remove unneeded __packed attribute firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header Nicola Mazzucato (2): firmware: arm_scmi: Add fast_switch_possible() interface cpufreq: arm_scmi: Set fast_switch_possible conditionally Sudeep Holla (5): firmware: arm_scmi: Use signed integer to report transfer status firmware: arm_scmi: Use HAVE_ARM_SMCCC_DISCOVERY instead of ARM_PSCI_FW firmware: arm_scmi: Keep the discrete clock rates sorted clk: scmi: Fix min and max rate when registering clocks with discrete rates firmware: arm_scmi: Provide a missing function param description drivers/clk/clk-scmi.c | 22 +- drivers/cpufreq/scmi-cpufreq.c | 3 +- drivers/firmware/arm_scmi/Makefile | 4 +- drivers/firmware/arm_scmi/base.c | 108 +- drivers/firmware/arm_scmi/clock.c | 20 +- drivers/firmware/arm_scmi/common.h | 4 + drivers/firmware/arm_scmi/driver.c | 15 +- drivers/firmware/arm_scmi/notify.c | 1526 ++++++++++++++++++++++++++++ drivers/firmware/arm_scmi/notify.h | 68 ++ drivers/firmware/arm_scmi/perf.c | 151 ++- drivers/firmware/arm_scmi/power.c | 92 +- drivers/firmware/arm_scmi/reset.c | 96 +- drivers/firmware/arm_scmi/scmi_pm_domain.c | 12 +- drivers/firmware/arm_scmi/sensors.c | 69 +- drivers/firmware/arm_scmi/smc.c | 1 + include/linux/scmi_protocol.h | 110 +- include/trace/events/scmi.h | 6 +- 17 files changed, 2258 insertions(+), 49 deletions(-) create mode 100644 drivers/firmware/arm_scmi/notify.c create mode 100644 drivers/firmware/arm_scmi/notify.h