T2080 LAW Configuration for PCIe

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

T2080 LAW Configuration for PCIe

ソリューションへジャンプ
3,214件の閲覧回数
manjunath_ganga
Contributor I

We have customized T2080 board(Root Complex) and FPGA as End point device.

BAR0 for Control & Status, BAR1 for data both memory mapped. How LAW is related to PCIe Host Controller. My configuration has following field:

corenet-law@0 {
cfg-table = <
            /* TRGT_ID CSD_ID BASE_ADDR(64b) SIZE(64b) */
           /* PEX#4 */
              3 0 0xf 0xd0000000 0 0x00100000
              3 0 0xf 0xd8100000 0 0x00010000
          /* bman */
            0x18 0 0x1 0xb4000000 0 0x02000000
          /* qman */
            0x3C 0 0x1 0xb6000000 0 0x02000000>;
};

pcie3: pcie@1b2270000 {
reg = <0x1 0xb2270000 0 0x1000>;
bus-range = <0x0 0xff>;

ranges = <0x02000000 0 0xd0000000 0xf 0xd0000000 0 0x00100000
0x02000000 0 0xd8100000 0xf 0xd8100000 0 0x00010000>;
interrupt-map-mask = <0xfff800 0 0 7>;
interrupt-map = <
/* IDSEL 0x0 */
0000 0 0 1 &mpic 43 1 0 0
0000 0 0 2 &mpic 0 1 0 0
0000 0 0 3 &mpic 4 1 0 0
0000 0 0 4 &mpic 8 1 0 0>;
};

During read, physical for BAR0 shows 0xd8100000 and physical address for BAR1 show 0x00.

Could you find if there is anything is missing/wrong?

0 件の賞賛
返信
1 解決策
3,209件の閲覧回数
ufedor
NXP Employee
NXP Employee

Please provide additional information:
1) complete DTS sources
2) U-Boot and Linux booting logs as text files
3) log corresponding to the following:
"During read, physical for BAR0 shows 0xd8100000 and physical address for BAR1 show 0x00."

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,826件の閲覧回数
jerry_jones
Contributor I

Thanks for sharing the configuration details. One thing to double-check is the PCIe address translation setup—especially if the BAR1 physical address reads as 0x00, which might indicate an issue in the LAW or range mapping. You might also want to reference external resources like the Crime log Virginia for structured data alignment practices often used in system auditing scenarios. Let me know if you’ve verified the endpoint BAR enable bits and memory space decoding too.

0 件の賞賛
返信
3,210件の閲覧回数
ufedor
NXP Employee
NXP Employee

Please provide additional information:
1) complete DTS sources
2) U-Boot and Linux booting logs as text files
3) log corresponding to the following:
"During read, physical for BAR0 shows 0xd8100000 and physical address for BAR1 show 0x00."

0 件の賞賛
返信