Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/5] tests/v3d_perfmon: Fix V3D 7.1 regression and extend perfmon testing
@ 2026-05-08 12:42 Maíra Canal
  2026-05-08 12:42 ` [PATCH i-g-t 1/5] tests/v3d_perfmon: Don't use the deprecated V3D_PERFCNT_NUM Maíra Canal
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Maíra Canal @ 2026-05-08 12:42 UTC (permalink / raw)
  To: Iago Toral, Melissa Wen, Kamil Konieczny, Juha-Pekka Heikkila,
	Bhanuprakash Modem, Ashutosh Dixit, Karthik B S
  Cc: igt-dev, kernel-dev, Maíra Canal

This series extends the V3D perfmon coverage in two directions: it fixes
an existing test that regressed on V3D 7.1 (Raspberry Pi 5), and it adds
coverage for the new DRM_IOCTL_V3D_PERFMON_SET_GLOBAL ioctl plus companion
counter-isolation tests.

PATCH 1 fixes create-perfmon-invalid-counters, which currently fails on
V3D 7.1 because it hardcodes V3D_PERFCNT_NUM (only valid for V3D 4.2)
instead of querying DRM_V3D_PARAM_MAX_PERF_COUNTERS as the UAPI prescribes.

PATCHES 2-4 are the plumbing for the new tests:

  - sync the v3d UAPI header to expose DRM_IOCTL_V3D_PERFMON_SET_GLOBAL;
  - extend igt_v3d_perfmon_get_values() so callers can read counter values
		back into a caller-provided buffer;
  - add a small helper to query the V3D hardware version, since counter IDs
		and other details can differ between v4.2 and v7.1.

PATCH 5 improves the test coverage:

  - get-values-check-monotonically, which submits ten CL jobs in a row and
		asserts the counter values grow strictly between reads;
  - global-perfmon subtests covering input validation, single-perfmon
    semantics (EBUSY), implicit clear on perfmon destroy and on fd close,
		precedence over per-job perfmon (EAGAIN), and cross-fd accumulation;
  - perfmon-counter-isolation and perfmon-counter-isolation-subsequent-cl,
    which verify that the driver's queue serialization keeps pending CSD
    or earlier-CL work from leaking into a perfmon window.

Tested on Raspberry Pi 4 (V3D 4.2) and Raspberry Pi 5 (V3D 7.1).

Best regards,
- Maíra

Maíra Canal (5):
  tests/v3d_perfmon: Don't use the deprecated V3D_PERFCNT_NUM
  drm-uapi/v3d: Sync v3d UAPI
  lib/v3d: Allow callers to retrieve perfmon counter values
  lib/v3d: Add helper to query the V3D hardware version
  tests/v3d_perfmon: Add global perfmon and counter isolation tests

 include/drm-uapi/v3d_drm.h |  21 ++
 lib/igt_v3d.c              |  22 +-
 lib/igt_v3d.h              |   3 +-
 tests/v3d/v3d_perfmon.c    | 547 ++++++++++++++++++++++++++++++++++++-
 tests/v3d/v3d_submit_cl.c  |   4 +-
 tests/v3d/v3d_submit_csd.c |   4 +-
 6 files changed, 587 insertions(+), 14 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-05-12  6:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 12:42 [PATCH i-g-t 0/5] tests/v3d_perfmon: Fix V3D 7.1 regression and extend perfmon testing Maíra Canal
2026-05-08 12:42 ` [PATCH i-g-t 1/5] tests/v3d_perfmon: Don't use the deprecated V3D_PERFCNT_NUM Maíra Canal
2026-05-08 12:42 ` [PATCH i-g-t 2/5] drm-uapi/v3d: Sync v3d UAPI Maíra Canal
2026-05-08 12:42 ` [PATCH i-g-t 3/5] lib/v3d: Allow callers to retrieve perfmon counter values Maíra Canal
2026-05-08 12:42 ` [PATCH i-g-t 4/5] lib/v3d: Add helper to query the V3D hardware version Maíra Canal
2026-05-08 12:42 ` [PATCH i-g-t 5/5] tests/v3d_perfmon: Add global perfmon and counter isolation tests Maíra Canal
2026-05-12  6:50   ` Iago Toral
2026-05-09  0:21 ` ✓ i915.CI.BAT: success for tests/v3d_perfmon: Fix V3D 7.1 regression and extend perfmon testing Patchwork
2026-05-09  0:28 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-09 13:32 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-10  1:38 ` ✓ i915.CI.Full: success " Patchwork

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