Received: by 10.223.164.202 with SMTP id h10csp4509683wrb; Mon, 20 Nov 2017 17:09:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMazXO1HwnPwljCr9TxGQdjNMyntHsxjqzg/9hFozXv5OjwvxrzyNa1vhfJXY0UVgDfBM11f X-Received: by 10.98.60.27 with SMTP id j27mr13219615pfa.68.1511226584812; Mon, 20 Nov 2017 17:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511226584; cv=none; d=google.com; s=arc-20160816; b=z4JIyw6/ZAbRf0foHWFznwwWQA4RsWHCdtA2v3JdOkiHaBA24XBm4RhQBOQqLPm2Qm C3ksRnYa9YPSNsd4XelMusUAMBw97ijr8fkWYEcMvKT4PJZD1C++GzbyF00kmOJMGSW8 IzkN7pVtfuxyQtyULUztRn+8KWETtHsWPF+GOCSSe5k7WkEo6OuERGR7B5UukVo6S/Ra ZJH8b+nTRDZsipsXPkmLemmhYEEFHexxdLuVPBn9gPzW/YsLdfySoZNCtF8KLyaHSWMU qQjuev6e2gvQv7Ewliwj86SlUqy/ePgnmTEXTbmuXN5Klj/Guk0tnWWf4ztpA00WeMvL wZ7Q== 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:arc-authentication-results; bh=pFZlo35+B4yqTF9H3Tgo4KUStRvBgcjlJHGjZzAOyRE=; b=kuNKM6IfB0vDONHH540GBhNmlNLe3MWuP09boHObMOR8Knpt2QY5JKuq5thXnuvzyf fo2rU2a6U0EW0O2xVAOjff3plxCANsoWl6/eOdyM76U2sauLDWve565Tbj8f4qahmOAr NWm46H//JLjYAOhNa3b57bIyyE2xQ9OOWBjCQI03JZiWu66PVCz32mhnD2YM2blN+2ur W6Y0XT/JmfoO0TiLi3pPcl4mVJna6MTzYkV1CPhD5l8NN+tc/1on/9tIN/N9mueOFt9d RKi8r4rukQP8r9Jb3LGGc53qssONVDPS0Qikp+2+3gko2l/0FTjxBWcMmxohdgx9XH8y xlPg== 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 e14si9423854pga.447.2017.11.20.17.09.33; Mon, 20 Nov 2017 17:09:44 -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 S1751938AbdKUBIy (ORCPT + 70 others); Mon, 20 Nov 2017 20:08:54 -0500 Received: from mout.gmx.net ([212.227.17.22]:58011 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbdKUBIx (ORCPT ); Mon, 20 Nov 2017 20:08:53 -0500 Received: from latitude ([185.66.193.44]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MEFqW-1eNUV32nto-00FWzd; Tue, 21 Nov 2017 02:08:45 +0100 Date: Tue, 21 Nov 2017 02:08:44 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: patches@groups.riscv.org Cc: j.neuschaefer@gmx.net, mark.rutland@arm.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [patches] Re: [PATCH] dt-bindings: Add a RISC-V SBI firmware node Message-ID: <20171121010843.4nmndskaoslqcyyh@latitude> References: <20171120202856.nptoirhm5luiamt7@latitude> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kuoznduu6gtgogwf" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Provags-ID: V03:K0:8nK9BJ23oE8Vn5u3ZUAG272DeFumNe2VUZdLp/6sJftz5DowJ0m hnexsbtsNJ+7sCz4Crf2dhAFgPoqMysRqGduy/qSuad91FTb/YvqY9zjnEp/XwmK3HX9HqG DDrc7CQ7w/ZDAHvqNV3G4mGJ7Hp3gNIF7afqisnqmOumOE6XtRk3JRD4qzkU+gTVSppVJLD qLkMv693BNKo/QUJOToqQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:qEnq9ZmqroQ=:Ju82M47WZfKGVJTbDM6J2k Iaiz+hI41yk8uI38OD5XShc8eu4b52LLx/kvxdnhvA5vMZ8SqRE3S4qXDnilre2DnYpmA2/GR VI+EV4SJ3F/1eAxGAkiivO0yTZRzT6dFBfG6xT3ZVFxi+ySrGAJPdq/LGvP/H0K1D0zYsyqn1 Dv4WhAk17TgqPOV8B0HqJpSNcqJ9DlwiI/aampkpTJT53pAXJvmKXe0IIDDnd+dADrxg7Udov DKy428zvGG9wamc9r8OGce4bzb2NzR9SKX6gYCJr4ntCSJHjn6KIXW1ZRMB4sOlU49Bko6N9s KqtjY66pLTAPETt67OVPRA3X8zQOisjM7q+wsZTDMm3kC5mDYYa4b8cfOgXnNzJ5d7g/7A8jS 05Sdhysb1ftOsBqK4tTW35oJE5BSsoMhRCbp2EhndwbptHu3jOgjsjo4CU1nSHWfU3uKD2N6a PopiqI5CiMwMjl+BXq4/6EAXEX5OdP3OlC4OmoBW2Kt37mA/Pp2bLQnMgOTrmuzbsgGhODmsj RJoVNQrGgfCFQt7RIASbuTpOwNBmuOIwQA8L0bKh5w/JKDxGTXZ44Vp4CxvpiTbkBYPAZ5pFt u9wQ2da8upfliIfjFcjUgVz6w7AMt67RS0xF1nAbPwwONDjfCiF9YfCKFl2kaIP0zelU4V34R H86zaYI88/N3nUUyzSAy1HxWuSaIYCD2Sslw1aRacKXxtLYX+aEyF2xmtohtBiFDJU5tqx0+Y 1k24eoZh/jkWeZHe3UTDnaVvtVKnieLeIGpUHm/eCLwtwZc2NlPs6jBWlkwO+8aW7605SXNd4 TdCOuYgq3BFkE29ua5YcI1Tzc3/KGu34w3ClG5g0HnNLf5REQA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kuoznduu6gtgogwf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 20, 2017 at 01:28:01PM -0800, Palmer Dabbelt wrote: [...] > > > +++ b/Documentation/devicetree/bindings/firmware/riscv.sbi.txt > >=20 > > Nit: Other bindings use either a comma (as in the compatible string, > > "riscv,sbi.txt") or a dash (vendor-product.txt, "riscv-sbi.txt") in the > > file name. >=20 > That was just a typo, I'll fix it. Ok > > > @@ -0,0 +1,20 @@ > > > +RISC-V Supervisor Binary Interface (SBI) > > > + > > > +The RISC-V privileged ISA specification mandates the presence of a s= upervisor > > > +binary interface that performs some operations which might otherwise= require > > > +particularly complicated instructions. This interface includes > > > +inter-processor interrupts, TLB flushes, i-cache and TLB shootdowns,= a > > > +console, and power management. > > > + > > > +Required properties: > > > +- compatible: must contain one of the following > > > + * "riscv,sbi" for the SBI defined by the privileged specification o= f the > > > + system. > >=20 > > "of the system" seems to imply that different RISC-V systems (different > > RISC-V implementations) can have different privileged specifications. >=20 > Actually, that was intentional -- I wrote it this way because different > RISC-V systems do have different privileged specifications. The RISC-V > specifications aren't frozen in time, they're just guaranteed to be > compatible in the future. For example, the user ISA document has been > updated multiple times (the C spec, eliminating some unspecified behavior) > and will continue to be updated (V and other extensions, the memory model= ). > The privileged spec will be updated in a compatible way just like the user > spec will be -- I know there's at least hypervisor support in the works, = and > I saw some things to remove undefined behavior go past as well. >=20 > In a similar fashion, the ABI and SBI will continue to evolve. For examp= le, > we'll probably add new system calls to extend the user ABI and new hyper > calls to extend the SBI. My problem with the wording was that the OS somehow has to know which version and variant of the SBI it is talking to -- either through in-band communication (an SBI call to request SBI information, etc.), or through devicetree or similar mechanisms. >=20 > > I think it's better to refer to concrete documents, that don't depend on > > the rest of the system, instead. Either: Thanks, Jonathan Neusch=C3=A4fer --kuoznduu6gtgogwf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJaE3yTAAoJEAgwRJqO81/bgoUQALiRczHL4V5hCqRjiIFNEt2M um/4Az9jtVPSMYpIP5jc4iYGqwZ7S/0k38wNR3cg4StLSCNFG9fZK7X4oefWWTjo ZMB4c2I2twrse6mMmNSbEGKCOJ/sR40Uk80EocTC/PFOfNYhEcrT1i5kLqZC+gDx XqHwOM0mFJbXpj0KW+P39Vt8P95sFLI669NuIe9ymtNborT1hLwGCgMcm7Fv9Xyh 5jGmtWkYwwrlPTYnDKq4ZJuhRgz1yNsZLb/QiF4HklSBeXSfjmh7E09Urn+/eZSl zdIFu/96GE6nvkHY3+ZmegH8OiV0kaqw4/WiyKhHS2itWGwI+81ussY3DIuCi3YC ojv7wMJgwgUhJc83PC3jGiv6kzojp3ssw18CCr2NXwAjlXrgMi0qGCKVy9k3DTX6 6BBMV50BFLy41QXKyrJY6oOLwR2jHVWmfYSa9AhBawZ1Gz3WiEjm4GQl8SqY7Wg+ p3lX+C2gSkbym0TaLcBgveHd3NsM1QbmUO9y9LplL2hhh8yuq0Ce5S6F8rV0iuQW 7HJ9PNux84EBmdhJvORKmx5ZLTgxZAwL0u5zTpYoIgs/o2CjprN9mAqgNoQO5zJC xbKnciwRXWqxE9rf0T94E3nis/hwbUK9ZhTwUW2DCjPwAl8BHeowFuvoIXuq8GIn tDL8TIIn04e3U9THiDtM =4dtp -----END PGP SIGNATURE----- --kuoznduu6gtgogwf-- From 1584623131948358098@xxx Mon Nov 20 21:46:22 +0000 2017 X-GM-THRID: 1584615981624343565 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread