Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp978291ybl; Fri, 30 Aug 2019 09:53:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM4lB71xqVA2WmQGDK2vwQZ9SRO5yW7de79bVT2UlHvbych+fbhZdOBY6BQjYad2uT0yGx X-Received: by 2002:a17:90a:8c01:: with SMTP id a1mr15851482pjo.82.1567183997733; Fri, 30 Aug 2019 09:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567183997; cv=none; d=google.com; s=arc-20160816; b=Z73uJMdB13qaWd4DZjanrighK4j09FjZM7nrjzjcGjGXSYIk6ny4hlfID3zN7Bnvuj EwMTHrk5CIeYBUQrS/UNUS3fnlRHAFeT0BDGNQYb7Em+zsQtd0ALWfTQdrm6g52MVXzd qsr5/USN/nJeQf3T5Ut4itgEVnS40jdxYR2f873I7HXp+Ek5ZZhlOKGtSzW/pj33WAuv ii8AuRP8kJy7cy+ZcCadwCqULd1ktj7q+cPVu+jE1lF/EzSIwaN2nVzQJwXc5VBIkuBv vOno0HdxsRt/hEK2WqlflaPfSMG4pzHx+O6XgPiQfh2RPLCFdc1EcUdWoYpthQgSTB2O 0OVQ== 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=SFX0aYjr12ElBxGUUuhmY02XvhQTT8mqSM2FhQu+1yo=; b=l5BtsVP/mFdxhHj000c4FL46axVNX52tAl4BS2z9lm64z0mflHG4DqJLvRX8fVp4WQ cDxUVoidNtUl1ffV/k9Ku4+HUVk/FyITksLEjUplznsiW+wXrtVzZAX34j7PdjUJRA3u NEV+FVCVmOe/D11WWn/xTviuECXUbnfRwcNRusCnESQE6TZH1t5HkiluLt8enMWTyrMs hTLdACI77Qs+jDT0WdCv1qnh1hYn0w2BgMIZpRTORm8u1kpBBVES2QF+tDcY27ZzlYg+ 1oWqmd0jgTn3D8Sc1jQAb2aIBge3T7WUqZAt7cH5zMvZzj0u4WBz6Uoi4Oyz1baHXJr+ dTsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HwFFZ19r; 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 145si6214662pfb.262.2019.08.30.09.53.02; Fri, 30 Aug 2019 09:53:17 -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=HwFFZ19r; 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 S1728267AbfH3QwL (ORCPT + 99 others); Fri, 30 Aug 2019 12:52:11 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38678 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbfH3QwL (ORCPT ); Fri, 30 Aug 2019 12:52:11 -0400 Received: by mail-io1-f67.google.com with SMTP id p12so15391599iog.5; Fri, 30 Aug 2019 09:52:10 -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=SFX0aYjr12ElBxGUUuhmY02XvhQTT8mqSM2FhQu+1yo=; b=HwFFZ19rxfnn+04b1Fr5rxhs3yfgcYVDVOTgKOICvS7Vje0P49EkKSbtocdc/9zLWl dxGRUNg782DyUerU+Dqk1UqTnHE6f8Ek6Te/hEbgue33eB2Du0Qs7yeWFz9gvDwFOOoL 0wt61hfVhfQ+FcEv88vCKbX1sY4EZ0cV28FsfNkpaqgL5vHT7QeQb5m2jZXo/c/99jVz Qg45hz8w9fCRCb9H+9mJbJCN06R35ff7rer6FTu9xUvDSd1hTLhKsxdnIgyBonUm7QFy jlqtnwF1BuJy743RtUXI/EitGhKAHOIRr45QoooQUG3Sd9xyqJQa1bYTs8EDTTFUcGUn 88Fg== 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=SFX0aYjr12ElBxGUUuhmY02XvhQTT8mqSM2FhQu+1yo=; b=cexcl1E8p71H6ubfbGbZb1KlJmSpngWTj7l73VZrdLq4ujcmO+qEjsljVShgWYEtSC ctQrrn0bSw1pQwW/BDZqSj+/0gekde0zZoTkRAhGiRWyNawbEqb2PfKj7mX/IHHcgYMR n5Ki0FYicgPSNvlb5QxoqDoH+/PqMyKGFlJgm7M11oKkcsG+uCNCcjIqBBFgSgb6QmOT Tcifg1lBgdCoCV21s+0aUBtGAchSjGWJlWyVuYKTca+/VTpqzjU3IXWpOVK6Eq15DNTe MytjwzuLlZ4cDDjx1XIqxdrA1oXVZQiZROYN5Ejw0n22zqmt6vCxk6WQKyCz2kaWcmSs tugQ== X-Gm-Message-State: APjAAAVPeavTRXssxcYKRbt5IxbPa2golIUQbaSWToZKxi1G1KfrNRCl D4BLmT3vrWTJAJZNiBxTxOv0g0YykAvmgrMQ9nc= X-Received: by 2002:a05:6638:143:: with SMTP id y3mr16244129jao.68.1567183930478; Fri, 30 Aug 2019 09:52:10 -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> <20190830093224.GB31297@bogus> In-Reply-To: <20190830093224.GB31297@bogus> From: Jassi Brar Date: Fri, 30 Aug 2019 11:51:59 -0500 Message-ID: Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox To: Sudeep Holla Cc: Peng Fan , "robh+dt@kernel.org" , "mark.rutland@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 4:32 AM Sudeep Holla wrote: > > On Fri, Aug 30, 2019 at 02:52:40AM -0500, Jassi Brar wrote: > > On Fri, Aug 30, 2019 at 2:37 AM Peng Fan wrote: > > [...] > > > > > > > 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 ? > > > > I might have missed to follow this, but what's the advantage of doing so ? > Which can't single controller instance deal with all the channels ? > There are many advantages ... 1) Design reflects the reality - two smc/hvc instructions have nothing tying them together. 2) Driver code becomes simpler - don't have to pre-populate channels, deducting from the size of func-ids array. 3) Driver becomes more flexible - We can have channels that pass func-id runtime and channels that pass via DT (if we must have the option of DT property). -jassi