mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-14 09:53:04 +00:00
63e4dafb32
If you really want to reach the PC8+ states and consequently get PC8+ residency, you need to properly configure all the devices on your machine to allow PC8+, not just graphics. The current code for PC8 checks for PC8+ residency everywhere, so if you have a machine that's not properly configured you'll fail every test. OTOH, even if your machine can't reach the PC8+ states, it will still try to enable and disable PC8, so we can try to test the feature even if we're never really reaching the PC8+ states. Also, if your machine does allow PC8+ residencies, but some other driver/program decides to keep the machine busy while you're running the test suite, you'll also get failures which you shouldn't be getting. Based on the arguments above, I'm changing most of the subtests to only check for the PC8 status reported by sysfs (enabled/disabled), not check real PC8+ residency. I also added two tests that should check for PC8+ residency, so we will stil be able to diagnose badly configured machines. As a bonus, we won't sleep for full 5 seconds every time we expect PC8 to be disabled: we'll just read i915_pc8_status, which quickly gives the result we're expecting. Considering how many modeset stress subtests we have in the program, we'll save a *lot* of time with this change. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>