[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v1 3/5] xen/arm: introduce SCMI-SMC mediator driver


  • To: Julien Grall <julien@xxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Fri, 24 Dec 2021 16:49:06 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uFhv5e8SmBpUDZMBw1w8SolLmCMpO1vwdnw5mJXfyik=; b=RYXoAM+vqw/mQ2dB7Q69Rw4xoHl2LCeEW152TMre+82wSwKY7TU/fJByZCOMyS8zIXfIFIf8R9K8l2XFbUmynPB11W3XLzIzm/0bj4Nfm2zXw0UKhtUZzIWZOsmWtG0OvS6aoFKk37H7/Jla3javLvzNsmrxQpPpcTEIEW/U0dgk/ciELrgdN1TDEM+GxpD++cv+7Ny/GYPxJ+USG1GL4AJOEqIMdb7G1bRSbvHDoc3FTif7o7SjEMPWYv4vngAYunPvvM/jldCMZ13vbg2YiZVEPQXPTgKMlt2VPpAX5BcUxX6NqYS2/eE5j8bgtTQqhXZdjd03E+OJE9LMiHAsTQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nYF+BQdT2Vf1gKw7oyYmqnXE0kJx0YsnGHLmN/REfPwD9mKpzqUCxTHL7WTmNAGslPHvaZvDGddoyfLFxV3kLnKhZUy8TQaK36w2seYSEeAveu1c+r02A5hs8IRDkHpo+6JnB79e/dAAbmW2ATrEVNsIYdvunr9K+ZENowKZ1tg/ulSetSu9XNOhhldW62ySi2iV0mkmC4YakUf/1o5osE3zPsGotZbN9hwAqFfxgDR3cov3j4eV+5dp68mwG1mBmkIiVkFsZTxVyM7wOqkhB+xZ3fxW4qjwocP+VCG+X037Jrw+7xhtzonSpxy/XKT8Uxgv7vQicZ7XFRxzKHB6+A==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Fri, 24 Dec 2021 16:49:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHX8M3JF7Ng56/tV0+8/7pODiaWfKw3iHyAgAQwJICAAG+xgIABQZuAgAAWSACAAOV/AIABANAAgAEYTICAAFamgIAA3WqAgAAIW4CAAAhUAIAAJymA
  • Thread-topic: [RFC v1 3/5] xen/arm: introduce SCMI-SMC mediator driver

On Fri, Dec 24, 2021 at 03:28:56PM +0100, Julien Grall wrote:
> 
> 
> On 24/12/2021 14:59, Oleksii Moisieiev wrote:
> > Hi Julien,
> 
> Hello,
> 
> > On Fri, Dec 24, 2021 at 02:29:13PM +0100, Julien Grall wrote:
> > > Hi,
> > > 
> > > On 24/12/2021 01:16, Stefano Stabellini wrote:
> > > > > One more question: As you probably seen - Jan had a complains about 
> > > > > SCI
> > > > > term. He said SCI is ambiguous with ACPI's System
> > > > > Control Interrupt.
> > > > 
> > > > I see his point. As a term I see "SCMI" often and sometimes "SCPI" but
> > > > "SCI" is the first time I saw it with this patch series.
> > > > 
> > > > 
> > > > > I think of using SC (as System Control) instead. What do you think
> > > > > about it?
> > > > 
> > > > Yeah, I am not great at naming things but maybe "ARM_SCI"?  "SC" alone
> > > > doesn't give me enough context to guess what it is.
> > > 
> > > I might be missing some context. Why are naming everything SCI rather than
> > > SMCI?
> > 
> > Because we're expecting other interfaces and transport to be
> > implemented, such as for example:
> > scmi_mailbox, scpi_smc, scpi_mailbox, ti_sci_smc etc.
> 
> Oh, now that explain why there is a layer of indirection in Xen. It wasn't
> very clear from the cover letter why it was present.
> 
Please see below.
> > 
> > > 
> > > > 
> > > > Or we could broaden the scope and call it "firmware_interface"?
> > > How would this be used? Will it be a list of interface that will be 
> > > exposed
> > > to the guest?
> > > 
> > 
> > The idea is to set mediator type for each Domain, so for example Xen can
> > use scmi_mailbox to communicate with SCP, Dom0 and DomD are also using
> > scmi_mailbox, but DomU using scmi_smc mediator because we have only 3
> > mailboxes in system. This is not implemented yet, right now, we are
> > introducing only scmi_smc support. In future, multiple mediator support
> > can be added to Xen.
> 
> Ok. So will there be only one interface at the time for a given domain. Is
> that correct?
> 
Correct. The idea is that we provice only one interface to the Domain,
so different domains can use different protocols and transport. Those
interfaces can be different than the interface Xen uses to connect to SCP.
This allows us to vary the configuration. So for example:
Let's take system, that support only 2 mailboxes and communication with
SCP can use only mailboxes as transport. We intent to use scmi protocol
to manage HW. In this case we use 2 mailboxes for Xen-> SCP
communication, and for Dom0 -> Xen. Domu can be configured to use
scmi_smc, so the communication should be the following:
DomU --smc--> Xen -mailbox--> SCP Firmware.
Let's say we want to add DomainX with OS XXX, which using yyy protocol
with zzz transport. Then we can configure DomX wuth yyy_zzz mediator, so
the communication will be the following:
DomX --yyy--> Xen -mailbox--> SCP Firmware
Where Xen knows how to convert message from yyy protocol to scmi protocol.

I considered the alternative way, when we can configure domain with
several mediators, so each Domain can be configured to use, for example,
scmi_smc for power-domains and scpi_smc for clocks and resets. But I
don't see real use-cases for this configuration.

What do you think about that?

Best regards,
Oleksii


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.