Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2167208ybf; Mon, 2 Mar 2020 03:21:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyptoXWwqMqusCJvas5XUA3jybpKKefZEXoC3sqrJuGZtMnMKdKuz2HTJ/sAhNdyJFjreDS X-Received: by 2002:aca:3f54:: with SMTP id m81mr10834497oia.73.1583148101280; Mon, 02 Mar 2020 03:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583148101; cv=none; d=google.com; s=arc-20160816; b=jfNufOWJ5GkvQpZQeKev6cowqjrVZxcNUPijxpZLZNnGE+La+6qK0ydWcuXZczDF0f zyu3/2dmSSnsAu5G9auOHRyNtC9T9Fybxy3/DlqhPgJfAKCe3HWwajqQTY+Kp0VFkin4 GN6M+19Fx0RLpdjnAQBIM2zY3E76YrU6gl8HNR3+oLKgX5N88ki6ePtHfsNtwz6iRfvA xdOJ0+NyjzI1J/M/FZbj/553jnrlLC7wuTFwd+u/++wLFnyQz/QAzbUaqY/pyq4rU/A+ bfHGDliCe67dRc98w09EiRj9o8k8EpJmx6XAgkIXU4anVp3VyTGoXm82rQcTcYZG01WI tCAQ== 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=Jombl8ho3fldMVo1tgIYuhsN0ilxvWWuVNI8Eoo/S/g=; b=ke9JGV9YKPo3reRvpJFlkrrjrb2jIGu1KNCXC4llgHoVi+QONiO7UOLtbSlOvG5pyx tJFnmBpUGmt+qPHcoHfHb8kU7eekiAkuKYsNXTGUTShWFFuvCH1lqCNJXVp4TwHEEvut QRhLKk8JeQ6aqCtcLKr0waCvMM0d0hK0KRTTgR7Hd6sz1gJ0A9RK/SvPZGEOKe4RN7DI cC1mlTXTkSTR7y73mR84qOhTKwc2sdXasEWXJD30qVOqt5HJlHkiBmUMf6KiQF4+pRog DpFcCpHthc3gp6M6mO5kgwA7obCOhXSE9733uUbhCHuCrwbx8icbqdRIxa1qj15Fu555 lCsw== 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 t10si6510178otp.310.2020.03.02.03.21.28; Mon, 02 Mar 2020 03:21:41 -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 S1727716AbgCBLVY (ORCPT + 99 others); Mon, 2 Mar 2020 06:21:24 -0500 Received: from foss.arm.com ([217.140.110.172]:59590 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727593AbgCBLVX (ORCPT ); Mon, 2 Mar 2020 06:21:23 -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 E3D7F2F; Mon, 2 Mar 2020 03:21:22 -0800 (PST) Received: from e107533-lin.cambridge.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 624963F6C4; Mon, 2 Mar 2020 03:21:20 -0800 (PST) Date: Mon, 2 Mar 2020 11:21:17 +0000 From: Sudeep Holla To: Peng Fan Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "robh@kernel.org" , "viresh.kumar@linaro.org" , "f.fainelli@gmail.com" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "andre.przywara@arm.com" Subject: Re: [PATCH V3 2/2] firmware: arm_scmi: add smc/hvc transport Message-ID: <20200302112117.GB16218@e107533-lin.cambridge.arm.com> References: <1582701171-26842-1-git-send-email-peng.fan@nxp.com> <1582701171-26842-3-git-send-email-peng.fan@nxp.com> <20200228161820.GA17229@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Sat, Feb 29, 2020 at 02:07:30AM +0000, Peng Fan wrote: > Hi Sudeep, > > > Subject: Re: [PATCH V3 2/2] firmware: arm_scmi: add smc/hvc transport > > > > On Wed, Feb 26, 2020 at 03:12:51PM +0800, peng.fan@nxp.com wrote: > > > From: Peng Fan > > > > > > Take arm,smc-id as the 1st arg, and protocol id as the 2nd arg when > > > issuing SMC/HVC. Since we need protocol id, so add this parameter > > > > And why do we need protocol id here ? I couldn't find it out myself. > > I would like to know why/what/how is it used in the firmware(smc/hvc > > handler). I hope you are not mixing the need for multiple channel with > > protocol id ? One can find out id from the command itself, no need to pass it > > and hence asking here for more details. > > When each protocol needs its own shmem area, we need let firmware > know which shmem area to parse the message from. Without protocol > id, firmware not know which shmem area should use. Hope this is clear. > Not all platforms need to have a separate shmem for each protocol. Make it it separate transport. -- Regards, Sudeep