mbox series

[v6,0/3] Add basic selftests for rc6

Message ID 20200206140402.11790-1-andi@etezian.org (mailing list archive)
Headers show
Series Add basic selftests for rc6 | expand

Message

Andi Shyti Feb. 6, 2020, 2:03 p.m. UTC
From: Andi Shyti <andi.shyti@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(+)