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.

TDA4VH-Q1: Detect pcie unlink on ep mode

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Hi expers, 

On tda4vh platform (sdk8.6),  does it support detecting PCIe disconnection by hardware interrupt on ep mode ? 

quanli

thanks

  • Hi Quanli,

    Looking through the registers from the Technical Reference Manual (TRM), it seems that for RC mode hot-plug, which is detecting if a new card is connected/disconnected during run time, is not supported.

    The relevant register is PCIE_RC_i_rc_pcie_base_i_slot_capability's HPC field which is set to 0. And this bit's explanation is:"When Set, this bit indicates that this slot is capable of supporting hot-plug operations. "

    There are no equivalent registers for when hardware is in EP mode, so I would say that interrupts are generated only for RC-side.

    Regards,

    Takuma

  • Hi Quanli,

    Got some information from my team. There is an interrupt that gets generated when link goes down, and it is called the PCIE_LINK_STATE_PULSE that can be found here: https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j784s4/interrupt_cfg.html. This interrupt should be valid in both RC and EP mode.

    However, currently in the SDK, we do not do anything with this interrupt. Theoretically, you should be able to route this interrupt to a R5F core and develop an application to handle the interrupt.

    Regards,

    Takuma