Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Gigabit phy/speed #5

Open
raveslave opened this issue Nov 6, 2023 · 2 comments
Open

Add support for Gigabit phy/speed #5

raveslave opened this issue Nov 6, 2023 · 2 comments

Comments

@raveslave
Copy link

Today, the speed is set to 100 Mbit/s here:

if [ "$AVB_MODE" -eq 1 ]; then
(easy to patch, but would be great if its configurable / driven by the phy mode selected)

In REALTIMEDEBUG_Rev2.5.pdf:

Attention: The PHY Delay Compensation Values in Table 64 are calibrated for 1 Gbps links. The i.MX AVB
endpoints are configured to run by default with 100 Mbps links. These compensation values should be enough to keep pDelay values under 800 ns (propagation time threshold), and therefore the port would still be declared as Capable.

Future releases shall have proper compensation values for each supported link speed.

would be great to see this changed in the next release

@raveslave
Copy link
Author

@AlexandreHoward any updates here?

@AlexandreHoward
Copy link

Hi David,

Indeed the speed for the AVB use cases is forced to 100Mb/s.

The stack itself supports both 100Mb/s and 1Gb/s seamlessly and it detects link speed change automatically.
The 100 Mb/s rate was introduced to protect against specific corner cases : Mainly when the receive side of the endpoint is flooded with a high rate of small best effort packets on the FEC interface which can impact SRP/gPTP packets queued with the best effort ones.
I don't think there will be any plan to support the 1Gb/s rate for AVB use cases, unfortunately, as the chances of SRP/gPTP packets being lost amidst all the traffic on the same queue would be too high.

The compensation values have been updated in the latest version, you can find them in REALTIMEEDGEUG v2.8 (Table 77) if that can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants