Skip to content

Commit

Permalink
add cxl redfish tree mockup
Browse files Browse the repository at this point in the history
Signed-off-by: MICHELE GAZZETTI <Michele.Gazzetti1@ibm.com>
  • Loading branch information
mgazz committed Oct 16, 2023
1 parent eb67436 commit ef247b8
Show file tree
Hide file tree
Showing 131 changed files with 3,525 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"@odata.type": "#ConnectionMethod.v1_1_0.ConnectionMethod",
"Id": "NVMeoF",
"Name": "ConnectionMethod for Agent CXL",
"ConnectionMethodType": "Redfish",
"ConnectionMethodVariant": "Contoso",
"Links": {
"AggregationSources": []
},
"@odata.id": "/redfish/v1/AggregationService/ConnectionMethods/CXL"
}
12 changes: 12 additions & 0 deletions Resources/CXLAgent/AggregationService/ConnectionMethods/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#ConnectionMethodCollection.ConnectionMethodCollection",
"Name": "ConnectionMethod Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/AggregationService/ConnectionMethods/CXL"
}
],
"@odata.id": "/redfish/v1/ConnectionMethods",
"@Redfish.Copyright": "Copyright 2015-2022 SNIA. All rights reserved."
}
14 changes: 14 additions & 0 deletions Resources/CXLAgent/AggregationService/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@odata.type": "#AggregationService.v1_0_1.AggregationService",
"Id": "AggregationService",
"Name": "Aggregation Service",
"Description": "Open Fabric Manager Aggregation Service",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"ServiceEnabled": true,

