From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Oleksii Moisieiev <Oleksii_Moisieiev@epam.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>
Subject: Re: [RFC v1 3/5] xen/arm: introduce SCMI-SMC mediator driver
Date: Thu, 23 Dec 2021 18:45:29 +0000 [thread overview]
Message-ID: <877dbvw46v.fsf@epam.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2112221627190.2060010@ubuntu-linux-20-04-desktop>
Hi Stefano, Oleksii,
Stefano Stabellini <sstabellini@kernel.org> writes:
> On Wed, 22 Dec 2021, Oleksii Moisieiev wrote:
>> On Tue, Dec 21, 2021 at 01:22:50PM -0800, Stefano Stabellini wrote:
>> > On Tue, 21 Dec 2021, Oleksii Moisieiev wrote:
>> > > Hi Stefano,
>> > >
>> > > On Mon, Dec 20, 2021 at 04:52:01PM -0800, Stefano Stabellini wrote:
>> > > > On Mon, 20 Dec 2021, Oleksii Moisieiev wrote:
>> > > > > Hi Stefano,
>> > > > >
>> > > > > On Fri, Dec 17, 2021 at 06:14:55PM -0800, Stefano Stabellini wrote:
>> > > > > > On Tue, 14 Dec 2021, Oleksii Moisieiev wrote:
[...]
>> > > > In general we can't use properties that are not part of the device tree
>> > > > spec, either
>> > > > https://urldefense.com/v3/__https://www.devicetree.org/specifications/__;!!GF_29dbcQIUBPA!kNodtgmOQBc1iO76_6vTK-O1SoLxee_ChowYQiQYC595rMOsrnmof2zmk7BnhXCSnJPN$
>> > > > [devicetree[.]org] or
>> > > > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings__;!!GF_29dbcQIUBPA!kNodtgmOQBc1iO76_6vTK-O1SoLxee_ChowYQiQYC595rMOsrnmof2zmk7BnhXloYUaj$
>> > > > [git[.]kernel[.]org]
>> > > >
>> > > > "linux,scmi_mem" is currently absent. Are you aware of any upstreaming
>> > > > activities to get "linux,scmi_mem" upstream under
>> > > > Documentation/devicetree/bindings in Linux?
>> > > >
>> > > > If "linux,scmi_mem" is going upstream in Linux, then we could use it.
>> > > > Otherwise, first "linux,scmi_mem" needs to be added somewhere under
>> > > > Documentation/devicetree/bindings (probably
>> > > > Documentation/devicetree/bindings/firmware/arm,scmi.yaml), then we can
>> > > > work on the Xen code that makes use of it.
>> > > >
>> > > > Does it make sense?
>> > > >
>> > >
>> > > Yes I agree. I think linux,scmi_mem and scmi_devid should be upstreamed.
>> > > I will add those properties to arm,scmi.yaml, mark them as related to XEN and send patch.
>> >
>> > I didn't realize that linux,scmi_mem and scmi_devid are supposed to be
>> > Xen specific. In general, it would be best not to introduce Xen specific
>> > properties into generic bindings. It is a problem both from a
>> > specification perspective (because it has hard to handle Xen specific
>> > cases in fully generic bindings, especially as those bindings are
>> > maintained as part of the Linux kernel) and from a user perspective
>> > (because now the user has to deal with a Xen-specific dtb, or has to
>> > modify the host dtb to add Xen-specific information by hand.)
>> >
>> >
>> > Let me start from scmi_devid. Why would scmi_devid be Xen-specific? It
>> > looks like a generic property that should be needed for the Linux SCMI
>> > driver too. Why the Linux driver doesn't need it?
>> >
>>
>> scmi_devid used during domain build. It passed as input parameter for SCMI_BASE_SET_DEVICE_PERMISSIONS message.
>> On non-virtualized systems - there is no need of this call, because OS
>> is the only one entity, running on the system.
>
> OK. Even if it is only required for virtualized systems, I think that
> scmi_devid is important enough that should be part of the upstream
> binding. I think it is worth starting an email thread on the LKML with
> Rob Herring and the SCMI maintainers to discuss the addition of
> scmi_devid to the binding.
Agree there. Also I want to point that there are other hypervisors, like
KVM, which may benefit from this.
Another approach is to name this node "xen,scmdi_devid", but I don't
like it.
>> I've chatted with Volodymyr_Babchuk and he gave a great idea to add a
>> list of device_ids to dom.cfg, such as:
>> sci_devs = [ 0, 1, 15, 35 ];
>>
Well, yes. We discussed this possibility, but personally I stick to
idea of re-using dt_dev, as we discussed in the different thread.
>> Using this approach, we can remove scmi_devid from the device tree and
>> just pass a list of scmi_devids to XEN using additional hypercall.
>> We can probably make hypercall taking devid list as input parameter.
>> This will take only 1 hypercall to setup sci permissions.
>
> But how would a user know which are the right SCMI IDs to add to the
> sci_devs list? Would the user have to go and read the reference manual
> of the platform to find the SCMI IDs and then write sci_devs by hand?
> If that is the case, then I think that it would be better to add
> scmi_devid to device tree.
>
Yes, ideally this needs to be done by BSP vendor in the device tree.
--
Volodymyr Babchuk at EPAM
next prev parent reply other threads:[~2021-12-23 18:46 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-14 9:34 [RFC v1 0/5] Introduce SCI-mediator feature Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 1/5] xen/arm: add support for Renesas R-Car Gen3 platform Oleksii Moisieiev
2021-12-15 6:38 ` Oleksandr Andrushchenko
2021-12-15 20:08 ` Oleksii Moisieiev
2021-12-15 9:39 ` Julien Grall
2021-12-17 10:48 ` Oleksii Moisieiev
2021-12-15 9:57 ` Oleksandr Tyshchenko
2021-12-17 10:52 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 2/5] xen/arm: add generic SCI mediator framework Oleksii Moisieiev
2021-12-17 2:45 ` Stefano Stabellini
2021-12-17 12:50 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 3/5] xen/arm: introduce SCMI-SMC mediator driver Oleksii Moisieiev
2021-12-17 11:35 ` Oleksandr
2021-12-17 13:23 ` Oleksii Moisieiev
2021-12-17 13:37 ` Julien Grall
2021-12-17 13:58 ` Oleksii Moisieiev
2021-12-17 16:38 ` Julien Grall
2021-12-20 15:41 ` Oleksii Moisieiev
2021-12-24 14:42 ` Julien Grall
2021-12-24 17:02 ` Oleksii Moisieiev
2022-01-03 13:14 ` Julien Grall
2022-01-06 13:53 ` Oleksii Moisieiev
2022-01-06 14:02 ` Julien Grall
2022-01-06 15:43 ` Oleksii Moisieiev
2022-01-06 16:04 ` Julien Grall
2022-01-06 16:28 ` Oleksii Moisieiev
2022-01-19 10:37 ` Oleksii Moisieiev
2022-01-20 2:10 ` Stefano Stabellini
2022-01-20 10:25 ` Oleksii Moisieiev
2021-12-18 2:14 ` Stefano Stabellini
2021-12-20 18:12 ` Oleksii Moisieiev
2021-12-21 0:52 ` Stefano Stabellini
2021-12-21 20:03 ` Oleksii Moisieiev
2021-12-21 21:22 ` Stefano Stabellini
2021-12-22 11:04 ` Oleksii Moisieiev
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 18:45 ` Volodymyr Babchuk [this message]
2021-12-23 19:06 ` Oleksii Moisieiev
2021-12-24 0:16 ` Stefano Stabellini
2021-12-24 13:29 ` Julien Grall
2021-12-24 13:59 ` Oleksii Moisieiev
2021-12-24 14:28 ` Julien Grall
2021-12-24 16:49 ` Oleksii Moisieiev
2022-01-03 14:23 ` Julien Grall
2022-01-06 15:19 ` Oleksii Moisieiev
2021-12-24 14:07 ` Oleksii Moisieiev
2022-01-19 12:04 ` Oleksii Moisieiev
2022-01-20 1:28 ` Stefano Stabellini
2022-01-20 10:21 ` Oleksii Moisieiev
2022-01-20 22:29 ` Stefano Stabellini
2022-01-21 15:07 ` Oleksii Moisieiev
2022-01-21 20:49 ` Stefano Stabellini
2022-01-24 18:22 ` Oleksii Moisieiev
2022-01-24 19:06 ` Stefano Stabellini
2022-01-24 19:26 ` Julien Grall
2022-01-24 22:14 ` Stefano Stabellini
2022-01-25 14:35 ` Oleksii Moisieiev
2022-01-25 21:19 ` Stefano Stabellini
2022-01-27 18:11 ` Oleksii Moisieiev
2022-01-27 21:18 ` Stefano Stabellini
2021-12-14 9:34 ` [RFC v1 4/5] tools/arm: add "scmi_smc" option to xl.cfg Oleksii Moisieiev
2021-12-15 21:51 ` Oleksandr
2021-12-17 11:00 ` Oleksii Moisieiev
2021-12-21 0:54 ` Stefano Stabellini
2021-12-22 10:24 ` Oleksii Moisieiev
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 19:13 ` Oleksii Moisieiev
2021-12-21 13:27 ` Anthony PERARD
2021-12-22 12:20 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 5/5] xen/arm: add SCI mediator support for DomUs Oleksii Moisieiev
2021-12-14 9:41 ` Jan Beulich
2021-12-16 17:36 ` Oleksii Moisieiev
2021-12-17 7:12 ` Jan Beulich
2021-12-17 7:16 ` Jan Beulich
2021-12-17 13:40 ` Oleksii Moisieiev
2021-12-16 0:04 ` Oleksandr
2021-12-17 12:15 ` Oleksii Moisieiev
2021-12-21 14:45 ` Anthony PERARD
2021-12-21 21:39 ` Stefano Stabellini
2021-12-22 9:24 ` Julien Grall
2021-12-22 11:17 ` Volodymyr Babchuk
2021-12-22 11:30 ` Julien Grall
2021-12-22 12:34 ` Volodymyr Babchuk
2021-12-22 13:49 ` Julien Grall
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 19:06 ` Stefano Stabellini
2021-12-24 13:30 ` Julien Grall
2022-01-19 9:40 ` Oleksii Moisieiev
2022-01-20 1:53 ` Stefano Stabellini
2022-01-20 10:27 ` Oleksii Moisieiev
2021-12-23 19:11 ` Oleksii Moisieiev
2021-12-21 1:37 ` Stefano Stabellini
2021-12-22 13:41 ` Oleksii Moisieiev
2021-12-16 0:33 ` [RFC v1 0/5] Introduce SCI-mediator feature Oleksandr
2021-12-17 12:24 ` Oleksii Moisieiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dbvw46v.fsf@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=Oleksii_Moisieiev@epam.com \
--cc=bertrand.marquis@arm.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.