This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的 TI 团队:
当触发中断 LINK_ST态 时、我们的定制器´s tda4电路板 PCIe 有时会断开连接
<74.667038>2021-03-23 07:49:32 [9.983846]i[c0:CP:219]j721e-PCIe 292000.PCIe:链路断开!
PCIe2_RC:PCIe@2920000{
兼容="ti、j721e-pcie-host";
REG =<0x00 0x02920000 0x00 0x1000>、
0x00 0x02927000 0x00 0x400>、
0x00 0x0e000000 0x00 0x00800000>、
0x44 0x00000000 0x00 0x00001000>;
reg-names ="intd_cfg"、"user_cfg"、"reg"、"cfg";
中断名称="link_state";
中断= ;
PCIe 链路断开后、系统 关闭会打印中止日志、我们发现因读取寄存 器 u32 CSTs = readl (dev->bar + NVMe_REG_CSTs)而导致的中止;
请帮您解决问题,谢谢
错误:从 S-EL1在0x8000000上接收到未处理的外部中止
错误:异常原因=0综合征=bbf000000
EL1未处理的异常
X0 = 0x000000000018
x1 = 0xfffc0820330000
X2 = 0x0000000000000000
X3 = 0x0000000000000000
x4 = 0x0000000000000000
X5 = 0x0000000000000000
X6 = 0xfffe00117e5ad8
X7 = 0x00000000000000002ffd
X8 = 0x00000000ffffefff
X9 = 0xfffe00100a8630
X10 = 0x000000000039
X11 = 0x2ce33e6c02ce33e7
x12 = 0xfffe0011d4f7ef
X13 = 0x0000000000000006
X14 = 0xfffe0091d4f7e7
X15 = 0xFFFFFFFFFF
x16 = 0x00a3d70a3d70a3d6
X17 = 0x0000000000000000
X18 = 0x000000000030
X19 = 0xfffc082298e000
X20 = 0xfffc082298e2d0
X21 = 0xfffc08248650a0
x22 = 0xfffc082298e310
X23 = 0x0000000000000001
X24 = 0x00000000000000000000
X25 = 0xffffff0011105af0
X26 = 0xfffe0011105b00
X27 = 0xfffc0824865120
X28 = 0xfffc0820330000
X29 = 0xfffe0011d4fb70
X30 = 0xfffe001091b3bc
SCR_EL3 = 0x000000000000073d
sctlr_EL3 = 0x000030cd183f
CPTR_EL3 = 0x0000000000000000
TCR_EL3 = 0x000080803520
DAIF = 0x00000000000002c0
MACE_EL3 = 0x00000000004404ff
spsr_EL3 = 0x0000000060000005
ELR_EL3 = 0xfffe001091b3c8
ttbr0_EL3 = 0x000070010c00
ESR_EL3 = 0x00000000bf000000
FAR_EL3 = 0x0000000000000000
spsr_el1 = 0x0000000000000005
ELR_el1 = 0xfffe00100a9ca8
spsr_abt = 0x0000000000000000
spsr_und = 0x0000000000000000
spsr_IRQ = 0x0000000000000000
spsr_fiq = 0x0000000000000000
sctlr_el1 = 0x000034d4d91d
actlr_el1 = 0x0000000000000000
cpacr_el1 = 0x0000000000300000
csselr_el1 = 0x0000000000000000
SP_el1 = 0xfffe0011d4fb70
ESR_el1 = 0x0000000056000000
ttbr0_el1 = 0x00000008a67b0000
ttbr1_el1 = 0x0342000083230000
mair_el1 = 0x000c0400bb44FFFF
amair_el1 = 0x0000000000000000
TCR_el1 = 0x00000034f5d67596
tpidr_el1 = 0xffffff086e640000
tpidr_el0 = 0x000003ff920607a0
tpidrro_el0 = 0x0000000000000000
PAR_EL1 = 0x0000000000000000
mpidr_el1 = 0x000080000000
afsr0_el1 = 0x0000000000000000
afsr1_el1 = 0x0000000000000000
contexttidr_el1 = 0x0000000000000000
vbar_el1 = 0xfffe0010010800
cntp_ctl_el0 = 0x000000000005
cntp_cval_el0 = 0x00000004b5b6d878
CNTV_ctl_el0 = 0x0000000000000000
CNTV_cval_el0 = 0x0000000000000000
cntkctl_el1 = 0x0000000000d6
SP_el0 = 0x00007000a3d0
ISR_el1 = 0x000000000040
dacr32_el2 = 0x0000000000000000
ifsr32_el2 = 0x0000000000000000
cpuectlr_el1 = 0x0000001b00000040
cpumerrsr_el1 = 0x0000000000000000
l2merrsr_el1 = 0x0000000000000000
静态空 NVMe_DEV_DISABLE (struct NVMe_dev *dev、bool shutdown)
{
bool 死区= true、冻结= false;
struct pci_dev *pdev = TO_pci_dev (dev->dev);
mutex_lock (&dev->shutdown _lock);
if (pci_is 启用(pdev)){
u32 CSTs = readl (dev->bar + NVMe_REG_CSTs);
if (dev->Ctrl.state == NVMe_CTRL_LIVE ||
dev->ctrl.state =NVMe_CTRL_Resetting){
FREEZE = true;
NVMe_START_FREEZE (/dev/>Ctrl);
}
死区=!((CSTs & NVMe_CSTS_CFS)||!(CSTs & NVMe_CSTS_RDY)||
pdev->error_state != pci_channel_io_normal);
}
/*
*如果输入了所有请求,请给控制器一个完成所有请求的机会
*执行安全关断。
*
如果(!死机&&关断&&冻结)
NVMe_WAIT_FREEZE_TIMEOUT (/dev/>Ctrl、NVMe_IO_TIMEOUT);
有人可以帮帮我吗? 谢谢
第432行:[2.523676] j721e_pcie_probe 503
第433行:[2.527012] j721e_PCIe_probe 550
线路434:[2.530412] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
线路434:[2.530412] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
线路434:[2.530412] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
第435行:[2.538081] j721e-PCIe 292000.PCIe:IO 0x4400001000..0x4400010fff -> 0x0000001000
第435行:[2.538081] j721e-PCIe 292000.PCIe:IO 0x4400001000..0x4400010fff -> 0x0000001000
第436行:[2.546363] j721e-PCIe 292000.PCIe:MEM 0x4400011000。0x4407ffff -> 0x0000011000
第436行:[2.546363] j721e-PCIe 292000.PCIe:MEM 0x4400011000。0x4407ffff -> 0x0000011000
第437行:[2.554644] j721e-PCIe 292000.PCIe:IB MEM 0x0000.0x0x0x0xFFFFFFFF -> 0x000000
第437行:[2.554644] j721e-PCIe 292000.PCIe:IB MEM 0x0000.0x0x0x0xFFFFFFFF -> 0x000000
第438行:[2.563103] j721e_PCIe_probe 593
第480行:[ 2.912432] j721e_pcie_probe 503
第481行:[2.915716] j721e_pcie_probe 550
第482行:[2.918986] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
第482行:[2.918986] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
第482行:[2.918986] j721e-PCIe 292000.PCIe:主机桥/bus@100000/PCIe@2920000范围:
第483行:[2.926473] j721e-PCIe 292000.PCIe:IO 0x4400001000..0x4400010fff -> 0x0000001000
第483行:[2.926473] j721e-PCIe 292000.PCIe:IO 0x4400001000..0x4400010fff -> 0x0000001000
第484行:[2.934558] j721e-PCIe 292000.PCIe:MEM 0x4400011000。0x4407ffff -> 0x0000011000
第484行:[2.934558] j721e-PCIe 292000.PCIe:MEM 0x4400011000。0x4407ffff -> 0x0000011000
第485行:[2.942643] j721e-PCIe 292000.PCIe:IB MEM 0x0000.0x0x0x0xFFFFFFFF -> 0x000000
第485行:[2.942643] j721e-PCIe 292000.PCIe:IB MEM 0x0000.0x0x0x0xFFFFFFFF -> 0x000000
第486行:[2.950905] j721e_PCIe_probe 593
第487行:[2.955421] CDNs_PCIe_host_setup 478
第488行:[2.959016] CDNs_PCIe_host_setup 504
第515行:[2.962585] CDNs_PCIe_host_setup 489
第490行:[2.966152] CDNs_PCIe_host_start_link
第503行:[3.067455] j721e-PCIe 292000.PCIe:链路打开
第503行:[3.067455] j721e-PCIe 292000.PCIe:链路打开
第504行:[3.071745] CDNs_PCIe_host_setup 531
第505行:[3.075385] j721e-PCIe 292000.PCIe:PCI 主机桥至总线0000:00
第505行:[3.075385] j721e-PCIe 292000.PCIe:PCI 主机桥至总线0000:00
第538行:[3.296885] PCI 0000:01:00.0:15.752 GB/s 可用 PCIe 带宽、受0000:00:00.0下的8.0 GT/s PCIe x2链路限制(使用8.0 GT/s PCIe x4链路可实现31.504 GB/s)
第538行:[3.296885] PCI 0000:01:00.0:15.752 GB/s 可用 PCIe 带宽、受0000:00:00.0下的8.0 GT/s PCIe x2链路限制(使用8.0 GT/s PCIe x4链路可实现31.504 GB/s)
第538行:[3.296885] PCI 0000:01:00.0:15.752 GB/s 可用 PCIe 带宽、受0000:00:00.0下的8.0 GT/s PCIe x2链路限制(使用8.0 GT/s PCIe x4链路可实现31.504 GB/s)
第551行:[3.392918] pcieport 0000:00:00.0:启用设备(0000 -> 0002)
第557行:[3.404262] pcieport 0000:00:00.0:PME:用 IRQ 485发送信号
第562行:[3.436338] j721e_pcie_probe 678
第888行:[9.502724] j721e-292000.PCIe:链路断开!