Forum Discussion
Avalon-MM Cyclone V Hard IP for PCI Express Intel FPGA IP Soft Reset and Hard Reset
- 4 months ago
Ok the solution to resolve SRC under Hard PCIe RP:
The example from rocketchip and MitySOM gate the mgmt reset by nreset_status.
Due to pin_perst is not used -> 1'b1
The nreset_status will not release unless mgmt is reset with npor while gating mgmt reset bynreset_status will dead lock and never exit the reset.
Hi Brian,
By using SRC you're likely to control the npor. If so, you need to pull npor LOW more than 100ms and only release it when PCIe ref clock is stable.
Regards,
Rong
Can you read previous posts?
I am not focusing on npor problem
The issue is changing from HRC to SRC introduce stuck or hang on Linux driver load.
Where the HRC case did not have such issue.
Thanks
- RongY_altera4 months ago
Contributor
Normally you need to follow the PCIe user guide to set hip_hard_reset_hwtcl to 0. I think you have done that and you're able to boot into Linux.
Once confirming PCIe link info correctly in lspci, you can try rescan and reset commands by referencing https://unix.stackexchange.com/questions/73908/how-to-reset-cycle-power-to-a-pcie-device
Regards,
Rong
- BrianSune_Froum4 months ago
Contributor
Can you read carefully previous posts?
BrianSune_Froum wrote:
The issue is changing from HRC to SRC introduce stuck or hang on Linux driver load.
This is referring to the PCIe itself not slot card nor end-point devices.
You are not even able to type any thing as it stuck or hang once the pcie-altera.ko insert.
Thanks
- RongY_altera4 months ago
Contributor
"Once confirming PCIe link info correctly in lspci, you can try rescan and reset commands by referencing https://unix.stackexchange.com/questions/73908/how-to-reset-cycle-power-to-a-pcie-device"
>>These are Linux commands to test your PCIe. No need to load driver.
Regards,
Rong