linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Question on DOE requirements for CXL/CDAT and CMA/SPDM
       [not found] <SJ0PR18MB496423534AC55973B92E3913B3AB9@SJ0PR18MB4964.namprd18.prod.outlook.com>
@ 2023-02-23 14:00 ` Jonathan Cameron
  2023-02-24  6:56 ` Lukas Wunner
  1 sibling, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2023-02-23 14:00 UTC (permalink / raw)
  To: Brian van der Beek
  Cc: linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org,
	Christophe Therene, Lukas@wunner.de

On Thu, 23 Feb 2023 13:06:47 +0000
Brian van der Beek <bbeek@marvell.com> wrote:

> Hi all,
> 

Hi Bryan,

> I posted the following question to the PCI-SIG protocol group:
> 
> The Base Specification Revision 6.0.1 paragraph 6.31.3 'CMA/SPDM Rules' includes the following statement:
> 
> The instance of DOE used for CMA/SPDM must support:
> 
> ·         the DOE Discovery data object protocol,
> 
> ·         if IDE is supported, the IDE_KM data object protocol using Secured CMA/SPDM (See § Section 6.31.4 ),
> 
> ·         and no other data object protocol(s).
> 
> Whereas the Compute Express Link (CXL) Revision 3.0 paragraph 8.1.11 'Table Access DOE' states:
> 
> A device may interrupt the host when CDAT content changes using the MSI associated with this DOE Capability instance. A device may share the instance of this DOE mailbox with other Data Objects.
> 
> For a CXL device that support both CMA/SPDM and CXL Table Access DOE (CDAT) data objects, is it mandatory to have a dedicate DOE instance for the CMA/SPMA protocol data objects? Or is it permitted for the CMA/SPDM and CXL protocols to share a single DOE instance?

Whilst my reading of what is published would be that the CXL spec is saying about restrictions from
the CDAT side of things (so if other protocols don't specify restrictions, they may share a DOE instance),
ultimately to get an answer on that take it to the relevant folk in the CXL consortium.

> 
> PCI-SIG replied that the requirement of a dedicated DOE instance for CMA/SPDM was an intentional choice based on the idea that the software attached to the DOE instances would be different.  However, that thought model for how DOE would be used by software has evolved, and it may not be necessary for hardware to implement separate DOE instances.

It's certainly possible, though from hardware side I'd be worried that some usecases might require that separation
and you'd be building hardware where it wasn't possible to support it.

> 
> I am reaching out to you, as I am hoping you could provide some insight on the Linux CMA/SPDM implementation and whether it allows for a DOE instance to be shared with CXL/CDAT data objects.

One for Lukas, though I suspect Linux will at most warn on this happening unless there is an implementation subtlety or
security risk that means we should error out if this happens.

Jonathan

> 
> Best Regards,
> 
> Brian van der Beek
> Senior Principal Engineer
> [cid:image001.jpg@01D94783.E04A16A0]<http://www.marvell.com/>
> Marvell Netherlands B.V., Laan van Diepenvoorde 4, 5582 LA, Waalre | The Netherlands
> Mobile: +31-6-4775191
> 
> www.marvell.com<http://www.marvell.com/>
> 
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on DOE requirements for CXL/CDAT and CMA/SPDM
       [not found] <SJ0PR18MB496423534AC55973B92E3913B3AB9@SJ0PR18MB4964.namprd18.prod.outlook.com>
  2023-02-23 14:00 ` Question on DOE requirements for CXL/CDAT and CMA/SPDM Jonathan Cameron
@ 2023-02-24  6:56 ` Lukas Wunner
  1 sibling, 0 replies; 2+ messages in thread
From: Lukas Wunner @ 2023-02-24  6:56 UTC (permalink / raw)
  To: Brian van der Beek
  Cc: linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org,
	Christophe Therene, Jonathan Cameron

On Thu, Feb 23, 2023 at 01:06:47PM +0000, Brian van der Beek wrote:
> For a CXL device that support both CMA/SPDM and CXL Table Access DOE
> (CDAT) data objects, is it mandatory to have a dedicated DOE instance
> for the CMA/SPMA protocol data objects?

Yes, that follows from the requirements you quoted from the PCIe spec.


> Or is it permitted for the CMA/SPDM and CXL protocols to share a
> single DOE instance?

You'd violate the PCIe spec and depend on software to handle such
non-standard behavior gracefully.


> I am reaching out to you, as I am hoping you could provide some
> insight on the Linux CMA/SPDM implementation and whether it allows
> for a DOE instance to be shared with CXL/CDAT data objects.

The code as it currently is will allow that.


> PCI-SIG replied that the requirement of a dedicated DOE instance for
> CMA/SPDM was an intentional choice based on the idea that the software
> attached to the DOE instances would be different.

The PCISIG has published the DOE 1.1 ECN in the meantime and it
allows for concurrent use of a mailbox by different software
entities (kernel, BIOS, ...) through the use of a unique
Connection ID.  You could ask the PCISIG to revisit the spec's
protocol restriction for CMA/SPDM in light of DOE 1.1.
There's an ECR for CMA/SPDM currently under development.

Thanks,

Lukas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-24  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <SJ0PR18MB496423534AC55973B92E3913B3AB9@SJ0PR18MB4964.namprd18.prod.outlook.com>
2023-02-23 14:00 ` Question on DOE requirements for CXL/CDAT and CMA/SPDM Jonathan Cameron
2023-02-24  6:56 ` Lukas Wunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).