Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] tests/amdgpu: Add shared lockdep checks for reset tests
@ 2026-09-16 22:58 vitaly.prosyak
  2026-09-16 22:58 ` [PATCH v1 1/2] lib/amdgpu: Add shared lockdep violation helpers vitaly.prosyak
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: vitaly.prosyak @ 2026-09-16 22:58 UTC (permalink / raw)
  To: igt-dev; +Cc: Vitaly Prosyak

From: Vitaly Prosyak <vitaly.prosyak@amd.com>

This series extends the existing amdgpu lockdep validation coverage by
moving the common /dev/kmsg and kernel taint checking logic out of
amd_lockdep and into shared amdgpu helpers, then using those helpers in
additional reset-oriented tests.

Patch 1 is a refactor only and makes no functional change to
amd_lockdep. The test still requires CONFIG_LOCKDEP through
/proc/lockdep_stats, opens /dev/kmsg at the start of each
lockdep-sensitive subtest, records the starting taint state, and fails
if a lockdep splat or new TAINT_WARN appears. The helper move keeps that
logic in one place so other amdgpu tests can use the same behavior
without duplicating the plumbing.

Patch 2 enables the shared optional lockdep checks in amd_dispatch,
amd_deadlock, and amd_queue_reset. These tests mostly exercise queue
reset and GPU reset paths, including user queue coverage, so they are a
useful place to catch lockdep issues while reset and recovery paths are
being stressed.

Unlike amd_lockdep, these tests are not dedicated lockdep tests and must
continue to run on kernels without CONFIG_LOCKDEP. The new begin/end
helper checks /proc/lockdep_stats first; when lockdep is unavailable the
check is a no-op, and when lockdep is available each subtest fails if new
lockdep traces or TAINT_WARN are observed.

Vitaly Prosyak (2):
  lib/amdgpu: Add shared lockdep violation helpers
  tests/amdgpu: Check lockdep violations in reset tests

 lib/amdgpu/amd_utils.c         | 100 ++++++++++++++++++++++++++++++
 lib/amdgpu/amd_utils.h         |  14 +++++
 tests/amdgpu/amd_deadlock.c    |  45 ++++++++++++++
 tests/amdgpu/amd_dispatch.c    |  25 ++++++++
 tests/amdgpu/amd_lockdep.c     | 110 ++++-----------------------------
 tests/amdgpu/amd_queue_reset.c |   3 +
 6 files changed, 199 insertions(+), 98 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-17  8:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 22:58 [PATCH v1 0/2] tests/amdgpu: Add shared lockdep checks for reset tests vitaly.prosyak
2026-09-16 22:58 ` [PATCH v1 1/2] lib/amdgpu: Add shared lockdep violation helpers vitaly.prosyak
2026-09-16 22:58 ` [PATCH v1 2/2] tests/amdgpu: Check lockdep violations in reset tests vitaly.prosyak
2026-09-17  1:06   ` Zhang, Jesse(Jie)
2026-09-16 23:50 ` ✓ Xe.CI.BAT: success for tests/amdgpu: Add shared lockdep checks for " Patchwork
2026-09-17  0:26 ` ✓ i915.CI.BAT: " Patchwork
2026-09-17  4:37 ` ✓ Xe.CI.FULL: " Patchwork
2026-09-17  8:11 ` ✓ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox