问题描述
目前需要适配Atlas 300I Duo和Atlas 300I A2两个NPU卡,没有连接Riser卡,都是直接插在Pcie槽上的
根据官方PCIE配置文档,并没有直连配置的相关教程https://www.openubmc.cn/docs/zh/development/develop_guide/feature_development/pcie_configuration.html
想咨询下应该如何配置?下面是我目前的配置
1.在BCU的Hisport_5添加了两个Connector
"Hisport_5": {
"Chips":[
],
"Connectors": [
"Connector_PCIe_1",
"Connector_PCIe_2"
]
},
2.由于没有Riser卡,所以我跳过了Riser,UBCDD和IEU的配置,直接配置了
BusinessConnector_1和BusinessConnector_2,用来将Serdes和具体的PCIE卡关联
"BusinessConnector_1": {
"Name": "Down_1",
"Direction": "Downstream",
"Slot": 1,
"LinkWidth": "X8",
"MaxLinkRate": "PCIe 4.0",
"ConnectorType": "PCIe CEM",
"UpstreamResources": [
{"Name": "SerDes_1_8","ID": 8,"Offset": 0,"Width": 8}
],
"RefMgmtConnector": "#/Connector_PCIE_1",
"RefPCIeAddrInfo": "#/PcieAddrInfo_1"
},
"BusinessConnector_2": {
"Name": "Down_2",
"Direction": "Downstream",
"Slot": 1,
"LinkWidth": "X8",
"MaxLinkRate": "PCIe 4.0",
"ConnectorType": "PCIe CEM",
"UpstreamResources": [
{"Name": "SerDes_1_7","ID": 7,"Offset": 0,"Width": 4},
{"Name": "SerDes_1_10","ID": 10,"Offset": 0,"Width": 4}
],
"RefMgmtConnector": "#/Connector_PCIE_2",
"RefPCIeAddrInfo": "#/PcieAddrInfo_2"
},
"PcieAddrInfo_1": {
"Location": 1,
"ComponentType": 8,
"ContainerSlot": "${Slot}",
"ContainerUID": "00000001040302074260",
"ContainerUnitType": "IEU",
"GroupPosition": "PcieAddrInfo_1_${GroupPosition}"
},
"PcieAddrInfo_2": {
"Location": 2,
"ComponentType": 8,
"ContainerSlot": "${Slot}",
"ContainerUID": "00000001040302074260",
"ContainerUnitType": "IEU",
"GroupPosition": "PcieAddrInfo_2_${GroupPosition}"
},
"Connector_PCIe_1": {
"Bom": "14140130",
"Id": "19e5d500",
"AuxId": "02000110",
"Slot": 1,
"Position": 2,
"Presence": 1,
"Buses": [
"Hisport_5"
],
"SystemId": 1,
"SilkText": "{Slot}",
"IdentifyMode": 2,
"Container": "Component_RiserCard",
"Type": "PCIe"
},
"Connector_PCIe_2": {
"Bom": "14140130",
"Id": "19e5d802",
"AuxId": "19e54000",
"Slot": 2,
"Position": 3,
"Presence": 1,
"Buses": [
"Hisport_5"
],
"SystemId": 1,
"SilkText": "{Slot}",
"IdentifyMode": 2,
"Container": "Component_RiserCard",
"Type": "PCIe"
},
3.在profile声明这两张卡的csr文件
4.在mdbctl 下使用命令查看,发现两张NPU卡均成功加载
% lsobj Chip
Chip_Dmini_01010102
Chip_Dmini_01010103
Chip_Dmini_Elabel_01010102
Chip_Dmini_Elabel_01010103
有几个问题想请问下
1.直接插在PCIE槽上的的PCIE卡的详细加载流程是什么样的?
2.跳过Riser,UBCDD和IEU的上述配置是否有问题?比如BusinessConnector和PcieAddrInfo是否
有字段错误?
3.目前在开发板上虽然没有插对应的NPU卡,按理来讲配置了应该也会有相关NPU卡出现,只是不能显示信息,但目前web上没有

麻烦大佬们解答下,谢谢
环境信息
OpenUBMC2503







