Forum Discussion

pdewanga's avatar
pdewanga
Icon for New Contributor rankNew Contributor
2 years ago

Doing FLR makes the pcie device hang

I am trying to do initiate Function Level Reset, on Avlaon streaming pcie hard IP, using setpci command and if I try to read the device back using lspci command the device is hang with ff as shown below,

lspci -v -d:11e1
3b:00.0 Co-processor: Intel Corporation Device 11e1 (rev ff) (prog-if ff)
!!! Unknown header type 7f

------------------------------------------------------------------------------------------------

I am doing the FLR using setpci as :

setpci -s 3b:00.0 0x78.W
2037
setpci -s 3b:00.0 0x78.W=0xa037
setpci -s 3b:00.0 0x78.W
ffff

Can anyone tell the reason why the device is hung up like this?

7 Replies

  • Wincent_Altera's avatar
    Wincent_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    Can I know which device that you are using ?

    also, which tile of AVST example that you are referring to ?




  • pdewanga's avatar
    pdewanga
    Icon for New Contributor rankNew Contributor

    Hi,

    The device is 1SG10MHN3F74C2LG

    Using the Intel L-/H-Tile Avalon streaming for PCI Express

  • Wincent_Altera's avatar
    Wincent_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    Do you check LTSSM signal and ensure the card is able to link up ?

    Other than that, you may check the DIP switch and ensure that it is set to default setting.


    If not, I would like to suggest you to regenerate a new design example in the IP catalog and see if the same.

    Looking forward to hear back from you.


    Regards,

    Wincent_Intel


  • Wincent_Altera's avatar
    Wincent_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    I wish to follow up with you about this case.

    Do you have any further questions on this matter ?

    ​​​​​​​Else I would like to have your permission to close this forum ticket

    Regards,

    Wincent_Intel


  • Wincent_Altera's avatar
    Wincent_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi

    We have not hear from you and this Case is idling. It is not recommended to idle for too long.

    Therefore following our support policy, I have to put this case in close status. My apologies if any inconvenience cause

    Hence, This thread will be transitioned to community support.

    If you have a new question, feel free to open a new thread to get support from Intel experts.

    Otherwise, the community users will continue to help you on this thread. Thank you

    If your support experience falls below a 9 out of 10, I kindly request the opportunity to rectify it before concluding our interaction. If the issue cannot be resolved, please inform me of the cause so that I can learn from it and strive to enhance the quality of future service experiences.

    Regards,

    Wincent_Intel


  • pdewanga's avatar
    pdewanga
    Icon for New Contributor rankNew Contributor

    Hi,

    Do you check LTSSM signal and ensure the card is able to link up ?

    Response- I tried capturing the LTSSM and link up signal on FPGA board after I do FLR.

    The link is up and LTSSM value is 11.

    Other than that, you may check the DIP switch and ensure that it is set to default setting.

    Response - Can you please provide more details of the DIP switch?

    If not, I would like to suggest you to regenerate a new design example in the IP catalog and see if the same.

    Response- I will do it and confirm.

    Regards,

    • pdewanga's avatar
      pdewanga
      Icon for New Contributor rankNew Contributor

      Hi Wincent_Intel,

      I tried regenerating the Quartus IP and there also I am seeing same behavior.

      One more finding

      The flr_pf_active signal - output from Avalon-Streaming PCIe is zero after doing FLR.

      Please suggest is this correct behavior ?

      -Regards,

      Piyush