From patchwork Thu Oct 8 14:37:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 11823113 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 41A911580 for ; Thu, 8 Oct 2020 14:39:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0AF8E21789 for ; Thu, 8 Oct 2020 14:39:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JUiXeOFq"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y1bCIMyF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AF8E21789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:References:In-Reply-To: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:List-Owner; bh=unc+wGVCcMLPPsh0iDt978QoNnFUNb6C6bl5vHMx5BE=; b=JUiXeOFqbHnsOPne6i+RzqdNrG KHXUUF0aMbqgfaa3DG7Ls9bzC6TsswDQWLNk1LjrRnH/da2Y5ZOqD6bMOPOOSPbQLmwLhKurebrqw 8aY8dk1E6CZnvFQO0S0vd5wRSpNiDrKpm/8IPhbE5QRgUEP0qnySuO+iP2ezLc9oVrh/LhHrVgTzU guYRWNG4Bl5aJ1lHUjfM9k7nSGxeMs3Q0R24I27RLNrbDME7GjRqlYic/9dWmk9DhcaUuLMsJxHtx +P7vOjYvL8ip3o7Q5gX5juoribqqFyj9W5T0AHz2l61xLtz90C7AIS7SNGxJxfJTuM0P+CQPK4Qmg V670P4wA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX4H-00009a-Vk; Thu, 08 Oct 2020 14:38:54 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX49-00006v-At for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2020 14:38:46 +0000 Received: by mail-wr1-x442.google.com with SMTP id e17so6866335wru.12 for ; Thu, 08 Oct 2020 07:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fGkjTPMi2V3zZZF0+OMF37VrvjDLPDRxTs3MRGoDMBg=; b=Y1bCIMyFDS1UY7hqJ2e5vxCxhQRE6HviXtylOjCWXSrwnTG8W5kyBwnaPSgogGxsyB TiGiZsz6UmJNxxqX9M5oQ0eoMd9fu1xxqezD/D8ckX3m/X8RUgatbmsUIUro+ahODEAu 3ItyuwY/9hLyulO704XHVVFjBz9X2tj6GMqjAPP0nhEiuU0tDGxD3JolzMesOAK1LXR3 tTSU17Om/DdKiWthuVmfuzjMuGraUTYCnSWQ3TFjX4lTgLUX8U1p21FOA2Avw7KvLM4O sI7hhYyuQyFu9SWgTytdbZ8gtyxW5NUwrEo3eUOnVhzQqRDm7cRqq6aOFUk04NI05gfY m1zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fGkjTPMi2V3zZZF0+OMF37VrvjDLPDRxTs3MRGoDMBg=; b=mzQ4/Y8rmnqMUAO+Iam9kmUJIeYFIzvw58FfC1Rt6y/JN64+k0hIOb3NQGc49JwU6S UW/gxUPSzqHAFm800gHwpl/AqhXMz6qxHqRdsA873NWfSLA8GkpkQB+HsZ+LrmIX1nxI bPypXveOXcJOm9yCurkwULGmKijTMOPY4EmdlYQJ2JsMxvkoicbHiSKdzncD21XABJaE qQhRyjT/dn4nRxR+KfRla6ndpoCihBc2hIkZ4Ke8TXmzyhuPizwOQw5eJMyYwqJE1+Dc NQ/OphxN9HDynF5sIh98TrrRq6+fb+GwUuh/CoVmbnxxcUD1lyHJ5cvnkOej1fvvRGZ+ /GCQ== X-Gm-Message-State: AOAM531jomc1WTWWd19qjwrD9hIjn/dk7nUncWDvvv3DDwX8lnFJQ7bX TaQ5wdQF2QIPJnxKgFiExqyOJg== X-Google-Smtp-Source: ABdhPJyL6s+5OY5gglmH/jnSTgDyh+Lz5CLiCPryYXQ8CPd+l4JpwYWOmvdg592zQOtlwmycxHiX0g== X-Received: by 2002:a05:6000:1284:: with SMTP id f4mr9686712wrx.210.1602167924118; Thu, 08 Oct 2020 07:38:44 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:11c8:908d:6533:9100:d943:8b22]) by smtp.gmail.com with ESMTPSA id y14sm6926942wma.48.2020.10.08.07.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 07:38:43 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Subject: [PATCH 4/5] firmware: arm_scmi: smc transport supports multi-message pool Date: Thu, 8 Oct 2020 16:37:21 +0200 Message-Id: <20201008143722.21888-4-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008143722.21888-1-etienne.carriere@linaro.org> References: <20201008143722.21888-1-etienne.carriere@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201008_103845_456195_E62F2253 X-CRM114-Status: GOOD ( 15.02 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: Peng Fan , Souvik Chakravarty , linux-arm-kernel@lists.infradead.org, Sudeep Holla , Vincent Guittot , Etienne Carriere , Cristian Marussi MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org There is no reason for the smc transport to restrict itself to a 1 message pool. More can be allocated, messages are copied from/to the shared memory only on SMC exit/entry hence SCMI driver can play with several messages. Use value of 20 to mimic mailbox transport implementation. Any high value could fit. This should be something configurable. Signed-off-by: Etienne Carriere Cc: Peng Fan --- drivers/firmware/arm_scmi/smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/smc.c b/drivers/firmware/arm_scmi/smc.c index 1a03c3ec0230..82a82a5dc86a 100644 --- a/drivers/firmware/arm_scmi/smc.c +++ b/drivers/firmware/arm_scmi/smc.c @@ -149,6 +149,6 @@ static const struct scmi_transport_ops scmi_smc_ops = { const struct scmi_desc scmi_smc_desc = { .ops = &scmi_smc_ops, .max_rx_timeout_ms = 30, - .max_msg = 1, + .max_msg = 20, .max_msg_size = 128, };