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

[rv_dm,sival] Fix rv_dm_mem_access_dev_rv_dm_delayed_enable #25460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexJones0
Copy link
Contributor

@AlexJones0 AlexJones0 commented Nov 29, 2024

The rv_dm_mem_access test was not working in the dev_rv_dm_delayed_enable test configuration. This is because the test was not written to handle the additional logic required for this configuration.

To fix this, before the host side attempts to connect via JTAG, it waits for a message ("DEBUG_MODE_ENABLED") from the device, which will configure the RV DM to enable the late debug feature (debug mode). This should only be available using the OTP image with the late debug feature enabled, in the delayed_enable test configuration.

This has been tested to pass consistently on a CW310 by running the following command:
./bazelisk.sh test -t- --test_output=streamed --build_tests_only --runs_per_test=5 --test_tag_filters=cw310 //sw/device/tests:rv_dm_mem_access

The `rv_dm_mem_access` test was not working in the
`dev_rv_dm_delayed_enable` test configuration. This is because the test
was not written to handle the additional logic required for this
configuration.

To fix this, before the host side attempts to connect via JTAG, it waits
for a message ("DEBUG_MODE_ENABLED") from the device, which will
configure the RV DM to enable the late debug feature (debug mode). This
should only be available using the OTP image with the late_debug feature
enabled, in the `delayed_enable` test configuration.

Signed-off-by: Alex Jones <[email protected]>
@AlexJones0 AlexJones0 requested a review from a team as a code owner November 29, 2024 13:07
@AlexJones0 AlexJones0 requested review from jon-flatley and removed request for a team November 29, 2024 13:07
@AlexJones0 AlexJones0 added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Nov 29, 2024
@AlexJones0 AlexJones0 requested review from jwnrt, pamaury, nbdd0121 and engdoreis and removed request for jon-flatley and jwnrt November 29, 2024 13:07
@AlexJones0 AlexJones0 changed the title [rv_dm,sival] Fix rv_dm_mem_access_delayed_enable [rv_dm,sival] Fix rv_dm_mem_access_dev_rv_dm_delayed_enable Nov 29, 2024
@AlexJones0
Copy link
Contributor Author

CI failure is due to current CI outage issues, this change should only affect the //sw/device/tests/pmod:rv_dm_mem_access_* tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants