Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1220394ybl; Tue, 3 Dec 2019 03:47:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyD6yhfIZttic0I+jjxF2AcbCGdJOlSZBp+KwjHH9Uo636j80dqyVtRqFcNHNyok5455X8o X-Received: by 2002:a9d:3ba2:: with SMTP id k31mr2678420otc.207.1575373635134; Tue, 03 Dec 2019 03:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575373635; cv=none; d=google.com; s=arc-20160816; b=YibsyQxzX9ShVYlGBFAIz7imMFkt3vngR0txO13oHqo3xMssgBqBxi32d40aw9/RDH Dh0o6DU3C6ekSvFlKRfzC+DsExmUDG+v8L8p+JxpS7KYe0sch1WKKRsmwHKiP3vo9MEB cv+iQ4GaZsgcfCeLufeOUGGbdY3joLERrpkYwanQ7B9gOsqQ1MzxH10lpBrS/n3MlSSi xCq+1HRbZ344grOz9/NPs8c84mULEj+UjlykQyMRwmgH7qupUni0yloA2hkmse61qdko D46Zn+ZxluiJ4+h/As8fTJlob12M7SGxAsy5ApQw56i0y8E/634xkc8UlScuS8sBOUxc po7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VKbdLYQ8+2cG2TsfUGMt5wMTyDr65rR+lIjJZ1lbYy0=; b=MQjiiTvO8AzhQRTKpQDJbjMxKauuHK3rBls/Jc2e4k8laiZxj7+FiyIvFEqu3D8F7u qg+IKpUU51ehgzXWtjUHd+cMgYWd/BB8FwGOhpP6ROgBpNNjAmb11ZVkAjw3fQY2hHBJ GC/whPpRoCNF7Bu6inCdxwwTFEzUVm4h5CXSz41aeGSMJ42+tVn1GCQQA2NYsm+DNqrv Bvg0/m4w4d1SMTLr9V2ClM8PUxSLCvKJf0DBwxHfpaV8MBgonsOt1BvRvpLk1c4PWl+S xZ84SJQxvp3rYJV7pIB3HDoGsgn07DawSVlkriygNRoJZ74quLjbjC+CrtO7iPnL5Lny 4/DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si1164844oii.114.2019.12.03.03.47.03; Tue, 03 Dec 2019 03:47:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726179AbfLCLqQ (ORCPT + 99 others); Tue, 3 Dec 2019 06:46:16 -0500 Received: from foss.arm.com ([217.140.110.172]:40882 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfLCLqQ (ORCPT ); Tue, 3 Dec 2019 06:46:16 -0500 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 Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "jassisinghbrar@gmail.com" , "andre.przywara@arm.com" , "f.fainelli@gmail.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx , Viresh Kumar , Sudeep Holla , Arnd Bergmann 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-Type: text/plain; charset=us-ascii 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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