tests/v3d_perfmon: Fix V3D 7.1 regression and extend perfmon testing
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 3 repliesIn review
- v25 patches 3 repliesSuperseded
- v15 patches 1 replySuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tests/v3d_perfmon: Don't use the deprecated V3D_PERFCNT_NUMtests/ | +11 | 1 reply | |
| 2/5 | drm-uapi/v3d: Sync v3d UAPI with drm-next (commit 769c153cfc3c)include/ | +21 | 0 replies | |
| 3/5 | lib/v3d: Allow callers to retrieve perfmon counter valueslib/ lib/ tests/ +2 more | +14 | 0 replies | |
| 4/5 | lib/v3d: Add helper to query the V3D hardware versionlib/ lib/ | +13 | 0 replies | |
| 5/5 | tests/v3d_perfmon: Add global perfmon and counter isolation teststests/ | +559 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Iago Toral Quiroga | Kamil Konieczny |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | A-b |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH i-g-t v3 0/5] tests/v3d_perfmon: Fix V3D 7.1 regression and extend perfmon testing
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 differ between v4.2 and v7.1.
PATCH 5 adds the new 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
---
v1 -> v2: https://lore.kernel.org/igt-dev/[email protected]/T/
- [1/5, 2/5, 3/5, 4/5] Add Iago's R-b (Iago Toral)
- [5/5] Set out_sync only for the last job instead of setting it for all jobs (Iago Toral)
- [5/5] In "global-perfmon-valid-perfmon", also wait for the last to complete in the second submission (Iago Toral)
- [5/5] In "perfmon-counter-isolation-subsequent-cl", only wait for the second syncobj after we retrieve job1's values (Iago Toral)
- [5/5] Create two macros to define the number of CL and CSD jobs submitted
v2 -> v3: https://lore.kernel.org/igt-dev/[email protected]/T/
- [2/5, 5/5] Add Kamil's A-b (Kamil Konieczny)
- [2/5] Update the commit message to include the drm-next commit (Kamil Konieczny)
- [5/5] Add Iago's R-b (Iago Toral)
- [5/5] Fix several styling nits (Kamil Konieczny)
Maíra Canal (5):
tests/v3d_perfmon: Don't use the deprecated V3D_PERFCNT_NUM drm-uapi/v3d: Sync v3d UAPI with drm-next (commit 769c153cfc3c) 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 | 578 ++++++++++++++++++++++++++++++++++++- tests/v3d/v3d_submit_cl.c | 4 +- tests/v3d/v3d_submit_csd.c | 4 +- 6 files changed, 618 insertions(+), 14 deletions(-)
Signature · 1 line
2.54.0