Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp378306ybl; Fri, 30 Aug 2019 00:55:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm9Ogv9TndDsOAxwwyCtLkKpvi9P4uZuHQse48He4vwExamxnM17nXjutTzA4alN4hF3Wi X-Received: by 2002:a17:902:1a6:: with SMTP id b35mr14289246plb.182.1567151735098; Fri, 30 Aug 2019 00:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567151735; cv=none; d=google.com; s=arc-20160816; b=beNKpPY6FkEOmW3q2sAevB9WAEAgN9GeOAAck9UE80JDRz95u/x6c8QiB8ie6RNDRE 1EKkjBV6CJi9lijAFOfjmIL/cFQnCdJ331EG+hYGzGjG/2BuCy1jnptBcDkkLN+8Fe2z /ZBpSf1EcSoeegetRhkOy/sIAjXTjBtAoDJu5hh/3sZiMNc3Tpy8U/PnBFbIqTddLXF5 rwHmmOJLKjYLlVUu38ahzZML2u3Gt6F1mFTnuTAj6IWJ+Ldz9zCcYJ2vnB3PC5HmNCqp SmMemTf5rY368Znf0sFFNhdJxWLno+PfNHVObvVwNqMKraUZwXFO6kArrQVtprhBPMan hctQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=seOfZY8E9V8LAq9iFiH8rIsovSOi3J9Kn5HK9Pe9dT0=; b=HrJQ5dhvzPq4q7Pnkd7WpZyfHffUPd87WknHyifiF1o/dP/M46x5n/Vi6FNXcQfc9P oQ5Ltomh8PhxDbo4pVIUHRq9xskDxfwB9NyibUC4jm7s96jPvPOsRUISry+ejHyMsSie TM5/sU8mUeEXwvBQtlAlUobPrPN0WjLqngs/yIn4tkzz6ZnKbu5rKl1Evu5b4CRgwMaa 45ngBao6Cduq1m859y78GEL5gXIF8OzujC2AKzdlaUi/4rV9wCFft7AJcvgKgZKjLKJJ iMaUfOOO1Kf4AM2y029B9yCitu80dVXouRRqmLVVsOkKHFdG2gPBfW17ONJ6/Os/XmTX P3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pi0qaK8x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n187si3939462pga.165.2019.08.30.00.55.19; Fri, 30 Aug 2019 00:55:35 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pi0qaK8x; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728424AbfH3Hwx (ORCPT + 99 others); Fri, 30 Aug 2019 03:52:53 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:34444 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbfH3Hww (ORCPT ); Fri, 30 Aug 2019 03:52:52 -0400 Received: by mail-io1-f65.google.com with SMTP id s21so12305804ioa.1; Fri, 30 Aug 2019 00:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=seOfZY8E9V8LAq9iFiH8rIsovSOi3J9Kn5HK9Pe9dT0=; b=pi0qaK8xrhzeSNZR1sW1g2NxUcg2TWC1pxlDvOLT4BraWo0mC2LKPARENHylbYQK00 CmHIL0JyMyL4qblKksLvduPxOebrXQ5/2IV/K4AxFD8sCPx0HknjGu9kGpuNcjSTaWn+ WwjtLXGhAmgqbLwu5TcPZhY6S4l2ivV2iSI+rFwrUPn4/gjG588atx/SJqxUwKfScSlT r6s2N2Ym4rOOCfDW95S2/ooqezcP1HTAC7QW2ph52eeKlojjDSemmqYxyG91POrwxsFh gO7P96Jazx26FzuSOZP7IUnsCDqsTS67AMc94Ur8MyEH4qw7SSQuabf7PbmpVpm+yaLW bKcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=seOfZY8E9V8LAq9iFiH8rIsovSOi3J9Kn5HK9Pe9dT0=; b=aCmAVBhKI23mIuKXU8JkA572UKRa6qh7rElH+SF9kp4Iz57dYLg6KcaQ9vKzBCGBaA ti8ijCh03BRsSTwllmnCGFg8QmOUfgXWRsHe3oP0DvzrY8J6FCvZGboZ9UqStnYyZurp 9SVDJQSiE/T60ZxqG/X1no6cdSUTKfFnaf41568foKrZJgonZkIoy4Aec2lc1jqTIf+T XgPh/+0E4KwtfKVNGzuXkh03IczbFObzn5Ys8ULQPNtiOq1FequGDug4IXGH3FSSXS1x j7VFJ4kC/ZDsozYQVseb0IM2GVRCYuZIuq8oMxT1vDnH45pmRaAThm1tU/oQWefQLn4o 3NfQ== X-Gm-Message-State: APjAAAUJ5g6SnGfduTls8FXElJSovZIZahou/0IX2Z+iil5o71sDNoRf LZcCqAO2KP+FMxGBXmSmavYhQr1ySqGZYZhTisU= X-Received: by 2002:a5e:8c0a:: with SMTP id n10mr12862989ioj.69.1567151571826; Fri, 30 Aug 2019 00:52:51 -0700 (PDT) MIME-Version: 1.0 References: <1567004515-3567-1-git-send-email-peng.fan@nxp.com> <1567004515-3567-2-git-send-email-peng.fan@nxp.com> In-Reply-To: From: Jassi Brar Date: Fri, 30 Aug 2019 02:52:40 -0500 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox To: Peng Fan Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "sudeep.holla@arm.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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 2:37 AM Peng Fan wrote: > > Hi Jassi, > > > Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM > > SMC/HVC mailbox > > > > On Fri, Aug 30, 2019 at 1:28 AM Peng Fan wrote: > > > > > > > +examples: > > > > > + - | > > > > > + sram@910000 { > > > > > + compatible = "mmio-sram"; > > > > > + reg = <0x0 0x93f000 0x0 0x1000>; > > > > > + #address-cells = <1>; > > > > > + #size-cells = <1>; > > > > > + ranges = <0 0x0 0x93f000 0x1000>; > > > > > + > > > > > + cpu_scp_lpri: scp-shmem@0 { > > > > > + compatible = "arm,scmi-shmem"; > > > > > + reg = <0x0 0x200>; > > > > > + }; > > > > > + > > > > > + cpu_scp_hpri: scp-shmem@200 { > > > > > + compatible = "arm,scmi-shmem"; > > > > > + reg = <0x200 0x200>; > > > > > + }; > > > > > + }; > > > > > + > > > > > + firmware { > > > > > + smc_mbox: mailbox { > > > > > + #mbox-cells = <1>; > > > > > + compatible = "arm,smc-mbox"; > > > > > + method = "smc"; > > > > > + arm,num-chans = <0x2>; > > > > > + transports = "mem"; > > > > > + /* Optional */ > > > > > + arm,func-ids = <0xc20000fe>, <0xc20000ff>; > > > > > > > > > SMC/HVC is synchronously(block) running in "secure mode", i.e, there > > > > can only be one instance running platform wide. Right? > > > > > > I think there could be channel for TEE, and channel for Linux. > > > For virtualization case, there could be dedicated channel for each VM. > > > > > I am talking from Linux pov. Functions 0xfe and 0xff above, can't both be > > active at the same time, right? > > If I get your point correctly, > On UP, both could not be active. On SMP, tx/rx could be both active, anyway > this depends on secure firmware and Linux firmware design. > > Do you have any suggestions about arm,func-ids here? > I was thinking if this is just an instruction, why can't each channel be represented as a controller, i.e, have exactly one func-id per controller node. Define as many controllers as you need channels ? -j