OSDN Git Service

mem/cxl-type3: Add sn option to provide serial number for PCI ecap
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 23 Sep 2022 16:18:35 +0000 (17:18 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Oct 2022 20:38:45 +0000 (16:38 -0400)
commit9c769e04465118601dea96b02c27887bd46cce25
tree89d6337823316e3ff130de8329f5ba897da53ae6
parent0a17270761e7d90a67edadb19c7f6871387931be
mem/cxl-type3: Add sn option to provide serial number for PCI ecap

The Device Serial Number Extended Capability PCI r6.0 sec 7.9.3
provides a standard way to provide a device serial number as
an IEEE defined 64-bit extended unique identifier EUI-64.

CXL 2.0 section 8.1.12.2 Memory Device PCIe Capabilities and
Extended Capabilities requires this to be used to uniquely
identify CXL memory devices.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20220923161835.9805-1-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Ben Widawsky <bwidawsk@kernel.org>
hw/mem/cxl_type3.c
include/hw/cxl/cxl_device.h