T1042 freeze after 32bit PCIE write

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

T1042 freeze after 32bit PCIE write

2,081 Views
wengangzhu
Contributor II

Broadcom switch is connected to t1042 by PCIe on our card. Broadcom switch is working with PCIe EP mode. Broadcom switch can be scanned and bootloader image download from cpu to switch successfully. But after download, t1042 freeze after 32bit pcie write suddenly. I cannot input anything from t1042 console and nothing printed on console. It needs power cycle to recover the system.

uboot and linux kernel code are built from yocto. linux kernel version is 4.14.47.

Is there any way to debug such issue? Can we trigger a PCIe exception or crash? thanks.

 

0 Kudos
Reply
10 Replies

2,066 Views
wengangzhu
Contributor II

I cannot provide RESET_REQ_B info because of remoting debugging. t1042 pcie information was attached. Please guide me what's the LAWs and ATMUs register address needed to dump if dump info is wrong. thanks.

0 Kudos
Reply

2,060 Views
ufedor
NXP Employee
NXP Employee

LAWs:

QorIQ T1040 Reference Manual, 2.4 Local Access Window (LAW) Memory Map

 

Outbound ATMUs:

QorIQ T1040 Reference Manual, 28.6 PCI Express memory-mapped registers, offset range 24_0C00 - 24_0C90

0 Kudos
Reply

2,056 Views
wengangzhu
Contributor II

please see attachment t1042_pcie_info.log. it contains LAWs and ATMUs.

0 Kudos
Reply

2,045 Views
ufedor
NXP Employee
NXP Employee

Please provide log of the problem command.

0 Kudos
Reply

2,038 Views
wengangzhu
Contributor II

No command. cpu freeze after 32bit pcie write.

Before cpu freeze, bootloader firmware(size=69K) is downloaded from cpu to broadcom switch by PCIe successfully. then start to download ddr phy image(size=160K). ddr phy image is divided 8 segments. each segment size is 20K. the first segment is downloaded and checked successfully. But cpu freeze after download second segment, then issue 32bit pcie write register to report second segment writing complete. 

0 Kudos
Reply

2,031 Views
ufedor
NXP Employee
NXP Employee

Please use a debugger to determine which exactly instruction causes the processor's hang.

0 Kudos
Reply

2,026 Views
wengangzhu
Contributor II

Do you mean to use jtag? Is any document to describe how to debug? thanks.

0 Kudos
Reply

2,001 Views
ufedor
NXP Employee
NXP Employee

If you have a JTAG debugger, then debugging technique is described in its documentation - for example CodeWarrior Development Studio for Power Architecture Processors Targeting Manual.

Ensure that the procedure used for uploading data to the PCIe switch is correct.

0 Kudos
Reply

1,989 Views
wengangzhu
Contributor II

thank you.

0 Kudos
Reply

2,072 Views
ufedor
NXP Employee
NXP Employee

1) How RESET_REQ_B behaves when the freeze happens?

2) You wrote:

> t1042 freeze after 32bit pcie write

Do you mean that T1042 as RC performs write operation to a PCIe EP using an Outbound ATMU window?

 

Please provide as textual attachments raw memory dumps (captured by U-Boot "md" command) for the T1042:

a) all LAWs

b) all PCIe Outbound ATMUs

 

 

0 Kudos
Reply