[Intel-gfx] [PATCH v6 0/3] Add basic selftests for rc6

Andi Shyti andi at etezian.org
Thu Feb 6 14:03:59 UTC 2020


From: Andi Shyti <andi.shyti at intel.com>

Hi,

unfortunately rc6 is still a mysterious system and not all tests
provide the expected results.

I split the three tests in three different patches in order to
have more flexibility in picking them.

Thanks Chris and Mika for the reviews,
Andi

Changelog:
* v5 -> v6:
	- the tests are split in three different patches, nothing
	  else.
* v4 -> v5:
        - added changes in v4 which I forgot to include
        - a small renaming and refactoring suggested by Mika to
          make clear the purpose of the test function. Now it's
          called "is_rc6_active" in a question format (and I
          believe Chris won't like my creativity) and it returns
          true if rc6 is active and false otherwise. Thanks, Mika!
        - fixed a couple of typos.
	- dropped the live_rc6_basic test.
* v3 -> v4:
        - just a small refactoring where test_rc6 becomes a
          measure function while another test_rc6 checks the
          return value from the measure.
* v2 -> v3:
        - rebased on top of the latest drm-tip
        - fixed exiting order in rc6_basic to avoid exiting
          without releasing the pm reference
* v1 -> v2:
        - some changes from Chris.

Andi Shyti (3):
  drm/i915/selftests: add busy selftests for rc6
  drm/i915/selftests: add threshold selftests for rc6
  drm/i915/selftests: add basic on/off selftests for rc6

 drivers/gpu/drm/i915/gt/selftest_gt_pm.c |   3 +
 drivers/gpu/drm/i915/gt/selftest_rc6.c   | 216 +++++++++++++++++++++++
 drivers/gpu/drm/i915/gt/selftest_rc6.h   |   3 +
 3 files changed, 222 insertions(+)

-- 
2.25.0



More information about the Intel-gfx mailing list