Firefly开源社区
标题:
pcie BAR空间分配失败,
[打印本页]
作者:
duhualieqt
时间:
2024-7-6 20:26
标题:
pcie BAR空间分配失败,
本帖最后由 duhualieqt 于 2024-7-6 20:26 编辑
pcie3x2: pcie@fe160000 内部总线节点上挂载一个万兆网卡,
pcie3x2: pcie@fe160000 {
compatible = "rockchip,rk3588-pcie", "snps,dw-pcie";
#address-cells = <3>;
#size-cells = <2>;
bus-range = <0x10 0x1f>;
clocks = <&cru ACLK_PCIE_2L_MSTR>, <&cru ACLK_PCIE_2L_SLV>,
<&cru ACLK_PCIE_2L_DBI>, <&cru PCLK_PCIE_2L>,
<&cru CLK_PCIE_AUX1>, <&cru CLK_PCIE2L_PIPE>;
clock-names = "aclk_mst", "aclk_slv",
"aclk_dbi", "pclk",
"aux", "pipe";
device_type = "pci";
interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "sys", "pmc", "msg", "legacy", "err";
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &pcie3x2_intc 0>,
<0 0 0 2 &pcie3x2_intc 1>,
<0 0 0 3 &pcie3x2_intc 2>,
<0 0 0 4 &pcie3x2_intc 3>;
linux,pci-domain = <1>;
num-ib-windows = <16>;
num-ob-windows = <16>;
num-viewport = <8>;
max-link-speed = <3>;
msi-map = <0x1000 &its1 0x1000 0x1000>;
num-lanes = <2>;
phys = <&pcie30phy>;
phy-names = "pcie-phy";
power-domains = <&power RK3588_PD_PCIE>;
ranges = <0x00000800 0x0 0xf1000000 0x0 0xf1000000 0x0 0x100000
0x81000000 0x0 0xf1100000 0x0 0xf1100000 0x0 0x100000
0x82000000 0x0 0xf1200000 0x0 0xf1200000 0x0 0xe00000
0xc3000000 0x9 0x40000000 0x9 0x40000000 0x0 0x40000000>;
reg = <0x0 0xfe160000 0x0 0x10000>,
<0xa 0x40400000 0x0 0x400000>;
reg-names = "pcie-apb", "pcie-dbi";
resets = <&cru SRST_PCIE1_POWER_UP>, <&cru SRST_P_PCIE1>;
reset-names = "pcie", "periph";
rockchip,pipe-grf = <&php_grf>;
status = "disabled";
pcie3x2_intc: legacy-interrupt-controller {
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 255 IRQ_TYPE_EDGE_RISING>;
};
};
烧写pcie-dw-rockchip.ko到3588核心板,底板子是公司做地 , 动态加载该ko,
fe160000地址;下的信息有报错如下:
[ 44.189985] rk-pcie fe160000.pcie: invalid prsnt-gpios property in node
[ 44.208899] rk-pcie fe160000.pcie: missing legacy IRQ resource
[ 44.208910] rk-pcie fe160000.pcie: IRQ msi not found
[ 44.208914] rk-pcie fe160000.pcie: use outband MSI support
[ 44.208918] rk-pcie fe160000.pcie: Missing *config* reg space
[ 44.208925] rk-pcie fe160000.pcie: host bridge /pcie@fe160000 ranges:
[ 44.208937] rk-pcie fe160000.pcie: err 0x00f1000000..0x00f10fffff -> 0x00f1000000
[ 44.208944] rk-pcie fe160000.pcie: IO 0x00f1100000..0x00f11fffff -> 0x00f1100000
[ 44.208952] rk-pcie fe160000.pcie: MEM 0x00f1200000..0x00f1ffffff -> 0x00f1200000
[ 44.208958] rk-pcie fe160000.pcie: MEM 0x0940000000..0x097fffffff -> 0x0940000000
[ 44.208984] rk-pcie fe160000.pcie: Missing *config* reg space
[ 44.209007] rk-pcie fe160000.pcie: invalid resource
[ 44.469397] rk-pcie fe160000.pcie: PCIe Link up, LTSSM is 0x130011
[ 44.469474] rk-pcie fe160000.pcie: PCI host bridge to bus 0001:10
[ 44.469480] pci_bus 0001:10: root bus resource [bus 10-1f]
[ 44.469486] pci_bus 0001:10: root bus resource [??? 0xf1000000-0xf10fffff flags 0x0]
[ 44.469491] pci_bus 0001:10: root bus resource [io 0x100000-0x1fffff] (bus address [0xf1100000-0xf11fffff])
[ 44.469495] pci_bus 0001:10: root bus resource [mem 0xf1200000-0xf1ffffff]
[ 44.469499] pci_bus 0001:10: root bus resource [mem 0x940000000-0x97fffffff pref]
[ 44.469519] pci 0001:10:00.0: [1d87:3588] type 01 class 0x060400
[ 44.469532] pci 0001:10:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 44.469566] pci 0001:10:00.0: supports D1 D2
[ 44.469570] pci 0001:10:00.0: PME# supported from D0 D1 D3hot
[ 44.472741] pci 0001:10:00.0: Primary bus is hard wired to 0
[ 44.472747] pci 0001:10:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[ 44.473055] pci 0001:11:00.0: [1619:9024] type 00 class 0x028000
[ 44.473117] pci 0001:11:00.0: reg 0x10: [mem 0x00000000-0x00ffffff 64bit]
[ 44.473155] pci 0001:11:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit]
[ 44.473192] pci 0001:11:00.0: reg 0x20: [mem 0x00000000-0x00ffffff 64bit]
[ 44.485731] pci_bus 0001:11: busn_res: [bus 11-1f] end is updated to 11
[ 44.485750] pci 0001:10:00.0: BAR 8: no space for [mem size 0x02800000]
[ 44.485755] pci 0001:10:00.0: BAR 8: failed to assign [mem size 0x02800000]
[ 44.485760] pci 0001:10:00.0: BAR 6: assigned [mem 0xf1200000-0xf120ffff pref]
[ 44.485767] pci 0001:11:00.0: BAR 0: no space for [mem size 0x01000000 64bit]
[ 44.485771] pci 0001:11:00.0: BAR 0: failed to assign [mem size 0x01000000 64bit]
[ 44.485776] pci 0001:11:00.0: BAR 4: no space for [mem size 0x01000000 64bit]
[ 44.485780] pci 0001:11:00.0: BAR 4: failed to assign [mem size 0x01000000 64bit]
[ 44.485784] pci 0001:11:00.0: BAR 2: no space for [mem size 0x00100000 64bit]
[ 44.485788] pci 0001:11:00.0: BAR 2: failed to assign [mem size 0x00100000 64bit]
[ 44.485793] pci 0001:10:00.0: PCI bridge to [bus 11]
[ 44.487097] pcieport 0001:10:00.0: PME: Signaling with IRQ 127
打印的日志log有pcie_log1.txt,pcie_log2.txt,
麻烦帮忙看下,
谢谢!
tchip_askquestions
调试异常问题汇总.zip
2024-7-6 20:20 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
2.17 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
作者:
duhualieqt
时间:
2024-7-6 20:27
打印的日志log有pcie_log1.txt,pcie_log2.txt,在调试异常问题汇总.zip里面.
请大神们帮忙分析下,
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1