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

replay: use EGL_CONTEXT_LOST to catch when GPU hangs #787

Open
okias opened this issue May 2, 2022 · 2 comments · May be fixed by #794
Open

replay: use EGL_CONTEXT_LOST to catch when GPU hangs #787

okias opened this issue May 2, 2022 · 2 comments · May be fixed by #794
Assignees

Comments

@okias
Copy link
Contributor

okias commented May 2, 2022

There should be possibility to monitor GPU hangs with EGL.

Should be useful for the replay in CI environment to report it to developers together with the failure itself.

Mozilla discussion: https://bugzilla.mozilla.org/show_bug.cgi?id=656824
deqp thread on the topic: https://gitlab.freedesktop.org/anholt/deqp-runner/-/issues/14

@okias okias changed the title on replay, monitor if GPU hangs when replaying, monitor if GPU hangs May 13, 2022
@okias okias changed the title when replaying, monitor if GPU hangs when replaying, monitor GPU hangs May 13, 2022
@jrfonseca
Copy link
Member

I'm not sure I understand. Many GPU hangs lead to system hangs, but I suppose you mean the other kind of GPU hangs -- non- fatal ones. You mean glretrace could scavenge dmesg etc for signs of GPU resets?

@okias
Copy link
Contributor Author

okias commented May 19, 2022

exactly, only hangs where GPU is able to recover. The scavenging of dmesg could be done outside apitrace, just signal it's needed would be great.

In CI we record the dmesg but this could nicely point directly to the part, where failure happens.

I added link to Mozilla discussion about this topic.

@okias okias changed the title when replaying, monitor GPU hangs replay: use EGL_CONTEXT_LOST to catch when GPU hangs May 19, 2022
@gerddie gerddie self-assigned this May 20, 2022
@gerddie gerddie linked a pull request May 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants