From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B951C432C0 for ; Tue, 3 Dec 2019 11:46:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0A11D20684 for ; Tue, 3 Dec 2019 11:46:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dq6alGJH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A11D20684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QRZoU074k8zmOM+g01t9TsGUN/YLqtvKpPEcMxSrBx4=; b=dq6alGJHPLoJ3S TLXQHlAdyonWN64S8K0IkR6Blze9C7Z3ytXj/DjOEw7w4X5N4IwjpSyT1AqZHuFu1dC61H+ZT6jN+ VIpClMhh1WKrNzZUqe1ouC3mw8FmkoCn8B6kykqm9rtJHViSQYnyYGEx5nB40T409DYYcWhPX8mvF n3OLlAZDNq1ekSlOaJndEB8Dl6+WuwfLvqia3BI7qmRqakuxE3IrNTl/UPuBiB8ZN4AliS3TyVx6Y 6yVGw89d+Un/7/cTVqBHi0HWpNVo38Hc7xL0/BOq0MR1Sk1jM0uuMhQHgBHtLGQnmG/3wyYEE0m1y JRya9Yr5kd2xw7PyC3pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic6dJ-0000U6-J3; Tue, 03 Dec 2019 11:46:21 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ic6dG-0000TB-2G for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2019 11:46: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 16FCB30E; Tue, 3 Dec 2019 03:46:15 -0800 (PST) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 69F083F68E; Tue, 3 Dec 2019 03:46:13 -0800 (PST) Date: Tue, 3 Dec 2019 11:46:07 +0000 From: Sudeep Holla To: Peng Fan Subject: Re: [PATCH v11 2/2] mailbox: introduce ARM SMC based mailbox Message-ID: <20191203114607.GA4171@bogus> References: <1575281525-1549-1-git-send-email-peng.fan@nxp.com> <1575281525-1549-3-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1575281525-1549-3-git-send-email-peng.fan@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191203_034618_151134_26B3686E X-CRM114-Status: GOOD ( 14.32 ) 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: "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "f.fainelli@gmail.com" , Arnd Bergmann , "andre.przywara@arm.com" , "jassisinghbrar@gmail.com" , "linux-kernel@vger.kernel.org" , Sudeep Holla , "robh+dt@kernel.org" , dl-linux-imx , Viresh Kumar , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org (+Viresh,Arnd) On Mon, Dec 02, 2019 at 10:14:43AM +0000, Peng Fan wrote: > From: Peng Fan > > This mailbox driver implements a mailbox which signals transmitted data > via an ARM smc (secure monitor call) instruction. The mailbox receiver > is implemented in firmware and can synchronously return data when it > returns execution to the non-secure world again. > An asynchronous receive path is not implemented. > This allows the usage of a mailbox to trigger firmware actions on SoCs > which either don't have a separate management processor or on which such > a core is not available. A user of this mailbox could be the SCP > interface. > I would like to know all the use-cases for this driver ? Is this only for SCMI or will this get used with other protocols on the top. I assume the latter and hence it is preferred to keep this as a mailbox driver. I am not against this approach but the reason I ask is to avoid duplication. Viresh has suggested abstraction of transport from SCMI driver to enable other transports[1]. Couple of transports that I am aware of is this SMC/HVC and the new(still in-concept) SPCI. So I am looking for opinions on that approach. Please feel free to comment here or as part of that patch. -- Regards, Sudeep [1] https://lore.kernel.org/lkml/5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel