All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii Moisieiev <Oleksii_Moisieiev@epam.com>
To: Julien Grall <julien@xen.org>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Juergen Gross" <jgross@suse.com>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Grygorii Strashko" <grygorii_strashko@epam.com>
Subject: Re: [RFC PATCH v4 6/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver
Date: Thu, 19 Jun 2025 16:15:37 +0000	[thread overview]
Message-ID: <2a98353b-a28b-4935-af26-80dc11d3862d@epam.com> (raw)
In-Reply-To: <13d95459-ea77-46ea-84e4-cccece4cd496@xen.org>


On 18/06/2025 10:28, Julien Grall wrote:
> Hi Oleksii,
>
> On 19/05/2025 16:50, Oleksii Moisieiev wrote:
>> This patch introduces SCI driver to support for ARM EL3 Trusted 
>> Firmware-A
>> (TF-A) which provides SCMI interface with multi-agnet support, as shown
>
> s/multi-agnet/multi-agent/
>
will fix.
>> below.
>>
>>    +-----------------------------------------+
>>    |                                         |
>>    | EL3 TF-A SCMI                           |
>>    +-------+--+-------+--+-------+--+-------++
>>    |shmem0 |  |shmem1 |  |shmem2 |  |shmemX |
>>    +-----+-+  +---+---+  +--+----+  +---+---+
>> smc-id0 |        |         |           |
>> agent0  |        |         |           |
>>    +-----v--------+---------+-----------+----+
>>    |              |         |           |    |
>>    |              |         |           |    |
>>    +--------------+---------+-----------+----+
>>           smc-id1 |  smc-id2|    smc-idX|
>>           agent1  |  agent2 |    agentX |
>>                   |         |           |
>>              +----v---+  +--v-----+  +--v-----+
>>              |        |  |        |  |        |
>>              | Dom0   |  | Dom1   |  | DomX   |
>>              |        |  |        |  |        |
>>              |        |  |        |  |        |
>>              +--------+  +--------+  +--------+
>>
>> The EL3 SCMI multi-agent firmware expected to provide SCMI SMC/HVC 
>> shared
>> memory transport for every Agent in the system.
>>
>> The SCMI Agent transport channel defined by pair:
>>   - smc-id: SMC/HVC id used for Doorbell
>>   - shmem: shared memory for messages transfer, Xen page aligned,
>>   p2m_mmio_direct_nc.
>
> It is not clear why we nention Xen page aligned and 
> p2m_mmio_direct_nc. Is this multi-agent protocol tied to Xen?
>
Xen allows mapping only page aligned chunks between domains. Current 
implementation supports only page-aligned chunks.

This means that we support only one channel per page, where the shared 
memory starts at the beginning of the page.


> That said... p2m_mmio_direct_nc is a type used in the stage 2 
> page-tables to indicate how we restrict access from the domain.
>
> The resulting memory attribute will be a combination of stage-1 + 
> stage-2. In the future, we may decide to use FWB which will allow Xen 
> to force a specific memory attribute.
>
> This is also purely internal decision. In the documentation, you 
> should spell out the memory attribute that should be used. From the 
> discussion on this patch, it is still unclear whether the region 
> should be mapped as Device nGnRE or normal memory non-cacheabl.
>
> Cheers,
>
I will reword this to explicitly mention the correct memory attribute.

Documentation will be updated.



  reply	other threads:[~2025-06-19 16:15 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-19 15:50 [RFC PATCH v4 0/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent support Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 2/8] xen/arm: scmi-smc: update to be used under sci subsystem Oleksii Moisieiev
2025-05-19 23:29   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 1/8] xen/arm: add generic SCI subsystem Oleksii Moisieiev
2025-05-19 23:45   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 3/8] xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent Oleksii Moisieiev
2025-05-20  0:18   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 5/8] xen/domctl: extend XEN_DOMCTL_assign_device to handle not only iommu Oleksii Moisieiev
2025-05-19 18:54   ` Jan Beulich
2025-05-22  0:25   ` Stefano Stabellini
2025-05-22  6:18     ` Jan Beulich
2025-06-12 11:42     ` Oleksii Moisieiev
2025-06-12 13:10       ` Grygorii Strashko
2025-06-18  0:04       ` Stefano Stabellini
2025-06-19 16:15         ` Oleksii Moisieiev
2025-06-22 21:30           ` Stefano Stabellini
2025-06-24  8:42             ` Oleksii Moisieiev
2025-06-24  8:47               ` Jan Beulich
2025-06-24  8:48                 ` Oleksii Moisieiev
2025-06-23  7:15           ` Jan Beulich
2025-06-23  7:28             ` Oleksii Moisieiev
2025-06-25 19:56             ` Oleksii Moisieiev
2025-06-26  6:10               ` Jan Beulich
2025-06-26 13:07                 ` Oleksii Moisieiev
2025-06-26 14:41                   ` Jan Beulich
2025-06-26 15:01                     ` Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 7/8] docs: arm: add SCI SCMI SMC multi-agent driver docs Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 4/8] docs: arm: add docs for SCMI over SMC calls forwarding driver Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 6/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver Oleksii Moisieiev
2025-05-23 20:06   ` Stefano Stabellini
2025-06-02  7:17     ` Bertrand Marquis
2025-06-12 12:03       ` Oleksii Moisieiev
2025-06-12 12:10       ` Grygorii Strashko
2025-06-17 23:38         ` Stefano Stabellini
2025-06-18  7:22           ` Julien Grall
2025-06-19 16:15             ` Oleksii Moisieiev
2025-06-22 21:50               ` Stefano Stabellini
2025-06-19 16:15           ` Oleksii Moisieiev
2025-06-05 22:44     ` Julien Grall
2025-06-12 12:03     ` Oleksii Moisieiev
2025-06-17 23:22       ` Stefano Stabellini
2025-06-17 23:56         ` Stefano Stabellini
2025-06-19 16:15         ` Oleksii Moisieiev
2025-06-22 22:15           ` Stefano Stabellini
2025-06-23  8:06             ` Julien Grall
2025-06-23 19:27               ` Stefano Stabellini
2025-06-23 20:38                 ` Julien Grall
2025-06-23 20:42                   ` Stefano Stabellini
2025-06-23 21:58                     ` Julien Grall
2025-06-25 19:47             ` Oleksii Moisieiev
2025-06-18  7:28   ` Julien Grall
2025-06-19 16:15     ` Oleksii Moisieiev [this message]
2025-05-19 15:50 ` [RFC PATCH v4 8/8] docs: arm: proposal to add separate SCMI node for Xen agent Oleksii Moisieiev
2025-05-23 20:19   ` Stefano Stabellini
2025-06-12 12:03     ` Oleksii Moisieiev
2025-06-18  0:35       ` Stefano Stabellini
2025-06-19 16:15         ` [RFC PATCH v4 8/8] docs: armproposa: l " Oleksii Moisieiev
2025-06-22 21:57           ` Stefano Stabellini
2025-06-23  8:02             ` Julien Grall
2025-06-25 19:47               ` Oleksii Moisieiev
2025-06-25 20:32                 ` Julien Grall
2025-06-29 15:41                   ` Oleksii Moisieiev
2025-06-29 18:34                     ` Julien Grall
2025-06-30 11:57                       ` Oleksii Moisieiev
2025-06-30 12:13                         ` Julien Grall
2025-06-30 22:33                           ` Stefano Stabellini
2025-06-05 22:40 ` [RFC PATCH v4 0/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent support Julien Grall

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=2a98353b-a28b-4935-af26-80dc11d3862d@epam.com \
    --to=oleksii_moisieiev@epam.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=grygorii_strashko@epam.com \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --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.