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
test-ci: ptp_clock_test : test failure on frdm_k64f platform #38731
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: NXP
NXP
priority: low
Low impact/importance bug
Comments
danieldegrasse
added a commit
to nxp-zephyr/zephyr
that referenced
this issue
Sep 22, 2021
ptp_clock_test was failing when trying to access the ptp clock from user mode. This was due to an arbitrary initialization priority between the virtual PTP clock devices created by the ptp clocking test and the physical PTP clock on the frdm_k64f board. Since the ptp test initializes the virtual clock with the same device name as the physical clock, if the physical clock was initialized first this test would incorrectly reference the physical device during testing, instead of the virtual one. This fix simply defines the virtual ptp clock with a custom name, so that the test will always locate the correct ptp clock. Fixes zephyrproject-rtos#38731 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
cfriedt
pushed a commit
that referenced
this issue
Sep 23, 2021
ptp_clock_test was failing when trying to access the ptp clock from user mode. This was due to an arbitrary initialization priority between the virtual PTP clock devices created by the ptp clocking test and the physical PTP clock on the frdm_k64f board. Since the ptp test initializes the virtual clock with the same device name as the physical clock, if the physical clock was initialized first this test would incorrectly reference the physical device during testing, instead of the virtual one. This fix simply defines the virtual ptp clock with a custom name, so that the test will always locate the correct ptp clock. Fixes #38731 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
Rushybrook
pushed a commit
to Rushybrook/zephyr
that referenced
this issue
Oct 21, 2021
ptp_clock_test was failing when trying to access the ptp clock from user mode. This was due to an arbitrary initialization priority between the virtual PTP clock devices created by the ptp clocking test and the physical PTP clock on the frdm_k64f board. Since the ptp test initializes the virtual clock with the same device name as the physical clock, if the physical clock was initialized first this test would incorrectly reference the physical device during testing, instead of the virtual one. This fix simply defines the virtual ptp clock with a custom name, so that the test will always locate the correct ptp clock. Fixes zephyrproject-rtos#38731 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: NXP
NXP
priority: low
Low impact/importance bug
Describe the bug
ptp clock test failure
syscall z_vrfy_ptp_clock_get failed check: access denied
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test pass
Impact
ptp usage
Logs and console output
If applicable, add console logs or other types of debug information
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
copy-and-paste text and put a code fence (```) before and after, to help
explain the issue. (if unable to obtain text log, add a screenshot)
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: