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

service: attempt a reset when no SDB can be found. #50

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

ericonr
Copy link
Member

@ericonr ericonr commented Nov 29, 2024

In some conditions, reading from BAR4 will return only 1s, so the SDB can't even be accessed in order to be decoded. For some of these situations, resetting the PCIe interface via BAR0 restores BAR4 functionality.

The effects of this reset aren't fully understood, but, since any further steps to restore communication with the board would include removing the PCIe slot or restarting the board, any side-effects are considered benign.

@ericonr ericonr marked this pull request as ready for review November 29, 2024 16:12
Comment on lines 17 to 23
synthesis="$(decode-reg build_info -q --slot ${devslot})"
if [ -z "$synthesis" ]; then
decode-reg reset --slot ${devslot}
synthesis="$(decode-reg build_info -q --slot ${devslot})"
fi

case "$(decode-reg build_info -q --slot ${devslot})" in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to use $synthesis in the case argument?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did, yes. Thanks!

In some conditions, reading from BAR4 will return only 1s, so the SDB
can't even be accessed in order to be decoded. For some of these
situations, resetting the PCIe interface via BAR0 restores BAR4
functionality.

The effects of this reset aren't fully understood, but, since any
further steps to restore communication with the board would include
removing the PCIe slot or restarting the board, any side-effects are
considered benign.
@ericonr ericonr merged commit e186af6 into master Dec 3, 2024
2 checks passed
@ericonr ericonr deleted the pcie-reset branch December 3, 2024 16:01
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

Successfully merging this pull request may close these issues.

2 participants