public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Maíra Canal" <mcanal@igalia.com>
To: "Melissa Wen" <mwen@igalia.com>,
	"André Almeida" <andrealmeid@igalia.com>,
	"Petri Latvala" <petri.latvala@intel.com>,
	"Kamil Konieczny" <kamil.konieczny@linux.intel.com>,
	"Boris Brezillon" <boris.brezillon@collabora.com>,
	"Tomeu Vizoso" <tomeu.vizoso@collabora.com>,
	"Emma Anholt" <emma@anholt.net>,
	"Jason Ekstrand" <jason.ekstrand@collabora.com>,
	"Iago Toral Quiroga" <itoral@igalia.com>,
	"Rob Clark" <robdclark@chromium.org>
Cc: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 0/6] V3D Job Submission Tests
Date: Tue,  3 Jan 2023 07:58:30 -0300	[thread overview]
Message-ID: <20230103105835.604394-1-mcanal@igalia.com> (raw)

Currently, the V3D tests don't cover the job submission feature of the driver.
Therefore, create tests for DRM_IOCTL_V3D_SUBMIT_CL, an ioctl for submitting
commands to the 3D engine. In order to develop the tests, it was necessary to
bring some Mesa structures to IGT. Those structures have the definitions needed
for the creation of an acceptable packet that can be sent to the GPU.

So, patches 1-3 add the Mesa structures needed for the tests and also create a
struct to manage a CL job, the struct v3d_cl_job. Patch 4 introduces a helper
function to submit a minimal job to the GPU, which will be useful for the tests.
The minimal job will use the Mesa structures to produce a minimal valid packet.
Finally, patches 5-6 include new tests in the V3D test suite for
DRM_IOCTL_V3D_WAIT_BO and DRM_IOCTL_V3D_SUBMIT_CL. The tests for the Wait BO
IOCTL depend on the submission of a job, so they are included in this series.

Best Regards,
- Maíra Canal

Maíra Canal (6):
  lib/v3d: Add V3D packet helpers
  lib/v3d: Add V3D packet description
  lib/v3d: Introduce the struct v3d_cl_job
  lib/v3d: Add a helper to create a noop job
  tests/v3d_wait_bo: Create test for V3D's Wait BO IOCTL
  tests/v3d_submit_cl: Create test for V3D's Submit CL IOCTL

 lib/bitpack_helpers.h        |   78 +
 lib/igt_v3d.c                |  182 ++
 lib/igt_v3d.h                |   18 +
 lib/v3d/v3d_cl.h             |  157 ++
 lib/v3d/v3d_packet.h         | 5164 ++++++++++++++++++++++++++++++++++
 lib/v3d/v3d_packet_helpers.h |  119 +
 tests/v3d/meson.build        |    2 +
 tests/v3d/v3d_submit_cl.c    |  352 +++
 tests/v3d/v3d_wait_bo.c      |  127 +
 tests/v3d_ci/v3d.testlist    |   27 +
 10 files changed, 6226 insertions(+)
 create mode 100644 lib/bitpack_helpers.h
 create mode 100644 lib/v3d/v3d_cl.h
 create mode 100644 lib/v3d/v3d_packet.h
 create mode 100644 lib/v3d/v3d_packet_helpers.h
 create mode 100644 tests/v3d/v3d_submit_cl.c
 create mode 100644 tests/v3d/v3d_wait_bo.c

-- 
2.38.1

             reply	other threads:[~2023-01-03 10:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-03 10:58 Maíra Canal [this message]
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 1/6] lib/v3d: Add V3D packet helpers Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 2/6] lib/v3d: Add V3D packet description Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 3/6] lib/v3d: Introduce the struct v3d_cl_job Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 4/6] lib/v3d: Add a helper to create a noop job Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 5/6] tests/v3d_wait_bo: Create test for V3D's Wait BO IOCTL Maíra Canal
2023-01-03 10:58 ` [igt-dev] [PATCH i-g-t 6/6] tests/v3d_submit_cl: Create test for V3D's Submit CL IOCTL Maíra Canal
2023-01-12 11:20   ` Melissa Wen
2023-01-03 12:02 ` [igt-dev] ✓ Fi.CI.BAT: success for V3D Job Submission Tests Patchwork
2023-01-03 16:25 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-01-12 11:24 ` [igt-dev] [PATCH i-g-t 0/6] " Melissa Wen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230103105835.604394-1-mcanal@igalia.com \
    --to=mcanal@igalia.com \
    --cc=andrealmeid@igalia.com \
    --cc=boris.brezillon@collabora.com \
    --cc=emma@anholt.net \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=itoral@igalia.com \
    --cc=jason.ekstrand@collabora.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=mwen@igalia.com \
    --cc=petri.latvala@intel.com \
    --cc=robdclark@chromium.org \
    --cc=tomeu.vizoso@collabora.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox