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: 1328137 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=qLJ5H1cQ; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B57yg0z3mz9sQt for ; Tue, 14 Jul 2020 02:14:47 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=i+RjN9MxclbPxTd+T4CHRtdTNSPe7hElVFIPIH3K7zM=; b=qLJ5H1cQzzSpWDuNPQPl9SkA92 tv8JVVIhsnN8ky7hANOYc3C8bilH6nwKrcDW0J4Hv4K6UY08DuI+XZPT7UaVhu62dNzOVKz3o9yFi n4oGkXa6h5EI/xbI3HOlp9tEbIQqteYXSgidxhtm1BudlPN2+5rwph12N/RiQBhJrkAVRl6gSMUlV +J3xvEnqnOovoQsWsW9NfMYj+cQYSCTfSb1QtFXgUohQhv7cCXcNVNDkjPpJuHAMiGt/SmQZhjFEw OTu4ReQ6+SpXTD8NcnYe2AG7ju8r8qVrAFggA7KuPV3yDfXMbdOxTQ47+MKvZiLfuRCcBwlDAtBm+ 6CzLn8ow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jv15w-0006OC-NA; Mon, 13 Jul 2020 16:14:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jv15u-0006No-NF for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2020 16:14:19 +0000 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 To: ARM SoC Team , SoC Team , ALKML 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200713_121418_914582_7B80B71C X-CRM114-Status: GOOD ( 14.27 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olof Johansson , Kevin Hilman , Cristian Marussi , Arnd Bergmann , Sudeep Holla MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org 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