请教一下各位大佬们,pcieaddrinfo在mdb_interface定义中是没有DevBus,DevDevice,DevFunction这三个属性的。devbdf是bios返回给bmc的,并且赋值给pcieaddrinfo,再同步给到pciedevice。
疑问:
0.在代码中是可以看到pcieaddrinfo对象被赋值了DevBus,DevDevice,DevFunction属性,但是mds中却没有声明?
1.为什么使用mdbctl lsprop PcieAddrInfo_0_0101010101看不到DevBus,DevDevice,DevFunction信息。
2.是否可以在同级别(同一个sr文件)下,将该pcieaddrinfo的devbus,devdevice,devfun信息通过sr配置同步给另外一个pciedevice?
类似于以下的配法,是否可行:
{
"FormatVersion": "3.00",
"DataVersion": "3.00",
"Unit": {
"Type": "PCIeCard",
"Name": "PCIeCard_1"
},
"ManagementTopology": {
"Anchor": {
"Buses": [
"Hisport_5"
]
},
"Hisport_5": {
"Chips": []
}
},
"Objects": {
"Component_PCIeCard": {
"FruId": 255,
"Instance": "<=/PCIeDevice_1.SlotID",
"Type": 8,
"BoardId": 65535,
"Name": "<=/PCIeDevice_1.DeviceName",
"Location": "<=/PCIeDevice_1.Position",
"Manufacturer": "N/A",
"PartNumber": "",
"UniqueId": "",
"Presence": 1,
"Health": 0,
"GroupId": 1,
"PowerState": 1,
"ReplaceFlag": 0,
"NodeId": "<=/PCIeDevice_1.SlotID"
},
"PCIeDevice_1": {
"DeviceName": "PCIe Card $",
"FunctionClass": 9,
"Position": "",
"DiagnosticFault": 0,
"PredictiveFault": 0,
"BandwidthReduction": 0,
"LinkSpeedReduced": 0,
"CorrectableError": 0,
"UncorrectableError": 0,
"FatalError": 0,
"Container": "${Container}",
"GroupPosition": "PCIeDevice_${GroupPosition}",
"DeviceType": 8
},
"Connector_PCIE_1": {
"Bom": "14140130",
"Slot": 1,
"Position": 1,
"Presence": 1,
"Id": "",
"AuxId": "",
"Buses": [
"I2cMux_9548Chan54"
],
"SystemId": "${SystemId}",
"ManagerId": "${ManagerId}",
"ChassisId": "${ChassisId}",
"SilkText": "PCIeSlot${Slot}",
"IdentifyMode": 2,
"Container": "Component_Switch",
"Type": "PCIe"
},
"PcieAddrInfo_1": {
"Location": "PCIeSlot${Slot}",
"ComponentType": 8,
"ContainerSlot": "${Slot}",
"ContainerUID": "37387switch",
"ContainerUnitType": "IEU",
"GroupPosition": "PcieAddrInfo_1_${GroupPosition}",
"HwPresence": "<=/Scanner_Slot0Presence.Value|>expr($1 == 1? 0 : 1)",
"DevBus": "<=/PCIeDevice_1.DevBus",
"DevDevice": "<=/PCIeDevice_1.DevDevice",
"DevFunction": "<=/PCIeDevice_1.DevFunction"
}
}
}

