Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7553019ybi; Wed, 5 Jun 2019 20:26:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgzlkxEadLNig0HpeDBDaS74H2RxsjHQsdExzi5K53nzkNRNUHJClZShD9Bie+c9T/iYIY X-Received: by 2002:a63:4c54:: with SMTP id m20mr1229698pgl.316.1559791594916; Wed, 05 Jun 2019 20:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559791594; cv=none; d=google.com; s=arc-20160816; b=0D2OHSqY8bO6wE/J6hzQXbX9qXOiSvHr/7KQHSlO2rZZ5lKr9kXdvK57Ob0hB+u4N8 j6v8TXLRioAtrux4x16xYJ2mrDpZqKZMfsYGh6SLcR/tQxo3yMsoAVENNaPAQ23GuZVK NUAu4GNd6fu/ZCW8ELnk+lYbyL+W+oLFbRliWmAEqBVvi+E29NNpsVY+HwIs5QFaR/Dp P0OMg4IK/EAcX7ynxHDTXQkRcCvmi2HPUuWPFk5xQDpFLtz46UdJ4aahM4k8O2VeXwOp Wc5eHKylrfcB4f2KxPk3E20orAy72oAojYu64xCJPBCLAkuGT3mbOv7H5ejvoogz6Zel Pzqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=NOOuwUCUiVc6WZkaFHa4DL/UnHk2vuFFTUvIS+XE/yM=; b=dcnXb5p4St+XHTmTTsG4XnVTFdUxcAdBQ+d2khpMzvAcN+K+VAG7vaR3fQyfv7H99m WpF2cRIVOvWw7ks/lscmVvXM+xKKxF2KbUoC0Jsmru75OPPqruTdSD2RxM2sYDK7xiqJ h2nl/mijVU5/tV4OgH1qbRak91XXc4zSEIsA/Ac0YRa8ZBK1Ny0+jw9A0XJuzvwleS7G sdjY4vcGmIOpgrbpJ5HkLsDD2R+YyOmyy5QIrhl3Yd6VC36WA0+eJPqLHY9Tag5rJwuE +asf4OREve1b/mUXEcpge/Th3VWwc7XsjKXDryiLTvHeUtzN2orGu9Q2ND7JAmj01tIs rQLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=nHQPlhki; 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si562299pfx.152.2019.06.05.20.26.18; Wed, 05 Jun 2019 20:26:34 -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=@nxp.com header.s=selector2 header.b=nHQPlhki; 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbfFFDYn (ORCPT + 99 others); Wed, 5 Jun 2019 23:24:43 -0400 Received: from mail-eopbgr80049.outbound.protection.outlook.com ([40.107.8.49]:55926 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726427AbfFFDYn (ORCPT ); Wed, 5 Jun 2019 23:24:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NOOuwUCUiVc6WZkaFHa4DL/UnHk2vuFFTUvIS+XE/yM=; b=nHQPlhkitmnSLTH4moWsWcndSusPKuOpPyHadm23ouSdgc4pzjRV9vSQ1m7owB9aSQzwWdDUgwGKrgRs6oM9kpH5nhCyqGSDg5/C+Mo4M7wDaA/rnWGb2QQKmZwOX/Ya7++j8tIcy8lEx/fUSsXXBFmmxLn0AjNXcYOm8PogPRk= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6484.eurprd04.prod.outlook.com (20.179.253.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.13; Thu, 6 Jun 2019 03:24:38 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::6090:1f0b:b85b:8015]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::6090:1f0b:b85b:8015%3]) with mapi id 15.20.1943.023; Thu, 6 Jun 2019 03:24:38 +0000 From: Peng Fan To: Andre Przywara , Sudeep Holla CC: Florian Fainelli , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "jassisinghbrar@gmail.com" , "kernel@pengutronix.de" , dl-linux-imx , "shawnguo@kernel.org" , "festevam@gmail.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "van.freenix@gmail.com" Subject: RE: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC mailbox Thread-Topic: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC mailbox Thread-Index: AQHVGeZSRIOE2F02XEeufaIbr7CheqaKHTcAgAAJqoCAAAYrAIADzXeQ Date: Thu, 6 Jun 2019 03:24:38 +0000 Message-ID: References: <20190603083005.4304-1-peng.fan@nxp.com> <20190603083005.4304-2-peng.fan@nxp.com> <20190603165651.GA12196@e107155-lin> <20190603181856.34996aaa@donnerap.cambridge.arm.com> In-Reply-To: <20190603181856.34996aaa@donnerap.cambridge.arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9a62be9d-0f03-48e8-cd66-08d6ea2e81bf x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB6484; x-ms-traffictypediagnostic: AM0PR04MB6484: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 00603B7EEF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(376002)(366004)(346002)(396003)(199004)(189003)(7696005)(33656002)(186003)(53546011)(102836004)(26005)(3846002)(6116002)(7416002)(6506007)(76176011)(66066001)(229853002)(6436002)(6246003)(8676002)(14454004)(15650500001)(74316002)(316002)(110136005)(5660300002)(54906003)(478600001)(71200400001)(71190400001)(99286004)(52536014)(4326008)(66556008)(25786009)(7736002)(256004)(53936002)(55016002)(2906002)(81156014)(86362001)(81166006)(8936002)(14444005)(68736007)(486006)(44832011)(446003)(11346002)(476003)(66476007)(66946007)(76116006)(73956011)(64756008)(66446008)(9686003)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6484;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: EANI2+MuLpqHK8Wycwtqs5ea69v7RjMfu3vwMzfrGpE/mf9lLQlFUK0CFJPD/VQ+WaMUhE/Dvgo6bLDEZXm7XayHXMzth84b0p2BVTK1/zQXBox8Njn9M9YVTagkV5ZvX4R1lB8x+tjhu2yXvdVRlWfPfnkaDahKKf8YXC0eI+a9uuFvuSqjGuRCDL/apRGRADEX/sE5mtqqYWuD6lTW4ejuKGwqr9NX6F5x8ytBzjwYVkgkl2syYN3PuPpZY1CSt9yuGwMarXitsJ7XOgUyg3L5XlJWP9A6PzjMXy1eDljjsOvRH9qus0i4nnL+bIkK/wS8wq4608JCgablQIPdDopUDiuHzx/Eazo+oMy8/yjM5pOeIQd/0pPB3w4YMFtE44B6xmlK+Fq8FFrsfbl3aNGIrQgMnHluxAnfxx7gxH8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a62be9d-0f03-48e8-cd66-08d6ea2e81bf X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2019 03:24:38.4930 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: peng.fan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6484 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH V2 1/2] DT: mailbox: add binding doc for the ARM SMC > mailbox >=20 > On Mon, 3 Jun 2019 17:56:51 +0100 > Sudeep Holla wrote: >=20 > Hi, >=20 > > On Mon, Jun 03, 2019 at 09:22:16AM -0700, Florian Fainelli wrote: > > > On 6/3/19 1:30 AM, peng.fan@nxp.com wrote: > > > > From: Peng Fan > > > > > > > > The ARM SMC mailbox binding describes a firmware interface to > > > > trigger actions in software layers running in the EL2 or EL3 except= ion > levels. > > > > The term "ARM" here relates to the SMC instruction as part of the > > > > ARM instruction set, not as a standard endorsed by ARM Ltd. > > > > > > > > Signed-off-by: Peng Fan > > > > --- > > > > > > > > V2: > > > > Introduce interrupts as a property. > > > > > > > > V1: > > > > arm,func-ids is still kept as an optional property, because there > > > > is no defined SMC funciton id passed from SCMI. So in my test, I > > > > still use arm,func-ids for ARM SIP service. > > > > > > > > .../devicetree/bindings/mailbox/arm-smc.txt | 101 > +++++++++++++++++++++ > > > > 1 file changed, 101 insertions(+) create mode 100644 > > > > Documentation/devicetree/bindings/mailbox/arm-smc.txt > > > > > > > > diff --git a/Documentation/devicetree/bindings/mailbox/arm-smc.txt > > > > b/Documentation/devicetree/bindings/mailbox/arm-smc.txt > > > > new file mode 100644 > > > > index 000000000000..401887118c09 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/mailbox/arm-smc.txt > > > > @@ -0,0 +1,101 @@ > > > > [...] > > > > > > +Optional properties: > > > > +- arm,func-ids An array of 32-bit values specifying the function > > > > + IDs used by each mailbox channel. Those function IDs > > > > + follow the ARM SMC calling convention standard [1]. > > > > + There is one identifier per channel and the number > > > > + of supported channels is determined by the length > > > > + of this array. > > > > +- interrupts SPI interrupts may be listed for notification, > > > > + each channel should use a dedicated interrupt > > > > + line. > > > > > > I would not go about defining a specific kind of interrupt, since > > > SPI is a GIC terminology, this firmware interface could be used in > > > premise with any parent interrupt controller, for which the concept > > > of a SPI/PPI/SGI may not be relevant. > > > > > > > While I agree the binding document may not contain specifics, I still > > don't see how to use SGI with this. Also note it's generally reserved > > for OS future use(IPC) and using this for other than IPC may be bit > > challenging IMO. It opens up lots of questions. >=20 > Well, a PPI might be possible to use, although it's somewhat dodgy to hij= ack > the GIC's (re-)distributor from EL3 to write to GICD_ISPENDR. Need to = ask > Marc about his feelings towards this. But it's definitely possible from a > hypervisor to inject arbitrary interrupts into a guest. >=20 > But more importantly: is there any actual reason this needs to be a GIC > interrupt?=20 No. I just test ATF with SPI when I posting out this. Should not restrict t= o be GIC. If I understand the code correctly, this could just be any interrupt, > including one of an interrupt combiner or a GPIO chip. So why not just us= e the > standard wording of: "exactly one interrupt specifier for each channel"? Agree. >=20 > By the way: Shouldn't new bindings use the YAML format instead? I'll convert to YAML in next version. Thanks, Peng. >=20 > Cheers, > Andre.