PCIe reset to Root Complex and End Point device

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PCIe reset to Root Complex and End Point device

4,956 次查看
rammurmu
Contributor III

Hi,

    We have a proto design based on MPC8569E.

    A PCIe End Point(EP) device is connected to Processor (PCIe Root Complex). The EP device correctly gets enumerated on PCIe bus on power-up of the target.

The question is, does this EP device will get enumerated again on PCIe bus, if only the PCIe root complex (Processor) is given reset.

Regards

Ram

0 项奖励
13 回复数

2,923 次查看
ufedor
NXP Employee
NXP Employee

Yes, EP will be discovered and enumerated correctly in the described case.

0 项奖励

2,923 次查看
rammurmu
Contributor III

Hi, 

    In our case the EP device is not getting enumerated on PCI bus in the case when only the Root complex(Processor) is given reset.

What could be the possible reason? What are the areas to look into for debugging ?

0 项奖励

2,923 次查看
ufedor
NXP Employee
NXP Employee

How exactly reset is applied to the processor?

0 项奖励

2,923 次查看
rammurmu
Contributor III
Hi
The following sequence is used for processor reset
1) Processor is in functioning state. Its HRESET is controlled by CPLD.
2) An external button is sensed by CPLD which initiates a power on reset cycle on the HRESET pin of processor.
3) The timings are similar as described in the reference manual. It is same as when we power up the card in which PCIe end point is enumerated
0 项奖励

2,923 次查看
ufedor
NXP Employee
NXP Employee

Is the EP direcly connected to the processor?

What is the value of the PCIe controller LTSSM State Status Register—0x404 in case of failure?

0 项奖励

2,923 次查看
rammurmu
Contributor III

Yes , EP is directly connected to processor and is capacitevely coupled.

>>What is the value of the PCIe controller LTSSM State Status Register—0x404 in case of failure?

I will share the results soon.

0 项奖励

2,923 次查看
rammurmu
Contributor III

>>What is the value of the PCIe controller LTSSM State Status Register—0x404 in case of failure?

The value of LTSSM is 0x06 in case of failure.

0 项奖励

2,923 次查看
ufedor
NXP Employee
NXP Employee

The LTSSM value means that the PCIe interface can’t proceed on link training.

At least one lane previously detected a receiver doesn’t send correct TS1 or TS2 training sequence.

This means that EP device does not enter link training state in the discussed case.

0 项奖励

2,923 次查看
rammurmu
Contributor III

The issue is still unresolved from our end.

Please suggest what should we look for to debug this issue.

Is it in the software or lies with the hardware ?

Regards

Ram

0 项奖励

2,923 次查看
ufedor
NXP Employee
NXP Employee

As I wrote in the previous response:

> This means that EP device does not enter link training state in the discussed case.

The issue could be resolved by applying reset signal to the EP.

0 项奖励

2,923 次查看
rammurmu
Contributor III

Thanks for your reply.

    

>>The issue could be resolved by applying reset signal to the EP.

That is precisely we don't want to do, as this device is in data path which should not be disturbed. We want this EP to be re-enumerated when only the ROOT Complex(Process) comes up again after soft reset.

0 项奖励

2,923 次查看
rammurmu
Contributor III

Can you suggest any PCIe registers in the root complex(Processor) side that may reflect the status or error condition. This could be the clue for further debugging.

If you have any other debugging suggestions please share.

Please suggest.

Regards

Ram

0 项奖励

2,923 次查看
ufedor
NXP Employee
NXP Employee

The issue is caused by the endpoint device - i.e. nothing has to be debugged at the processor's side.