diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2023-07-04 16:30:10 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2023-07-11 18:31:59 +0300 |
commit | 814bf20a383c891931b9f68b2d49c6b52318603d (patch) | |
tree | 10e9e93343ee5cf7a8a31f44e2af5f5dee61b081 /Redfish.md | |
parent | 82f80326afb1e1cfd6b682d4fa2f75319c83004f (diff) | |
download | bmcweb-814bf20a383c891931b9f68b2d49c6b52318603d.tar.xz |
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 <aladyshev22@gmail.com>
Diffstat (limited to 'Redfish.md')
-rw-r--r-- | Redfish.md | 2 |
1 files changed, 2 insertions, 0 deletions
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 |