From 814bf20a383c891931b9f68b2d49c6b52318603d Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 4 Jul 2023 16:30:10 +0300 Subject: Add MaxLanes and MaxPCIeType properties to the PCIeInterface According to the Redfish Data Model specification PCIeInterface (v1.3+) of the PCIeDevice model contains the following properties: MaxLanes (v1.3+) The number of PCIe lanes supported by this device. - This property shall contain the maximum number of PCIe lanes supported by this device. MaxPCIeType (v1.3+) The highest version of the PCIe specification supported by this device. - This property shall contain the maximum PCIe specification that this device supports. Since PCIeDevice interface from the phosphor-dbus-interfaces has these values in the 'MaxLanes' and 'GenerationSupported' properties, populate the fields to Redfish. Tested: Redfish validator passed Before: redfish/v1/Systems/system/PCIeDevices/Bus_c3_Device_00 { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/Bus_c3_Device_00", "@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice", ... "PCIeInterface": { "LanesInUse": 4, "PCIeType": "Gen3" }, ... } After: redfish/v1/Systems/system/PCIeDevices/Bus_c3_Device_00 { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/Bus_c3_Device_00", "@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice", ... "PCIeInterface": { "LanesInUse": 4, "MaxLanes": 4, "MaxPCIeType": "Gen3", "PCIeType": "Gen3" }, ... } Change-Id: Iec786e376cea8fd2aa516b5b2a3da4286e59627a Signed-off-by: Konstantin Aladyshev --- Redfish.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index a7b3445d82..f2fb141916 100644 --- a/Redfish.md +++ b/Redfish.md @@ -861,6 +861,8 @@ other. - PCIeInterface - DeviceType - LanesInUse + - MaxLanes + - MaxPCIeType - PCIeType - SerialNumber - Slot -- cgit v1.2.3