"@odata.id": "/redfish/v1/AggregationService",
"@Redfish.Copyright": "Copyright 2023 OpenFabrics Alliance. All rights reserved."
}
33 changes: 33 additions & 0 deletions Resources/CXLAgent/Chassis/CXL-Chassis/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"@odata.type": "#Chassis.v1_20_0.Chassis",
"Id": "CXL-Chassis",
"Name": "CXL System chassis containig CXL cards",
"PowerState": "On",
"ChassisType": "Blade",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"Links": {
"ComputerSystems": [
{
"@odata.id": "/redfish/v1/Systems/CXL-System"
}
],
"Contains": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1"
},
{
"@odata.id": "/redfish/v1/Chassis/CXL2"
},
{
"@odata.id": "/redfish/v1/Chassis/CXL3"
}
]
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL-Chassis",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"@odata.type": "#CXLLogicalDevice.v1_0_0.CXLLogicalDevice",
"Id": "1",
"Name": "CXL Logical Device Type 1",
"Description": "Locally attached CXL Logical Device Type 1",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"Identifiers": [
{
"DurableName": "4C-1D-96-FF-FE-DD-D8-35:1",
"DurableNameFormat": "GCXLID"
}
],
"CXLSemanticsSupported": [
"CXLio",
"CXLcache"
],
"Links": {
"PCIeDevice": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1"
},
"PCIeFunctions": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions/1"
}
],
"Oem": {}
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/CXLLogicalDevices/1",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#CXLLogicalDeviceCollection.CXLLogicalDeviceCollection",
"Name": "CXL Logical Device Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/CXLLogicalDevices/1"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/CXLLogicalDevices",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"@odata.type": "#PCIeFunction.v1_4_0.PCIeFunction",
"Id": "1",
"Name": "CXL Function",
"Description": "PCIe Function with CXL extensions representing FPGA",
"FunctionId": 1,
"FunctionType": "Physical",
"DeviceClass": "Processor",
"DeviceId": "0xABCD",
"VendorId": "0xABCD",
"ClassCode": "0x0B4000",
"RevisionId": "0x00",
"SubsystemId": "0xABCD",
"SubsystemVendorId": "0xABCD",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"FunctionProtocol": "CXL",
"Links": {
"Processors": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/Processors/FPGA"
}
],
"CXLLogicalDevice": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/CXLLogicalDevices/1"
},
"PCIeDevice": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1"
}
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions/1",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#PCIeFunctionCollection.PCIeFunctionCollection",
"Name": "PCIe Function Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions/1"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
40 changes: 40 additions & 0 deletions Resources/CXLAgent/Chassis/CXL1/PCIeDevices/1/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"@odata.type": "#PCIeDevice.v1_10_0.PCIeDevice",
"Id": "1",
"Name": "CXL Device",
"Description": "CXL Physcial Device Type 1",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"PCIeInterface": {
"PCIeType": "Gen5",
"MaxPCIeType": "Gen5",
"LanesInUse": 8,
"MaxLanes": 16
},
"PCIeFunctions": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions"
},
"CXLDevice":{
"CurrentProtocolVersion": "V2_0",
"CapableProtocolVersion": "V2_0",
"DeviceType": "Type1",
"MultiLogicalDevice": false
},
"CXLLogicalDevices": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/CXLLogicalDevices"
},
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1"
}
],
"Oem": {}
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
12 changes: 12 additions & 0 deletions Resources/CXLAgent/Chassis/CXL1/PCIeDevices/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#PCIeDeviceCollection.PCIeDeviceCollection",
"Name": "PCIe Device Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
37 changes: 37 additions & 0 deletions Resources/CXLAgent/Chassis/CXL1/Processors/FPGA/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"@odata.type": "#Processor.v1_15_0.Processor",
"Id": "FPGA",
"Name": "FPGA with cache",
"Description": "FPGA with cache",
"ProcessorType": "FPGA",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"ProcessorMemory": [
{
"IntegratedMemory": true,
"MemoryType": "Cache",
"CapacityMiB": 64
}
],
"MemorySummary": {
"TotalMemorySizeMiB": 0,
"TotalCacheSizeMiB": 64
},
"Links": {
"PCIeFunctions": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices/1/PCIeFunctions/1"
}
],
"ConnectedProcessors": [
{
"@odata.id": "/redfish/v1/Systems/CXL-System/Processors/CPU"
}
]
},
"@odata.id": "/redfish/v1/Chassis/CXL1/Processors/FPGA",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
12 changes: 12 additions & 0 deletions Resources/CXLAgent/Chassis/CXL1/Processors/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#ProcessorCollection.ProcessorCollection",
"Name": "Processor Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL1/Processors/FPGA"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL1/Processors",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
25 changes: 25 additions & 0 deletions Resources/CXLAgent/Chassis/CXL1/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"@odata.type": "#Chassis.v1_20_0.Chassis",
"Id": "CXL1",
"Name": "CXL Device Type 1 module",
"ChassisType": "Module",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"PCIeDevices": {
"@odata.id": "/redfish/v1/Chassis/CXL1/PCIeDevices"
},
"Processors": {
"@odata.id": "/redfish/v1/Chassis/CXL1/Processors"
},
"Links": {
"ContainedBy": {
"@odata.id": "/redfish/v1/Chassis/CXL-Chassis"
}
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL1",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
27 changes: 27 additions & 0 deletions Resources/CXLAgent/Chassis/CXL2/Memory/HBM/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"@odata.type": "#Memory.v1_15_0.Memory",
"Id": "HBM",
"MemoryType": "DRAM",
"MemoryDeviceType": "HBM2",
"MemoryMedia": [
"DRAM"
],
"Name": "HBM memory",
"CapacityMiB": 16384,
"OperatingSpeedMhz": 1333,
"Status": {
"Health": "OK",
"State": "Enabled",
"HealthRollup": "OK"
},
"Links": {
"Processors": [
{
"@odata.id": "/redfish/v1/Chassis/CXL2/Processors/GPU"
}
]
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL2/Memory/HBM",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
13 changes: 13 additions & 0 deletions Resources/CXLAgent/Chassis/CXL2/Memory/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@odata.type": "#MemoryCollection.MemoryCollection",
"Name": "Memory Collection",
"Description": "Memory Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL2/Memory/HBM"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL2/Memory",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"@odata.type": "#MemoryChunks.v1_5_0.MemoryChunks",
"Id": "1",
"Name": "Memory Chunk 1",
"Description": "Memory chunk accessible through CXL",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"MemoryChunkSizeMiB": 4096,
"AddressRangeType": "Volatile",
"AddressRangeOffsetMiB": 1024,
"MediaLocation": "Local",
"OperationalState": "Online",
"Links": {
"CXLLogicalDevices": [
{
"@odata.id": "/redfish/v1/Chassis/CXL2/PCIeDevices/1/CXLLogicalDevices/1"
}
]
},
"Oem": {},
"@odata.id": "/redfish/v1/Chassis/CXL2/MemoryDomains/1/MemoryChunks/1",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@odata.type": "#MemoryChunksCollection.MemoryChunksCollection",
"Name": "Memory Chunks Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/CXL2/MemoryDomains/1/MemoryChunks/1"
}
],
"@odata.id": "/redfish/v1/Chassis/CXL2/MemoryDomains/1/MemoryChunks",
"@Redfish.Copyright": "Copyright 2014-2021 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}
Loading

0 comments on commit ef247b8

Please sign in to comment.