Skip to content
Snippets Groups Projects

Add system suspend/resume test

Open Rob Clark requested to merge robclark/piglit:suspend-resume into main
1 unresolved thread

Add a test to exercise system-suspend while GPU is active. The goal is to queue up enough work that both the GPU is active, plus work queued up in drm gpu scheduler.

Signed-off-by: Rob Clark robdclark@chromium.org


Note: Not sure this makes sense to add to any case list, since it requires human interaction to resume.. and possibly needs to be run w/ sudo. But it is a useful utility to trigger/debug kernel issues around system suspend.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • My thought would be: instead of the test having to be run under sudo, just make a binary called load_gpu_scheduler or whatever that infinite loops doing draws and flushing. then you can drive your suspend/resume process separately.

      When I've worked on this kind of stuff in the past, I'd use something like vblank_mode=0 glxgears. I guess the point of this binary is that you keep the scheduler more busy with little jobs in the hopes of losing the race?.

    • yeah, it is a race that is pretty hard to lose, you need a bunch of stuff queued up

    • Please register or sign in to reply
Please register or sign in to reply
Loading