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

[BACKPORT] Pull PMP related changes from upstream #174

Merged
merged 4 commits into from
Oct 17, 2023
Merged

Conversation

pussuw
Copy link

@pussuw pussuw commented Oct 17, 2023

Pull some commits from upstream

Change bgtz t0, mpfs_opensbi_prepare_hart to tail-call to ensure there
will be no link time error due to the jump offset being too large.
Fix case where NULL is de-referenced via tx/rx buffer or descriptor. Only
1 queue is currently set up for each, so the indices 1,2,3 are not valid
and should not be handled.
Instead of releasing rx descriptor twice and tx buffer twice.
Initially clear PMP for all harts, this fixes random warm reset issues.

Signed-off-by: Ville Juven <[email protected]>
@pussuw pussuw requested review from jlaitine and eenurkka October 17, 2023 13:14
@pussuw pussuw changed the title Sync with upstream [BACKPORT] Pull PMP related changes from upstream Oct 17, 2023
Copy link

@eenurkka eenurkka left a comment

Choose a reason for hiding this comment

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

LGTM!

@pussuw pussuw merged commit 3866634 into master Oct 17, 2023
8 checks passed
@pussuw pussuw deleted the sync_with_upstream branch October 17, 2023 16:41
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