Add system suspend/resume test
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
Activity
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?.