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

Re: [RFC PATCH v4 6/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Thu, 19 Jun 2025 16:15:37 +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=arcselector10001; 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=lflLdOipEqmnCKZZXZjjMTogz5yfqVOI6aOdNSsd2Ss=; b=keByeEA1pb1zy/zMP2pyfo+Kgw8Zkklvhxqcakr0MCAqOzIo3+xCeA7Z4mPhcW5rGEV799tmdTaeGBY05+a9Edt3xo7GQEbqqnRpxZ1BYdxx3DovQTU80ihm57+T/U6lc3lLprt0DXLUj0Ac47kembLmTtmFjH+mBQcFiWyfESmDMCGC4QxK+leJQL67RCTDBm6XTNdi+7De+CUzzIBbDCsb3Pe94XbUn2uuEuCF9wfmtfrgPlw7nFebA6PTw1jOBoTaDc1Mj3vjM6TpdbsLaYTeprOl8Z6ZOA/JnVGhZTKVZ/cAnldGWInXM5cb2NbfeLw69aR0Ksc5iLVha5eEMg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bH0UugQPi0fTFzbb27m/DLPrDlGmId62FGqmtaQVV2rIGA5dLFA21QCQ7XetBhcpEP8IZCX15kO35+7ocn5bt8Bs/x4YZX9rabARBXT5SwRwmB/u43+hhg/l7OGyjDKJ2TDlA2Vf/TSP0nHVLt9k0VOrVb69m6M5D2KRHy64LLm5Y0JtWSV0U0ctXuadOS+uZOgn5lk4lLdYVy/LVx4gfGmyVe58PRu4hlKP/aR/6gFQzF3m6ERUSimLdnJ7CqS5x2+51CS0hsgoY1RE+O5km7x1YGl/0EpJH5+whMaT5JWm9Hi/x/2k03qMqa0aRWXORfnKV8nPxj4yTTtpo9O3Hw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Delivery-date: Thu, 19 Jun 2025 16:15:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbyNXPHUV4T01ZEEC9Uxm0LaLKHbQIs5qAgAIlg4A=
  • Thread-topic: [RFC PATCH v4 6/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver

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.



 


Rackspace

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