Skip to content

Add basic selftests for rc6

Andi Shyti intel-gfx 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 1 replyIn review
  2. v51 patch 1 replySuperseded
  3. v4 posting 2/21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v4 posting 1/21 patch0 repliesSuperseded

Changelog from the cover letter

* 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.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915/selftests: add busy selftests for rc6drivers/gpu/drm/i915/gt/selftest_gt_pm.c drivers/gpu/drm/i915/gt/selftest_rc6.c drivers/gpu/drm/i915/gt/selftest_rc6.h+114 -00 replies
2/3drm/i915/selftests: add threshold selftests for rc6drivers/gpu/drm/i915/gt/selftest_gt_pm.c drivers/gpu/drm/i915/gt/selftest_rc6.c drivers/gpu/drm/i915/gt/selftest_rc6.h+69 -00 replies
3/3drm/i915/selftests: add basic on/off selftests for rc6drivers/gpu/drm/i915/gt/selftest_gt_pm.c drivers/gpu/drm/i915/gt/selftest_rc6.c drivers/gpu/drm/i915/gt/selftest_rc6.h+39 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

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

From: Andi Shyti <[email protected]>

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(+)
Signature · 6 lines
2.25.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx