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

vc4 DLIST patches #5862

Merged
merged 2 commits into from
Jan 18, 2024
Merged

vc4 DLIST patches #5862

merged 2 commits into from
Jan 18, 2024

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Jan 17, 2024

#5674 patches, although I happened to be on a 6.6 branch so they're against that.

Tested such that the EOF handler deliberately doesn't release stale allocations, and kmstest --flip ends up triggering it every 8-10 seconds, and doesn't fail.
If we see the same repeat rate, then it's reasonable to hypothesize that the interrupt has either got stuck in hardware, has been disabled, or otherwise isn't firing reliably.

6by9 added 2 commits January 17, 2024 18:41
…ve once

vc4_hvs_dlist_free_work was iterating through the list of stale
dlist entries and reading the frame count and active flags from
the hardware for each one.

Read the frame count and active flags once, and then use the
cached value in the loop.

Signed-off-by: Dave Stevenson <[email protected]>
This is largely for debug at present.
For reasons unknown we are not getting the end of frame interrupts
that should trigger a sweep of stale dlist entries.

On allocation failure clear out ALL stale entries, and retry the
allocation. Log the interrupt status so we have debug regarding
whether the HVS believes the interrupt is enabled.

Signed-off-by: Dave Stevenson <[email protected]>
@pelwell pelwell merged commit 8323626 into raspberrypi:rpi-6.6.y Jan 18, 2024
12 checks passed
@6by9 6by9 mentioned this pull request Jan 22, 2024
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