[PATCH v2 0/8] drm/i915/selftests: Modernize printing in i915 selftests
Krzysztof Karas <[email protected]>
| Newsgroups | org.freedesktop.lists.intel-gfx,org.freedesktop.lists.dri-devel |
|---|---|
| Message-ID | <[email protected]> |
Currently, in many instances, i915 functions call pr_* macros to write a message to the system log. This way of printing lacks device context, which could be a valuable source of information. Many files in DRM already use drm_* prints to include that context, so it would be beneficial to do the same for i915 as well. Start small and convert i915 selftests first. I do not anticipate this series to pass BAT runs due to filtering warnings and error messages in our CI. Since the formatting is slightly different, expected messages will be detected as new issues. v2: * Remove mock devices, where device context is not available (Jani). * Fix a typo in alloc_workqueue. Krzysztof Karas (8): drm/i915/selftests: Use drm_* prints in mock selftests drm/i915/selftest: Fix a typo in alloc_workqueue call drm/i915/selftests: Use drm_* prints in live selftests drm/i915/selftests: Use drm_* prints in selftest helpers drm/i915/gt/selftests: Use drm_* prints in aggregated gt selftests drm/i915/gt/selftests: Use drm_* prints in gt standalone tests drm/i915/gt/selftests: Use drm_* prints in gt selftest helpers drm/i915/selftests: Use drm_* prints in selftest headers drivers/gpu/drm/i915/gt/selftest_context.c | 27 +- drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 35 +-- .../drm/i915/gt/selftest_engine_heartbeat.c | 18 +- drivers/gpu/drm/i915/gt/selftest_engine_pm.c | 50 +-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 294 +++++++++--------- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 25 +- drivers/gpu/drm/i915/gt/selftest_llc.c | 26 +- drivers/gpu/drm/i915/gt/selftest_migrate.c | 51 ++- drivers/gpu/drm/i915/gt/selftest_mocs.c | 12 +- drivers/gpu/drm/i915/gt/selftest_rc6.c | 55 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 27 +- drivers/gpu/drm/i915/gt/selftest_rps.c | 252 ++++++++------- drivers/gpu/drm/i915/gt/selftest_slpc.c | 86 ++--- drivers/gpu/drm/i915/gt/selftest_tlb.c | 34 +- .../gpu/drm/i915/gt/selftest_workarounds.c | 91 +++--- drivers/gpu/drm/i915/i915_selftest.h | 2 + drivers/gpu/drm/i915/selftests/i915_active.c | 15 +- .../gpu/drm/i915/selftests/i915_gem_evict.c | 58 ++-- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 197 ++++++------ drivers/gpu/drm/i915/selftests/i915_perf.c | 24 +- drivers/gpu/drm/i915/selftests/i915_request.c | 234 +++++++------- .../gpu/drm/i915/selftests/i915_selftest.c | 56 ++-- .../gpu/drm/i915/selftests/i915_sw_fence.c | 94 +++--- drivers/gpu/drm/i915/selftests/i915_syncmap.c | 129 ++++---- drivers/gpu/drm/i915/selftests/i915_vma.c | 222 +++++++------ .../gpu/drm/i915/selftests/igt_flush_test.c | 6 +- .../gpu/drm/i915/selftests/igt_live_test.c | 5 +- drivers/gpu/drm/i915/selftests/igt_reset.c | 4 +- .../i915/selftests/intel_scheduler_helpers.c | 7 +- drivers/gpu/drm/i915/selftests/intel_uncore.c | 59 ++-- .../gpu/drm/i915/selftests/mock_gem_device.c | 4 +- drivers/gpu/drm/i915/selftests/scatterlist.c | 45 +-- 32 files changed, 1210 insertions(+), 1034 deletions(-) -- 2.34.1